Class MeshVisual
Definition
- Assembly:
- Tizen.NUI.dll
A class encapsulating the property map of the mesh visual.
public class MeshVisual : VisualMap, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceMeshVisual()
Default constructor of MeshVisual class.
Declaration
public MeshVisual()
Properties
View SourceLightPosition
Gets or sets the position, in the stage space, of the point light that applies lighting to the model.
This is based off the stage's dimensions, so using the width and the height of the stage halved will correspond to the center,
and using all zeroes will place the light at the top-left corner.
If not specified, the default is an offset outwards from the center of the screen.
Optional.
Declaration
public Vector3 LightPosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
MaterialtURL
Gets or sets the location of the ".mtl" file.
If not specified, then a textureless object is assumed.
Optional.
Declaration
public string MaterialtURL { get; set; }
Property Value
Type | Description |
---|---|
string |
ObjectURL
Gets or sets the location of the ".obj" file.
Mandatory.
Declaration
public string ObjectURL { get; set; }
Property Value
Type | Description |
---|---|
string |
ShadingMode
Gets or sets the type of shading mode that the mesh will use.
If anything the specified shading mode requires is missing, a simpler mode that can be handled with what has been supplied will be used instead.
If not specified, it will use the best it can support (will try MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting first).
Optional.
Declaration
public MeshVisualShadingModeValue ShadingMode { get; set; }
Property Value
Type | Description |
---|---|
MeshVisualShadingModeValue |
TexturesPath
Gets or sets the path to the directory the textures (including gloss and normal) are stored in.
Mandatory if using material.
Declaration
public string TexturesPath { get; set; }
Property Value
Type | Description |
---|---|
string |
UseMipmapping
Gets or sets whether to use mipmaps for textures or not.
If not specified, the default is true.
Optional.
Declaration
public bool UseMipmapping { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseSoftNormals
Gets or sets whether to average normals at each point to smooth textures or not.
If not specified, the default is true.
Optional.
Declaration
public bool UseSoftNormals { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()