Post by cemetarycat on Sept 12, 2008 16:04:11 GMT -5
hello Matthew and HGuillect.
I have been taking a look at the code
in the Brutus2d program to render a simple teapot.
And especially this section of code:
DIM Teapot
SET Teapot = CreateObject("TrueVision3D.Mesh8") ' This creates our 3D Teapot
SET Teapot = Scene.CreateMeshBuilder
Teapot.CreateTeapot
Teapot.SetPosition 0, 0, 10 ' This positions our 3D Teapot on the Screen
I just have a few questions.
In the first SET statement do the variable reference of Teapot
is created as a Mesh8 object?
In the second SET statement Teapot is prepared and/or acted upon to be drawn or rendered in the Scene.
Now, then with Teapot.CreateTeapot...the actual teapot model is created.
And then it is moved in 3d space in the scene at 0,0,10 of the command Teapot.SetPosition 0,0,10.
then later on in the loop of the program..it and the whole screne is drawn and rendered to the screen.
I just have a few more questions.
How would I set up for a mdl, md2 model?
Or even a 3ds model??
Like for example with my Anubis 3ds model...and called Anubis.3ds
Texture is built in with the Anubis mesh.
Would it be something similar or like
DIM Anubis
SET Anubis = CreateObject("TrueVision3D.Mesh8") ' This creates our 3D Anubis as a Mesh8 object
SET Anubis = Scene.CreateMeshBuilder
Anubis.Load3DsMesh("Anubis.3ds")
Anubis.SetPosition 0, 0, 10 ' This positions our Anubis on the Screen
here is from the help file:
Load3DsMesh
Load a 3DS file in the mesh. The materials and
the texture will be loaded too. The textures
MUST be BMP,GIF,JPG or DDS and have to be
in the same directory of the model.
Description
Load a 3DS file in the mesh. The materials and the texture will be loaded too. The textures MUST be
BMP,GIF,JPG or DDS and have to be in the same directory of the model.
Return Type
None
Syntax
object.Load3DsMesh Filename
The Load3DsMesh Method syntax has these parts:
Part Description
object An expression evaluating to an object of type Mesh8.
Filename Required. A String value. 3Ds filename.
I have been taking a look at the code
in the Brutus2d program to render a simple teapot.
And especially this section of code:
DIM Teapot
SET Teapot = CreateObject("TrueVision3D.Mesh8") ' This creates our 3D Teapot
SET Teapot = Scene.CreateMeshBuilder
Teapot.CreateTeapot
Teapot.SetPosition 0, 0, 10 ' This positions our 3D Teapot on the Screen
I just have a few questions.
In the first SET statement do the variable reference of Teapot
is created as a Mesh8 object?
In the second SET statement Teapot is prepared and/or acted upon to be drawn or rendered in the Scene.
Now, then with Teapot.CreateTeapot...the actual teapot model is created.
And then it is moved in 3d space in the scene at 0,0,10 of the command Teapot.SetPosition 0,0,10.
then later on in the loop of the program..it and the whole screne is drawn and rendered to the screen.
I just have a few more questions.
How would I set up for a mdl, md2 model?
Or even a 3ds model??
Like for example with my Anubis 3ds model...and called Anubis.3ds
Texture is built in with the Anubis mesh.
Would it be something similar or like
DIM Anubis
SET Anubis = CreateObject("TrueVision3D.Mesh8") ' This creates our 3D Anubis as a Mesh8 object
SET Anubis = Scene.CreateMeshBuilder
Anubis.Load3DsMesh("Anubis.3ds")
Anubis.SetPosition 0, 0, 10 ' This positions our Anubis on the Screen
here is from the help file:
Load3DsMesh
Load a 3DS file in the mesh. The materials and
the texture will be loaded too. The textures
MUST be BMP,GIF,JPG or DDS and have to be
in the same directory of the model.
Description
Load a 3DS file in the mesh. The materials and the texture will be loaded too. The textures MUST be
BMP,GIF,JPG or DDS and have to be in the same directory of the model.
Return Type
None
Syntax
object.Load3DsMesh Filename
The Load3DsMesh Method syntax has these parts:
Part Description
object An expression evaluating to an object of type Mesh8.
Filename Required. A String value. 3Ds filename.