How To Setup Meshes E-mail
Supplemental Object Documentation

1. Overview

The Mesh object is used to create physical objects not usually created by other formats.

2. Methods

 Load <file>

Load a mesh file.

 Move <x> <y> <z>

Move the mesh in any direction.

 Render <variant>

Render all or a specific mesh index.

 Rotate <x> <y> <z>

Rotate the mesh around the position axis.

 SetPosition <x> <y> <z>

Set the position point of the mesh.

 SetRelative <boolean>

Set the camera relativity which binds the object.

 SetRotation <x> <y> <z>

Set the rotation factor of the mesh.

 SetScale <x> <y> <z>

Set the scale size of the mesh.

 SetShader <index> <shader>

Set a mesh shader.

 SetTriangle <index> <x> <y> <z>

Set a triangle vertices.

 SetVertex <index> <x> <y> <z> <u> <v>

Set a vertex coordinates.


Unload the mesh.

3. Properties

 Normal <index> <vertice>

The look-at point of a mesh.

 Position <vertex>

The position point.

 Relative <boolean>

The camera relativity.

 Rotation <vertex>

The rotation factor.

 Shader <shader>

The shader objects.

 Texture <index> <vertice>

The texture coordinate objects.

 Vertex <index> <vertice>

The vertices objects.

 Vertices <index>

The number of vertices.

 Volume <index>

The volume objects.

4. Example

The following example is based upon the engine being initialized at which point the sample mesh file is loaded, deformed, and displayed within the environment.

' Game Basic 3D Engine Build 4096
' Copyright © Monarke Studios. All Rights Reserved.
Private Mesh As New GameBasic3D.Mesh
' Engine.Initialize
Mesh.Load "./.."
' Deform the mesh coordinates
Mesh.SetVertex 1, X, Y, Z, U, V
Mesh.SetVertex 2, X, Y, Z, U, V
Mesh.SetVertex 3, X, Y, Z, U, V
Mesh.SetVertex 4, X, Y, Z, U, V
    ' Engine.Begin
    ' Engine.Synchronize
' Engine.End
Set Mesh = Nothing

5. Disclaimer 

Please note that the objects, and other various effects that can help extend the example are not entirely present but assume you're already familiar working with them. Please refer to the other online content, and technical reference included with the installation for further documentation.