Archived

This topic is now archived and is closed to further replies.

Zenty

How do I Tile a certain area of a texture?

Recommended Posts

Zenty    122
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
I don''t think you can...just tesselate or break up the texture.

Share this post


Link to post
Share on other sites
Zenty    122
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... :-)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
Zenty    122
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

Share this post


Link to post
Share on other sites