Jump to content

  • Log In with Google      Sign In   
  • Create Account


Rotation Texture and Batch Drawing(Texture Atlas)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 AlanWu   Members   -  Reputation: 191

Like
0Likes
Like

Posted 19 January 2013 - 09:47 PM

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!



Sponsor:

#2 irreversible   Crossbones+   -  Reputation: 1246

Like
0Likes
Like

Posted 19 January 2013 - 10:48 PM

Rotate the quad?

 

Or do you absolutely need to rotate the texture itself?


Edited by irreversible, 19 January 2013 - 10:51 PM.


#3 SeraphLance   Members   -  Reputation: 1307

Like
0Likes
Like

Posted 19 January 2013 - 11:46 PM

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?



#4 radioteeth   Prime Members   -  Reputation: 966

Like
0Likes
Like

Posted 20 January 2013 - 01:53 AM

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.



#5 Mercile55   Members   -  Reputation: 136

Like
0Likes
Like

Posted 20 January 2013 - 07:09 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS