I have a wire grid model of a car with an
antenna on the drivers side. I am using
glOrtho to display it. When I spin the car
the antenna appears to move back and forth
from the drivers side to the passenger side.
Is there any way to fix this? I tried to
use perspective but then the model didn’t
look very good.
Thanks in advance,
Just how is the model made? Are you use push/pop to add parts, or is it just a bunch of glvertex calls?
The model is created in a loop using
glVertex. Here is the code:
glRotatef(xRotation, 1.0f, 0.0f, 0.0f);
glRotatef(yRotation, 0.0f, 1.0f, 0.0f);
DisplayModel.DisplayWireModel is just
a member function which loops through an
array using glVertex to build the model.