Posted December 21, 20159 yr 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? Regards, McRaichu It doesn't work, I don't know why. It works, I don't know why.
December 21, 20159 yr 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.
December 21, 20159 yr Author 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.
December 21, 20159 yr 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 }
December 21, 20159 yr Nuchaz may be on to something. Also, update to latest forge if you haven't already. I recall there were a number of issues related to uv coordinates on OBJ models that got resolved relatively recently.
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.