Packageorg.papervision3d.scenes
Classpublic class Scene3D
InheritanceScene3D Inheritance SceneObject3D Inheritance DisplayObjectContainer3D Inheritance flash.events.EventDispatcher
SubclassesFlexScene3D, MovieScene3D

The Scene3D class lets you create a scene where all objects are rendered in the same container.

A scene is the place where objects are placed, it contains the 3D environment.



Public Properties
 PropertyDefined by
 Inheritedchildren : Object
Returns the children object.
DisplayObjectContainer3D
 Inheritedcontainer : Sprite
The Sprite that you draw into when rendering.
SceneObject3D
 Inheritedmaterials : MaterialsList
It contains a list of materials in the scene.
SceneObject3D
 InheritednumChildren : int
Returns the number of children of this object.
DisplayObjectContainer3D
 Inheritedobjects : Array
It contains a list of DisplayObject3D objects in the scene.
SceneObject3D
 Inheritedroot : DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
DisplayObjectContainer3D
 Inheritedstats : RenderStatistics
An object that contains total and current statistics.
SceneObject3D
 InheritedtriangleCuller : ITriangleCuller
SceneObject3D
Protected Properties
 PropertyDefined by
 Inherited_children : Dictionary
[internal-use] Names indexed by children.
DisplayObjectContainer3D
 Inherited_childrenByName : Object
[internal-use] Children indexed by name.
DisplayObjectContainer3D
Public Methods
 MethodDefined by
  
Scene3D(container:Sprite)
The Scene3D class lets you create a scene where all objects are rendered in the same container.
Scene3D
 Inherited
addChild(child:DisplayObject3D, name:String = null):DisplayObject3D
Adds a child DisplayObject3D instance to the scene.
SceneObject3D
 Inherited
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
DisplayObjectContainer3D
 Inherited
addCollada(filename:String, materials:MaterialsList = null, scale:Number = 1):void
This method has been deprecated.
DisplayObjectContainer3D
 Inherited
childrenList():String
Returns a string value with the list of objects.
DisplayObjectContainer3D
 Inherited
Returns the child display object that exists with the specified name.
DisplayObjectContainer3D
 Inherited
Removes the specified child DisplayObject3D instance from the child and object list of the scene.
SceneObject3D
 Inherited
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
DisplayObjectContainer3D
 Inherited
Generates an image from the camera's point of view and the visible models of the scene.
SceneObject3D
 Inherited
toString():String
Returns a string value with the list of objects.
DisplayObjectContainer3D
Protected Methods
 MethodDefined by
  
renderObjects(sort:Boolean):void
Generates an image from the camera's point of view and the visible models of the scene.
Scene3D
Constructor detail
Scene3D()constructor
public function Scene3D(container:Sprite)

The Scene3D class lets you create a scene where all objects are rendered in the same container.

Parameters
container:Sprite — The Sprite that you draw into when rendering.
Method detail
renderObjects()method
protected override function renderObjects(sort:Boolean):void

Generates an image from the camera's point of view and the visible models of the scene.

Parameters
sort:Boolean — camera to render from.