I want to draw 2 or more objects ( lets say a cube and a pyramid)in one viewport. I would be performing transformations (translate, rotate, scaling) on either or both of the objects.
HOw do I implement this such that I can transform/animate only one of the objects and the other one(s) remain in their original position?
Do I use Arrays to store the vertices of the objects? glArrayElements()??? can anyone give examples… I’m new to opengl.
how do I pick one of the objects? and highlight them ?
AFter I pick a certain object and highlight it … how do I perform transformation on it? (just on the chosen object)
in this way you’ll get object 1 translated, whereas object 2 remains stationary.
You can use whatever you want, however since you’re new to openGL I would suggest starting with the GLUT primitives as they are easier to use than if you have to specify all the vertices.