Jump to content
  • Advertisement
Sign in to follow this  
AlanWu

Rotation Texture and Batch Drawing(Texture Atlas)

This topic is 2155 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 have many different texture in a draw call so i use texture atlas

but if i want some of those textures have different rotation,what could i do?

Help! Thanks!

Share this post


Link to post
Share on other sites
Advertisement

This is a really bizarre problem.  Short of just rotating the quad like Irreversible said, maybe you can just apply a rotation matrix to your quad's texture coordinates?

Share this post


Link to post
Share on other sites

I'd opt for texture matrix manipulation myself. Preventing the surrounding textures in the atlas from intruding on the rastered poly is something else tho.

Share this post


Link to post
Share on other sites

Any object that is texture mapped, can be rotated freely, without a slightest change in texture coordinates. That's how it works. Your only ever need to rotate a texture itself is when you want to somewhat animate it on all objects at the same time, without having to change the mapping.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!