batch draw!

Started by
19 comments, last by AlanWu 11 years, 4 months ago

[quote name='NightCreature83' timestamp='1355303178' post='5009755']
Read this article it's been a long time since I implemented this and don't remember all of the details anymore. The DX sample is adjusting the vertex coordinates instead of thet texture coordinates, it's better to fix the texture coordinates so they are in the range [0.5/width, 1 - 0.5 / width] for u and [0.5 / height, 1 - 0.5 / height] for v.


ok..thank you
I am sorry,but i can't understand it at all,my English is not good enough, i can't read this article.But i still don't understand and it said"Most applications, however, use texture coordinates ranging from zero to one,inclusive, nonetheless.".
The things which i don't understand is 'models need to use u-coordinates in the range [.5/width, 1-.5/width] and v-coordinates in the range [.5/height, 1-.5/height].'why do we need to do that?
[/quote]
sorry,I don't understand, why can't I use 0 to 1for u, v coordinate?Could you give me a example please? Thank you!

This topic is closed to new replies.

Advertisement