Jump to content
  • Advertisement

Archived

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

Zenty

How do I Tile a certain area of a texture?

This topic is 6337 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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
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
Guest Anonymous Poster
Could you find a solution?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!