Advertisement

apply a texture to a moving ball....

Started by January 04, 2003 11:44 AM
2 comments, last by loire 22 years, 1 month ago
I''m playing a lot whith tutorial 30. I want to aply a texture on every ball..... Se non credi in te stesso, chi ci credera''''
Se non credi in te stesso,chi ci credera''
one of NeHe''s tutorials talks about how to use sphere mapping to generate texture coordinates. look into that and use it. it doesn''t matter if the ball is moving.
Advertisement
if you want the texture to move on the ball, to make it look it''s moving you can perform translations and rotations using glTranslatef and glRotatef after you call:
glMatrixMode(GL_TEXTURE);
..stuff
glMatrixMode(GL_MODELVIEW);
I''m not really sure what you''re asking though.

My Homepage
Freeservers.com sucks. Angelfire.lycos.com is cool.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
THK

Se non credi in te stesso,
chi ci credera''''
Se non credi in te stesso,chi ci credera''

This topic is closed to new replies.

Advertisement