S3D.renderer
The S3D.renderer
namespace provides functionality to control the renderer.
S3D.renderer.setView
#
important
This is for the 3D renderer. To get this functionality with the modeling renderer see S3D.graphics.setCameraView
Description: Set the camera angle for the detailed render.
Operation Type: Synchronous
Params: S3D.renderer.setView(type: String, options?: Object)
type: custom
, top
, bottom
, front
, back
, left
, right
, top_front_left
, back_left
, etc...
options properties:
Key | Type | Description |
---|---|---|
x | number | X position of the camera. |
y | number | Y position of the camera. |
z | number | Z position of the camera. |
Sample:
setView.js