simple car drawing

Started by
54 comments, last by crossbrigade2000 20 years ago
Would you post all of the c code as well
Thanks
Advertisement
You are LAZY!!!! NeHe has all the code you need to open a window. My code just draws it if everything else is set up. Try doing something on your own.
Hi xiros
I have code to open up a window but I cant integrate your code.
What sort of a car is it you have
If I post the code will you help me out
Please!!!
All you have to do is paste my code into the main drawing loop. Or a smarter thing to do would be to make a seperate function with my code in it and call it in your main drawing loop. If you can''t get it working then you can post a link to your code.

The car is just something I made up. It looks a bit odd, but I needed a quick model to use in my game so I made it.
crossbrigade2000,

Don''t rely on everyone to make your game for you. Read some tutorials on how to render stuff instead of asking people to do everything for you.
he''ll keep posting until he gets to a pro racing game :D

Mecha Engineer (Making Real Humanoid Suits)
Mecha Engineer (Making Real Humanoid Suits)
I cant see anything but a red background
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.0, 0.0, 0.0);
glLoadIdentity();
gluLookAt(5.0, 5.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);

//code

glFlush();

}
it''s pretty obvious why too.

look at the vertices for the model.
what sorts of numbers are they?

look at the position your setting your camera to.
what sorts of numbers are they?

| - Project-X - my mega project.. getting warmer - | - adDeath - an ad blocker I made - | - email me - |
uhhh... sorry, but that''s just FUNNY!!!

A tip... you should have a negative z axis, not a positive...
can someone post the correct code
Thanks

This topic is closed to new replies.

Advertisement