(again: sorry about my bad english)
In my own old fixed pipeline renderengine I render cars (without shadows).
My OpenGL 1.x car rendering youtube:
https://www.youtube.com/watch?v=WVShauw1pHA500 cars as OpenGL lists youtube:
https://www.youtube.com/watch?v=aJvW320mdZgI used precompiled OpenGL lists so the geometries are stored in fast GPU memory and it works with old PC's with OpenGL 1.x
Every car has two textures one for the car body and one for the wheels and some different materials.
One material with transparency for the windows and glass of the lights (texture 1)
One glossy textured with static envrionment mapping (outside of car texture 1)
One textured solid for the interior (inside the car texture 1)
One textured solid for the wheels (texture 2)
In Horde 3D
I can store many meshes from one car model via batchStart/End and verRStart/End in one geo file right ?
I can set only one material per mesh right ?
I can set only a transformation matrix (dynamical per frame) for a scene node not for a model right ?
So I must convert my current own binary models as Horde 3D content like this
is it right ?
Thank you.
Joshy
Example one car the parent node with 4 wheels as child nodes .
file: "bmw.parent.scenel.xml"
Code:
<Model name="BMW_body" geometry="models/cars/bmw.geo">
<Mesh name="chassi" material="models/cars/bmw/chassi.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
<Mesh name="glasses" material="models/cars/bmw/glass.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
<Mesh name="interior" material="models/cars/bmw/interior.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
<Mesh name="lights" material="models/cars/bmw/light.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
</Model>
file: "bmw.child_frontleft_wheel.scenel.xml"
Code:
<Model name="BMW_frontleft_wheel" geometry="models/cars/bmw.geo">
<Mesh name="frontleft_wheel" material="models/cars/bmw/wheel.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
</Model>
file: "bmw.child_frontright_wheel.scenel.xml"
Code:
<Model name="BMW_frontright_wheel" geometry="models/cars/bmw.geo">
<Mesh name="frontright_wheel" material="models/cars/bmw/wheel.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
</Model>
file: "bmw.child_rearleft_wheel.scenel.xml"
Code:
<Model name="BMW_rearleft_wheel" geometry="models/cars/bmw.geo">
<Mesh name="rearleft_wheel" material="models/cars/bmw/wheel.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
</Model>
file: "bmw.child_rearright_wheel.scenel.xml"
Code:
<Model name="BMW_rearright_wheel" geometry="models/cars/bmw.geo">
<Mesh name="rearright_wheel" material="models/cars/bmw/wheel.material.xml" batchStart="XX" batchCount="XX" vertRStart="XX" vertREnd="XX" />
</Model>