Jump to content

OBJ loader shows UV seams


Recommended Posts

I'm trying out the .OBJ loader and comparing it with the standard .babylon loader.  I noticed that the .OBJ will show the UV seams.  Does anyone know how to prevent this happening?

I also get a bunch of console errors with .OBJ:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Unable to compile effect with current defines. Trying next fallback.
Vertex shader:default
Fragment shader:default

This is the .babylon loader (no seams)


This is the .OBJ loader (seams)



Link to comment
Share on other sites

20 minutes ago, spoderman said:

I think your model isnt actualy flipped. Its pointing in another direction. Just google for left/right handet coordinatesystem. Your 3D application seams to use a diffent system then Babylon ;)

Its flipped.  There's no possible way I can alter its direction to look the same.  Its not the 3D application, its the .OBJ loader.  Compare the .OBJ render and the .babylon render and you'll see for yourself.  i'll give you a million dollars if you can rotate them to match :P I'm using the exact same code as well, only difference is the filename I'm providing to the BABYLON.SceneLoader.Load() call

Link to comment
Share on other sites

4 minutes ago, NasimiAsl said:

you have last uv problem

The .babylon file is actually derived from the .OBJ file using the Blender exporter.  Also they are both using the same diffuse and normal map on the server.  The .OBJ looks fine in other applications (Zbrush, Blender, Photoscan).  But even without textures, the mesh itself is flipped

Link to comment
Share on other sites

29 minutes ago, Temechon said:

Did you try to OPTIMIZE_WITH_UV trick ? https://github.com/BabylonJS/Babylon.js/tree/master/loaders/OBJ

ahh, I've been on that page but I didn't even bother to scroll down.  All my answers are there.

Don't you hate it when someone comes to the forum yelling "Why isn't this working???" when they didn't even bother to check out the doco?  lol Whoops! Sorry guys

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...