View3D inherited from Sprite -> DisplayObjectContainer -> InteractiveObject -> DisplayObject -> EventDispatcher.


Can be created using method new:

Lib.Away3D.Containers.View3D.new()

Creates View3D object



Created View3D object has properties:

antiAlias

The amount of anti-aliasing to be used.

background

(Texture2DBase)

backgroundAlpha

Float

backgroundColor

The background color of the screen. Int

camera

The camera that's used to render the scene for this viewport (Camera3D)

deltaTime

[read-only] The amount of milliseconds the last render call took. Int

depthPrepass

Boolean

filters

[override] Not supported. array

filters3d

array

forceMouseMove

Forces mouse-move related events even when the mouse hasn't moved. Boolean

height

[override] The height of the viewport.

layeredView

Used in a sharedContext. Boolean

mousePicker

(IPicker)

renderedFacesCount

[read-only] The amount of faces that were pushed through the render pipeline on the last frame render. Int

renderer

The renderer used to draw the scene. (RendererBase)

rightClickMenuEnabled

Boolean (not supported)

rotation

[override] [write-only]

rotationX

[override] [write-only]

rotationY

[override] [write-only]

rotationZ

[override] [write-only]

scaleX

[override] [write-only]

scaleY

[override] [write-only]

scaleZ

[override] [write-only]

scene

The scene that's used to render for this viewport (Scene3D)

shareContext

Defers control of Context3D clear() and present() calls to Stage3DProxy, enabling multiple Stage3D frameworks to share the same Context3D object. Boolean

stage3DProxy

(Stage3DProxy)

touchPicker

(IPicker)

transform

[override] [write-only] (Transform)

visible

[override] [write-only] Boolean

width

[override] The width of the viewport.

x

[override] [write-only]

y

[override] [write-only]

z

[override] [write-only]


methods:

addSourceURL(url)

Defines a source url string that can be accessed though a View Source option in the right-click menu.

url - The url to the source files. Not supported

dispose()

Disposes all memory occupied by the view.


getRay(sX, sY, sZ)

Calculates the ray in scene space from the camera to the given screen coordinates. return (Vector3D)

sX - The absolute x coordinate in 2D relative to View3D, representing the screenX coordinate.

sY - The absolute y coordinate in 2D relative to View3D, representing the screenY coordinate.

sZ - The distance into the screen, representing the screenZ coordinate.

project(point3d)

Calculates the projected position in screen space of the given scene position. return (Vector3D)

point3d - the position vector of the point to be projected. (Vector3D)

render()

Renders the view.


unproject(sX, sY, sZ)

Calculates the scene position of the given screen coordinates. return (Vector3D)

sX - The absolute x coordinate in 2D relative to View3D, representing the screenX coordinate.

sY - The absolute y coordinate in 2D relative to View3D, representing the screenY coordinate.

sZ - The distance into the screen, representing the screenZ coordinate.


Created with the Personal Edition of HelpNDoc: News and information about help authoring tools and software