|How To Setup Models|
Supplemental Object Documentation
The Model objects covers a group of components which together make up the collection of supported formats.
Load a model file format.
Move a model in any direction.
Render the model formats.
Rotate a model around the position axis.
Set a model animation by name.
Set a model animation frame index.
Set the position point of a model.
Set the camera relativity which binds the object.
Set the rotation factor of a model.
Set the scale size of a model.
Set a model shader.
Set the velocity of the model animations.
Unload a model format.
The current animated frame.
The position point.
The camera relativity.
The rotation factor.
The shader object.
The volume object.
The following example is based upon the engine being initialized at which point all supported model formats are fully loaded including any prerequisites, and displayed within the environment.
' Game Basic 3D Engine Build 4096 ' Copyright © Monarke Studios. All Rights Reserved. Private MDL As New GameBasic3D.MDL Private MD2 As New GameBasic3D.MD2 Private MD3 As New GameBasic3D.MD3 Private MD5 As New GameBasic3D.MD5 ' Engine.Initialize ' Load Quake 1 MDL MDL.Load "./.." MDL.LoadPalette "./.." ' Load Quake 2 MD2 MD2.Load "./.." MD2.LoadTexture "./.." ' Load Quake 3 MD3 MD3.Load "./..", "./.." MD3.LoadTexture "./.." MD3.LoadAnimationTable "./.." ' Load Quake 4 MD5 MD5.Load "./.." MD5.LoadAnimation "./.." MD5.LoadCamera "./.." Do ' Engine.Begin MDL.Render MD2.Render MD3.Render MD5.Render ' Engine.Synchronize Loop ' Engine.End Set MD5 = Nothing Set MD3 = Nothing Set MD2 = Nothing Set MDL = Nothing
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.