Game Development Reference
In-Depth Information
Apple has integrated Sprite Kit with in the Scene Kit technology. This integration will al-
low you to use your Sprite Kit knowledge to create your casual 3D game. Table 10-1
gives you an overview of the various classes and describes each of these Scene Kit
classes.
Table 10-1 . Scene Kit Classes
Class
Description
SCNView
This view is used to display Scene Kit objects.
A scene can be created programmatically or by using a 3D file from graphic tools.
SCNScene
This is the starting point to create a scene.
SCNNode
SCNCamera
This is the point of view for the scene.
This is a 3D object used to attach to a node. This also can use 3D files from graphic
tools.
SCNGeometry
SCNMaterial Material is used to describe how the surface of the node will be rendered.
This is a light source attached to a node to provide shading and lighting of the scene.
SCNLight
Scene Kit Animation
Scene Kit is integrated with ImageKit and CoreAnimation, so you will not need to have
advanced knowledge of 3D programming knowledge. When you create scenes, you can
create animations that transition elegantly between different values of the scene's proper-
ties.
Scene Kit uses the SCNTransaction class to create an atomic run loop to combine all
your implicit animation changes. These types of changes are ideally small atomic changes
that occur almost immediately, and you are able to increase the duration. These types of
animated properties automatically animate.
Since Scene Kit is based on CoreAnimation, you can explicitly create animation objects
and attach them to the animated scene. For this more complex animation, you subclass
CAAnimation . After creating this subclass using key-value coding, set the animation
parameters and attach them to the node or elements in the scene. The CAAnimation
class is also able to use objects from third-party graphic authoring tools.
Search WWH ::




Custom Search