Advertisement

How do I Tile a certain area of a texture?

Started by March 15, 2001 01:16 AM
5 comments, last by Zenty 23 years, 8 months ago
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
I don''t think you can...just tesselate or break up the texture.
Advertisement
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... :-)
Best RegardsLars Ramsdal
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
Best RegardsLars Ramsdal
Could you find a solution?
Advertisement
Nope! Not yet.... But i''m still hoping :-)

Best Regards
Lars Ramsdal
Best RegardsLars Ramsdal

This topic is closed to new replies.

Advertisement