Class MeshVisual

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    A class encapsulating the property map of the mesh visual.

    public class MeshVisual : VisualMap, IDisposable
    Inheritance
    object
    VisualMap
    MeshVisual
    Implements
    System.IDisposable

    Constructors

    View Source

    MeshVisual()

    Default constructor of MeshVisual class.

    Declaration
    public MeshVisual()

    Properties

    View Source

    LightPosition

    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
    View Source

    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
    View Source

    ObjectURL

    Gets or sets the location of the ".obj" file.
    Mandatory.

    Declaration
    public string ObjectURL { get; set; }
    Property Value
    Type Description
    string
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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 Source

    ComposingPropertyMap()

    Compose the out visual map.

    Declaration
    protected override void ComposingPropertyMap()
    Overrides
    VisualMap.ComposingPropertyMap()

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX