• Advertisement
Sign in to follow this  

Texture facing wrong way

This topic is 1408 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I am trying to load a model from my custom data format but the face texture is the wrong way around (see image). As you can see all the other textures are the correct orientation but the face shows the black canvas that should be at the back of the head rather than the face. Does anyone have any idea why this could be happening? Thanks in advance for any replies.

 

EDIT: The model is exported from Blender 3D. I negated the texture V coordinate and changed the vertex input order from x, y, z to x, z, y. I am using D3D11_CULL_FRONT with FrontCounterClockwise set to false.

 

CW1sY8m.png

Edited by gchris6810

Share this post


Link to post
Share on other sites
Advertisement

Can't tell from the picture: is the texture backward, or the mesh of the head? That is, is the head a separate mesh?

Share this post


Link to post
Share on other sites

I negated the texture V coordinate

That is probably your problem. It should be (1 - V).
If that is what you meant and the other textures really are all correct, the head mesh is likely backwards.
Show a screenshot with his nose covered in hair to prove otherwise.


L. Spiro Edited by L. Spiro

Share this post


Link to post
Share on other sites

Yes the head is a separate mesh. It appears that the geometry is correctly oriented (I know because of the wire frame view) but the texture is mapped so the face is on the back of the head and the canvas is over the face geometry. I tried changing the V value from -V to (1 - V) as L. Spiro suggested but there was no difference. Any further suggestions based on this information?

Edited by gchris6810

Share this post


Link to post
Share on other sites
Did you apply texture-coordinate transforms in the model editor?
Did you load them and use them in your tool/viewer/happy place?


L. Spiro

Share this post


Link to post
Share on other sites

I got the model online. I don't know what the creator could have done to alter the UV coordinates. I didn't apply any changes to the coordinates inside the blender file exporter.

Share this post


Link to post
Share on other sites

I am surprised this problem only arises from the face mesh. I would start my search there and work my way up.

How is your pipeline? Are you exporting to... OBJ? Collada? I had a similar problem years ago, the filter was trying to planar-map textures but it did so in the wrong coordinate space so the texture was screwed.

Share this post


Link to post
Share on other sites

The source of the issue is the particular model I was using as I have tried lots of other models since then which have worked perfectly.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement