1, Scenekit Introduction
SceneKit (SK) is the Cocos 3D rendering engine Framework for the OS X platform launched by WWDC12. Support for particle effects, physical simulations, scripting events, multi-pass rendering, support for iOS platforms. Scenekit integrates a graphics framework such as the Core Image,core animation and is now integrated into the Spritekit. The Scenekit is built on OpenGL.
2. Related class description
3, ModellO.h
A bridge based on the I/O Framework is the addition of categories to related classes (Scnscene, Scnlight, Scncamera, Scngeometry, scnmaterial, etc.) through Modelio.
4, SceneKit.h
Header file for all classes associated with the Scenekit library.
5, SceneKitTypes.h
The various types that are used in scenekit (such as enumeration values, struct bodies). There is also a nsvalue category that can be used when animating a node Scnnode:
Cabasicanimation *animation = [cabasicanimation animationwithkeypath:@ "rotation"]; 10.0; = [Nsvalue Valuewithscnvector4:scnvector4make (0102*m_pi)]; = maxfloat; [Self.node addanimation:animation Forkey: @" node "];
6, SCNAction.h
It is mainly responsible for the attribute of node Scnnode, which realizes node's gradient, moving, appearing, disappearing, realizing animation and so on.
7, SCNAnimation.h
Create declarative animations that move scene elements in a predetermined manner (set animation time, path, rate, and so on), or manage animations imported using an external authoring tool (animate via Url:animationwithcontentsofurl).
8, SCNAudioSource.h
A simple, reusable audio source for adding sounds.
9, SCNBoundingVolume.h
Use this protocol to get or judge the bounding box of a node and geometry, with only three methods.
10, SCNCAAnimationExtensions.h
Follow the Scnanimation protocol and add categories to the caanimation to get animation-related information.
11, SCNCamera.h
Called a camera or camera, can be attached to a node to provide an angle for displaying the scene. In fact, the user's perspective is the same as the human eye.
12, SCNCameraController.h
The Scncameracontroller is the operating class of the camera (Scncamera).
13, SCNConstraint.h
The SCN constraint is an abstract class that represents a single constraint that can be applied to a node and automatically adjusts the position or orientation of the node according to the specified rules.
14, SCNGeometry.h
The class that is responsible for presenting the three-dimensional model, which manages the shape and texture of the object.
15, SCNHitTest.h
Details about the search for the result of a scene element at a specified point or a specified segment (or ray), such as nodes, coordinates, and so on.
16, SCNJavascript.h
Exports the Scenkit symbols (constants and class definitions) in the specified JavaScript context. (For MacOS Systems)
17, SCNLevelOfDetail.h
Scnlevelofdetail represents the level of detail of the model, such as obtaining scngeometry properties.
18, SCNLight.h
Used to add light sources, connect to a node illuminate the scene, you can add different lights to the scene, simulating a realistic environment.
19, SCNMaterial.h
Used to set the appearance properties of the model.
20, SCNMaterialProperty.h
Used to set various properties of the model, such as texture and color of the material.
21, SCNMorpher.h
The management node smoothly transitions between the model and one or more target models, that is, controlling the deformation of the geometry.
22, SCNNode.h
The structure element of the scene graph, which represents the position and transformation in the 3D coordinate space, you can attach the model, light, camera, or other visible content to the element.
23, SCNParametricGeometry.h
Used to get information about the model.
24, SCNParticleSystem.h
Manage animations and render small image sprites or particle systems with advanced simulations of the general behavior you specify. (For MacOS (10.10))
25, SCNPhysicsBehavior.h
Scnphysicsbehavior is an abstract class that represents a behavior in the physical world. (For MacOS (10.10))
26, SCNPhysicsBody.h
The Scnphysicsbody class describes the physical characteristics of a node, such as mass, friction, and so on. (For MacOS (10.10))
27, SCNPhysicsContact.h
The Scnphysicscontact class contains information about physical contact (nodes, and so on). (For MacOS (10.10))
28, SCNPhysicsField.h
The Scnphysicsfield class is an abstract class that describes the force field applied in the physical world. (For MacOS (10.10))
29, SCNPhysicsShape.h
Scnphysicsshape represents the shape of a physical body, (for MacOS (10.10))
30, SCNPhysicsWorld.h
The Scnphysicsworld class describes and allows you to control the physical simulation of a 3D scene. The Scnphysicsworld class should not be assigned directly, but instead be retrieved from the Scnscene class using the physical world attribute.
31, SCNReferenceNode.h
A scene graph node that is used as a placeholder for content to be loaded from a separate scene file.
32, SCNRenderer.h
The renderer used to display the Scenekit scene in an existing metal workflow or OpenGL context.
33, SCNScene.h
Scnscene is a rendered scene, a hierarchy of nodes with additional geometry, lights, cameras, and other attributes that together form a 3D scene that can be displayed.
34, SCNSceneRenderer.h
Methods and properties common to the Scnview,scnlayer and Scnrenderer classes.
35, SCNSceneSource.h
Manages data read tasks related to loading scene content from files or data.
36, SCNShadable.h
Use the metal or OpenGL shader program to customize the way Scenekit renders geometry and materials.
37, SCNSkinner.h
An object that manages the relationship between a skeletal animation and its animated node and geometry.
38, SCNTechnique.h
Add or post-process specifications for scenekit rendered scenes, using additional drawings through custom metal or OpenGL shaders.
39, SCNTransaction.h
Scenekit animations are based on the core Animation framework and can be created either implicitly or explicitly.
Implicit creation is actually achieved through some animated properties of the animation node: Scenekit automatically combines all the changes of a scene's containing node properties into one atomic operation during run loop operation, called a transaction, represented by the Scntransaction class When the animation period of the Set Scntransaction class is not 0 o'clock, all changes to the animation properties of the node are automatically animated.
When you explicitly create an animation, you can choose to caanimation a subclass of one type to create a specific type of animation.
40, SCNView.h
The Scnview is used to display the 3D content of the Scenekit, which is a subclass of UIView on the iOS system, so you can add the Scnview class to the UIView.
Introduction to the iOS SceneKit.h file