Hi guys
Newbie question
I have a 3D Finite Element model that is made from multiple parts.
At each vertex there is a scalar data value that will be used to render the face polygons with various colours.
I want the ability to quickly turn on/off parts and change the vertex colours based on user defined limits (User has a colour band that they can change).
I can pre-calculate the external faces for each part and store in a display list. Basically a bunch of glVertex3f commands
I assume that this will be the best way to quickly display the parts and be able to turn them on/off (via a nested display list)???
The bit I am not sure about is the rendering based on the data value.
This is the sort of command, I think, I need to use
glColor3f 1, 0, 0: glVertex3f 0, 0, 0
The glColor3* command will vary depending on what the user wants to see. As far as I can tell this will then negate the benefit of having a display list and pre-calculating the glVertex3* commands .
What I am after is a way to ‘overlay’ the vertex colour information on top of an existing polygon display list (if I am making sense)
I.E the glVertex3* stuff never changes but the glColor3* stuff does.
Is this possible?
I have seen OGL Finite Element apps where the User has a slider which modifies the vertex colours in real time. I can’t believe that the glVertex3* stuff is being re-worked.
Obviously I will store the glVertex3* data in an array, but ideally I don’t want to recompute the display list
Thanks for any help and hopefully I am making some sort of sense
Julian