Horde3D

Next-Generation Graphics Engine
It is currently 24.11.2024, 10:30

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: DJ's questions :-)
PostPosted: 24.09.2016, 10:05 
Offline

Joined: 26.09.2015, 22:37
Posts: 8
Location: germany
(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=WVShauw1pHA

500 cars as OpenGL lists youtube: https://www.youtube.com/watch?v=aJvW320mdZg

I 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>


Top
 Profile  
Reply with quote  
 Post subject: Re: DJ's questions :-)
PostPosted: 24.09.2016, 10:38 
Offline

Joined: 26.09.2015, 22:37
Posts: 8
Location: germany
Or is it better to use only one geo file per node (car and wheels) and use batchStart/End and vertRStart/End for different LOD levels ?

Sorry if it's stupid but currently I'm little bit confused and unsure because Horde 3D content and render pipeline are new for me.

Joshy


Top
 Profile  
Reply with quote  
 Post subject: Re: DJ's questions :-)
PostPosted: 24.09.2016, 13:34 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
You should probably store one car per geometry file. So, one model will contain all car parts and all lods.
Yes, one material per mesh. As far as I remember, you can set trans matrix for model scene node, and all its meshes will recalculate their position.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group