|
ReaderObjReadSceneNodes(String, String, StandardMaterial) Method |
Reads the 3D models from objFileName file and returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes.
The method will not return null but an empty GroupNode in case no model is read.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public GroupNode ReadSceneNodes(
string objFileName,
string? texturesDirectory,
StandardMaterial? defaultMaterial
)
Parameters
- objFileName String
- obj file name
- texturesDirectory String
- textures directory
- defaultMaterial StandardMaterial
- material that is used if no material is defined in obj file
Return Value
GroupNodeGroupNode that contains MeshModelNodes and other GroupNodes
See Also