Rotation Texture and Batch Drawing(Texture Atlas)

Started by
3 comments, last by Mercile55 11 years, 3 months ago

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!

Advertisement

Rotate the quad?

Or do you absolutely need to rotate the texture itself?

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?

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.

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.

This topic is closed to new replies.

Advertisement