Click or drag to resize
Ab4d.SharpEngine logo

ObjFileToSceneNodesConverter Properties

The ObjFileToSceneNodesConverter type exposes the following members.

Properties
 NameDescription
Public propertyConvert3DLines When true (by default), then 3D lines from obj file are converted into LineNode or MultiLineNode objects. When false, then 3D lines are ignored.
Public propertyDefaultBackMaterial Gets or sets a material that is used for BackMaterial when no other back material is specified in obj file. When set to null, no BackMaterial will be used.
Public propertyDefaultLineColor Gets or sets a default line color that is set to the created LineNode or MultiLineNode when the obj file does not specify line color. Default value is Color4.Black. When set to null, then the line color is set from the last used material.
Public propertyDefaultMaterial Gets or sets a material that is used when no other material is specified in obj file. By default DefaultMaterial is set to StandardMaterials.Silver.
Public propertyInvertYTextureCoordinate Gets or sets a boolean that specifies if Y texture coordinate is inverted.
Public propertyLineDepthBias Depth bias that is set to the created MultiLineNode. Default value is 0.0005f. This is used to avoid z-fighting when lines are rendered together with meshes.
Public propertyLineThickness Gets or sets the thickness of the created lines. Default value is 1.
Public propertyNamedObjects Gets a Dictionary with object name as key and MeshModelNode as value that defines names for the objects.
Public propertyResolveResourceFunc Gets or sets a Func that returns stream from the specified resource name. This can be used to read resources from stream. The returned stream will be closed by the ObjImporter.
Public propertyReuseMaterials Gets or sets a boolean that specified if one material instance defined in obj file can be reused for all SceneNode objects that use that material. If false than a new material instance will be created for each usage. Default value is true.
Public propertyTexturesDirectory Gets or sets a folder name that when set is used to read texture file names from.
Public propertyUseTwoSidedMaterials When true (by default), then BackMaterials is set to the same material as Material.
Top
See Also