How do I Tile a certain area of a texture?
Hi!
Is it possible to tile a portion of a texture in OpenGL?
What I need is that I have a certain area of a texture that I need to tile.
The texture contains other small textures (subtextures or what you call it). But I only need one of these small textures to be tiled.
So is it possible to tile a certain area of a texture?
ex. if the area [0,0] -> [0.3443, 0.775]?
Thanks in advance!!
Best Regards
Lars Ramsdal
Best RegardsLars Ramsdal
Thanks!
Well... tesselate or breaking up the texture will unfortunaly result in swapping yet another texture when using it. And to optimize the performance it would have been great if I just could tile a certain area of a texture instead...
But thanks anyway! I still hope that it somehow can be possible... :-)
Well... tesselate or breaking up the texture will unfortunaly result in swapping yet another texture when using it. And to optimize the performance it would have been great if I just could tile a certain area of a texture instead...
But thanks anyway! I still hope that it somehow can be possible... :-)
Best RegardsLars Ramsdal
March 15, 2001 05:37 AM
Yes, you can do it and it is not hard. One example drawing fonts from a texture http://reality.sgi.com/opengl/tips/TexFont/TexFont.html
I have looked at your site... But I''m sorry to say that isn''t what i need.
You show how to only use a certain area of a texture instead of it all (like drawing fonts) - But that''s easy enough!
What I need is to tile (wrapping) that certain area onto a big surface. Thats my big problem :-)
Best Regards
Lars Ramsdal
You show how to only use a certain area of a texture instead of it all (like drawing fonts) - But that''s easy enough!
What I need is to tile (wrapping) that certain area onto a big surface. Thats my big problem :-)
Best Regards
Lars Ramsdal
Best RegardsLars Ramsdal
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement