apply a texture to a moving ball....
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.
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.
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement