Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Texture Coordinates

Started by GreenToad Nov 25, 2004 at 1:51 AM 1 replies 1k views
Original Post
GreenToad
GreenToad
I'm writing an .x file parser for OpenGL, and I've encountered a problem when reading the texture coordinates. Somewhere I recall reading that DirectX and OpenGL set up their texture coordinates differently. I know OpenGL's texture coordinates are set up like this:
0,1-----1,1
 |       |
 |       |
0,0-----1,0
I'm wondering how DirectX's coordinates are set up. I've searched google and gamedev, but I can't find anything. Any help is much appreciated.
Metron
Metron
DirectX is set up as this :

0,0----------1,0|              ||              ||              |0,1----------1,1


Best regards,
Metron
----------------------------------------http://www.sidema.be----------------------------------------
GreenToad
GreenToad
Thanks! Just what I needed to know.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.