Area :: Header
Smoke 2015 Extension 1
is here!
Extension 1 brings the LUT Editor and Matchbox to the timeline.
Discussion Groups

FBX Plug-ins Import-Export Discussions

New Member
Posts: 2
Registered: ‎11-01-2012

Reading Correct UV's For DirectX

152 Views, 2 Replies
12-23-2012 10:57 AM
Hi Every body
would you please help me with this problem? i'am really stock in this

I'll try to import a fbx file to my engine in order to render with dx11....
so i need a buffer that holds Position,normals,tangents & texCoords..... for each vertex

now i extract every of them correctly accept texcoord :-(

i'am confused why there are (for example) 13 uv's for 8 vertices in a simple cube???

I try to take the first 8UVs and don't care about the rest but i don't get any good result...please help....

also there is picture in attachments

thank you

Please use plain text.
Distinguished Contributor
Posts: 665
Registered: ‎02-19-2008

Re: Reading Correct UV's For DirectX

12-28-2012 08:29 PM in reply to: Pedrosharp
Top to bottom texture coordinates are inverted from FBX to DirectX.

Invert the 'v' of a uv pair like this:

v = 1.0f - v;
Please use plain text.
Distinguished Contributor
Posts: 148
Registered: ‎09-07-2011

Re: Reading Correct UV's For DirectX

01-04-2013 04:12 AM in reply to: Pedrosharp
Hello Pedrosharp,

The first thing I'd like to address is your question about the no. of UV's for a cube. It is not actually 13, but 14 UV's. Their id's range from 0 to 13, so you have to count the UV at id 0 as number 1 (In Maya you can see this by running the following command "select -r ;"). Also, as to why there are 14, this is because of the way a cube's UV's are laid out by default. In whichever 3D package you are working, if you open it's respective UV editor, you will see when the cube is laid out flat it needs to have 14 UV's because of the number of seams used in the unfold.

If you address the no. of UV's you are using, perhaps it will help with your problem.

Please use plain text.