Mapping a texture to a gluCylinder

Started by
2 comments, last by snowysoft 21 years, 1 month ago
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.
Advertisement
run a clipping plane through the part of it you don''t want to apply? Just guessing.
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
"To err is human, to really mess up requires a computer"
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