Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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.

  • 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.

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 }

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.