메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
Dispose
|
|
GetOverrideMesh ( |
||
RecreateRenderingBackend ( ) : void |
Recreates the rendering backend if needed. This is called after the global rendering backend setting is changed.
|
|
Render ( open3mod.UiState state, ICameraController cam, open3mod.Renderer target ) : void |
Call once per frame to render the scene to the current viewport.
|
|
RequestReconfigureTextures ( ) : void |
Requests that texture filters be re-configured as soon as possible. This is called when the texture settings are changed. This method may only be called from the UI thread.
|
|
RequestRenderRefresh ( ) : void |
Requests the renderer to update next frame even if it seems as if nothing changed. This method may only be called from the UI thread.
|
|
RequestReuploadTextures ( ) : void |
Requests that all textures be re-uploaded as soon as possible. This is called when the texture settings are changed. This method may only be called from the UI thread.
|
|
Scene ( string file ) : System |
Construct a scene given a file name, throw if loading fails
|
|
SetOverrideMesh ( |
Replace a given mesh with another when drawing. This has immediate effect. Editing tools use this to temporarily replace the mesh being rendered with a preview of the action. Pass null to revert to the original mesh.
|
|
SetPivot ( Assimp.Node node, bool realCenter = true ) : void |
Set the pivot point for the scene to be at the world position of a given node.
|
|
SetSkeletonVisibleOverride ( bool overrideSkeleton ) : void |
Turns skeleton visualization on even if it is off in the UI.
|
|
SetVisibleNodes ( Dictionary |
Sets which parts of the scene are visible. See ISceneRenderer.Render (visibleNodesByMesh parameters) for a description of how the visible set is determined.
|
|
Update ( double delta, bool silent = false ) : void |
To be called once per frame to do non-rendering jobs such as updating animations.
|
메소드 | 설명 | |
---|---|---|
ComputeBoundingBox ( Assimp.Node node, Vector3 &min, Vector3 &max, Matrix4 &trafo ) : void |
Helper for ComputeBoundingBox(out Vector3 sceneMin, out Vector3 sceneMax)
|
|
ComputeBoundingBox ( Vector3 &sceneMin, Vector3 &sceneMax, Vector3 &sceneCenter, Assimp.Node node = null, bool omitRootNodeTrafo = false ) : void |
Calculates the smallest AABB that encloses the scene.
|
|
CountVertsAndFaces ( int &totalVertexCount, int &totalTriangleCount, int &totalLineCount, int &totalPointCount ) : void |
Counts vertices, points, lines and triangles in the scene.
|
|
CreateRenderingBackend ( ) : void | ||
GetPostProcessStepsFlags ( ) : PostProcessSteps | ||
LoadTextures ( ) : void |
Populates the TextureSet with all the textures required for the scene.
|
|
SetTexturesChangedFlag ( ) : void |
Sets a flag for the renderer that at least one of the textures in the scene was changed and needs to be updated. This method may be called from any thread.
|
public GetOverrideMesh ( |
||
mesh | ||
리턴 |
public Render ( open3mod.UiState state, ICameraController cam, open3mod.Renderer target ) : void | ||
state | open3mod.UiState | |
cam | ICameraController | |
target | open3mod.Renderer | |
리턴 | void |
public SetOverrideMesh ( |
||
mesh | ||
overrideMesh | ||
리턴 | void |
public SetPivot ( Assimp.Node node, bool realCenter = true ) : void | ||
node | Assimp.Node | Node to place the pivot at. Pass null to reset the /// pivot to be the (natural) center of the scene |
realCenter | bool | Whether to compute the real center of the node (by getting /// the mid point of the geometric bounds or whether the origin of the local coordinate /// space is used. |
리턴 | void |
public SetSkeletonVisibleOverride ( bool overrideSkeleton ) : void | ||
overrideSkeleton | bool | true to always show skeleton /// visualization, false to take the UI's settings |
리턴 | void |
public SetVisibleNodes ( Dictionary |
||
meshFilter | Dictionary |
See ISceneRenderer.Render (visibleNodesByMesh parameter) |
리턴 | void |
public Update ( double delta, bool silent = false ) : void | ||
delta | double | Real-world time delta in seconds |
silent | bool | True if the scene is in background and won't /// be rendered this frame. It may then be possible to implement /// a cheaper update. |
리턴 | void |