Jump to content

[1.8] OBJ uv mapping


MCRaichu

Recommended Posts

Hi,

I created a model using blender and it works fine (model is in the game), but the texture mapping is off. Are there any restrictions or other things i have to make sure before exporting?

k9ta9MD.png

 

 

Regards,

McRaichu

It doesn't work, I don't know why.

It works, I don't know why.

Link to comment
Share on other sites

The OBJ loader doesn't like negative UV coordinates, but it yells at you when that happens.  (Or at least it did not long ago.  Things change.)  Anything in the logs?

 

You can also look at the configuration in Blender for texture coordinates.  Blender's militant unusability is too irritating for me, so I can't help more on the specifics.  If I recall correctly, the loader expects values between 0 and 1.0.

Link to comment
Share on other sites

thanks for the reply, i don't have any negative uv coordinates and they are in the right range. And nothing in the logs. Does the loader require triangles or quads? the forge test on github has quads but i think it would crash before loading if it wasn't possible to use triangles.

It doesn't work, I don't know why.

It works, I don't know why.

Link to comment
Share on other sites

It may be that your texture is mirrored. I had this issue with my obj models. My UVs were being mirrored both vertically and horizontally. To fix this, I had to add a line to my json file.

 

In the "defaults" section of the json add      "custom": { "flip-v": true }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.