A Model Class which loads and processes all data at runtime. Although this add's to load times, it allows for more control as well as modding for any and all models which are used in the game. Using three different models to handle different types of rendering does add too over all installation size, it is necessary to allow the shaders to be compiled for cross platform use.
More...
A Model Class which loads and processes all data at runtime. Although this add's to load times, it allows for more control as well as modding for any and all models which are used in the game. Using three different models to handle different types of rendering does add too over all installation size, it is necessary to allow the shaders to be compiled for cross platform use.
The vxMesh Helper Class helps.
◆ FromXNAModel()
static vxMesh VerticesEngine.Graphics.vxMeshHelper.FromXNAModel |
( |
string | pathToModel, |
|
|
ContentManager | content, |
|
|
string | texturePath = "" ) |
|
static |
Converts an XNA Model into a vxMesh.
- Parameters
-
pathToModel | |
content | |
texturePath | |
- Returns
◆ GetModelBoundingBox()
static BoundingBox VerticesEngine.Graphics.vxMeshHelper.GetModelBoundingBox |
( |
vxMesh | model, |
|
|
Matrix | worldTransform ) |
|
static |
Get's the Bounding Box for a Model.
- Parameters
-
- Returns
◆ GetVerticesAndIndicesFromModel()
static void VerticesEngine.Graphics.vxMeshHelper.GetVerticesAndIndicesFromModel |
( |
vxMesh | model, |
|
|
out Vector3[] | vertices, |
|
|
out int[] | indices ) |
|
static |
Get Vertices and Indies from a vxMesh.
- Parameters
-
The documentation for this class was generated from the following files:
- /github/workspace/src/VerticesEngine/src.shared/Graphics/Util/vxMeshHelper.cs
- /github/workspace/src/VerticesEngine/src.shared/Graphics/Util/vxMeshHelper.Import.cs
- /github/workspace/src/VerticesEngine/src.shared/Graphics/Util/vxMeshHelper.Import.OBJ.cs