Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualTheComet

Posted 04 February 2014 - 05:28 PM

 

 


texture coordinates are defined in pixels (they are not normalized (between 0.0 and 1.0f), as people who are used to graphics programming would expect).

http://www.sfml-dev.org/documentation/2.1/classsf_1_1Texture.php#aa6fd3bbe3c334b3c4428edfb2765a82e

 

 

what about veretex, are there normalized texture coords? Think no , becouse I just copied that sentence directly from them documentation. Or its only in new version?

 

What do you mean?

 

I've constructed a manual mesh in SFML before and the UV coordinates were always normalized. It's how graphics cards work.

 

And besides, you can just convert between them by dividing/multiplying by the width/height of the image.


#1TheComet

Posted 04 February 2014 - 05:27 PM

 

 


texture coordinates are defined in pixels (they are not normalized (between 0.0 and 1.0f), as people who are used to graphics programming would expect).

http://www.sfml-dev.org/documentation/2.1/classsf_1_1Texture.php#aa6fd3bbe3c334b3c4428edfb2765a82e

 

 

what about veretex, are there normalized texture coords? Think no , becouse I just copied that sentence directly from them documentation. Or its only in new version?

 

What do you mean?

 

I've constructed a manual mesh in SFML before and the UV coordinates were always normalized. It's how graphics cards work.


PARTNERS