joolz
07-10-2005, 11:22 PM
Guys
I have a model created from many sub parts.....
In my main rendering code I do this
For lngCounter1 = 1 To glngNumPIDs
......glPushMatrix
...........glCallList lngCounter1
......glPopMatrix
Next
As you can see, I loop round the various parts of my model contained in display lists.
The problem with this is that if parts share a common boundary then the boundary isn't displayed correctly when I spin the model round in realtime.
Consider a simple example of 2 cubes touching.
In the code above I would render each cube individually and there are 2 common faces that probably wont render correctly (because the parts are rendered separately)
Obviously I could create a new display list that does not contain the 2 common faces but I am trying to avoid doing additional calculations.
At the moment I precalculate the display lists in a part of the code where the user is expecting a wait (I could have 100K quads in each part)
Ideally I don't want to re-calculate the external faces 'on the fly'
Is there a way round this or do I have to build a new single display list from the others?
Many thanks for any input
I have a model created from many sub parts.....
In my main rendering code I do this
For lngCounter1 = 1 To glngNumPIDs
......glPushMatrix
...........glCallList lngCounter1
......glPopMatrix
Next
As you can see, I loop round the various parts of my model contained in display lists.
The problem with this is that if parts share a common boundary then the boundary isn't displayed correctly when I spin the model round in realtime.
Consider a simple example of 2 cubes touching.
In the code above I would render each cube individually and there are 2 common faces that probably wont render correctly (because the parts are rendered separately)
Obviously I could create a new display list that does not contain the 2 common faces but I am trying to avoid doing additional calculations.
At the moment I precalculate the display lists in a part of the code where the user is expecting a wait (I could have 100K quads in each part)
Ideally I don't want to re-calculate the external faces 'on the fly'
Is there a way round this or do I have to build a new single display list from the others?
Many thanks for any input