Mapping a texture to a gluCylinder
I was wondering if it possible to place a texture on part of a gluCylinder as opposed to covering the entire surface?
Any help would be appreciated.
I think there may be a way to do it using GL_CLAMP instead of GL_REPEAT when loading the texture, i''m not sure tho.
Sorry I cant be of more help.
Lukerd.
Hyperdev
Sorry I cant be of more help.
Lukerd.
"To err is human, to really mess up requires a computer"
Hyperdev
quote:Original post by Lukerd
I think there may be a way to do it using GL_CLAMP instead of GL_REPEAT when loading the texture, i''m not sure tho.
Sorry I cant be of more help.
Lukerd."To err is human, to really mess up requires a computer"
Hyperdev
Good point - supposedly there''s actually a texture matrix just like the projection or modelview, that might be an option. I haven''t started looking into that though.
I was thinking that if you wanted to animate a flowing river, taking a simple example of like a quad strip you could apply the texture to each quad, then "move" it one pixel and kind of cycle between 0 and 1 that way - can that be done with a texture matrix?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement