• Advertisement

Archived

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

Multi Texturing in one texture

This topic is 5559 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

I haven''t been albe to locate any tutorials on this topic, and it is able to be done in DirectX so I was wondering. How does one use one texture to store multiple images and texture only those images in the texture to quads in OpenGL. In Dx8 it''s possible through the IDirect3DXSprite8 object as well as other means, but in OpenGL it seems to texture a quad with the whole texture image no matter what coords in give into the texture. "Life is a double edged sword, we always hope to strike though adversity with the shining side..." jkettles16 of Venosoft

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by jkettles16
...but in OpenGL it seems to texture a quad with the whole texture image no matter what coords in give into the texture.

Nope. The texture coordinates do exactly what they''re meant to, why would they be there if they did nothing?

Remember that the coordinates are different (from DirectX) for each corner of the texture though:

0.0,1.0 ------- 1.0,1.0
| |
| |
| |
| |
| |
| |
| |
0.0,0.0 ------- 1.0,0.0


Share this post


Link to post
Share on other sites

  • Advertisement