Class MeshVisual
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A class encapsulating the property map of the mesh visual.
public class MeshVisual : VisualMap
- Inheritance
Constructors
View SourceMeshVisual()
Constructor.
Declaration
public MeshVisual()
API Level: 3
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 |
API Level: 3
View SourceMaterialtURL
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 |
API Level: 3
View SourceObjectURL
Gets or sets the location of the ".obj" file.
Mandatory.
Declaration
public string ObjectURL { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceShadingMode
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 |
API Level: 3
View SourceTexturesPath
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 |
API Level: 3
View SourceUseMipmapping
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 |
---|---|
Boolean |
API Level: 3
View SourceUseSoftNormals
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 |
---|---|
Boolean |
API Level: 3
Methods
View SourceComposingPropertyMap()
Compose the out visual map.
Declaration
protected override void ComposingPropertyMap()