ozRocker Posted April 1, 2016 Share Posted April 1, 2016 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) http://www.punkoffice.com/sandy/ This is the .OBJ loader (seams) http://www.punkoffice.com/sandy/?format=obj Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 1, 2016 Author Share Posted April 1, 2016 I just realised that the .OBJ is flipped horizontally as well. When I load it in a 3D editing program its the other way, same with the .babylon version Quote Link to comment Share on other sites More sharing options...
spoderman Posted April 1, 2016 Share Posted April 1, 2016 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 Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 1, 2016 Author Share Posted April 1, 2016 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 I'm using the exact same code as well, only difference is the filename I'm providing to the BABYLON.SceneLoader.Load() call Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 1, 2016 Share Posted April 1, 2016 you have last uv problem Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 1, 2016 Author Share Posted April 1, 2016 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 Quote Link to comment Share on other sites More sharing options...
Temechon Posted April 1, 2016 Share Posted April 1, 2016 Did you try to OPTIMIZE_WITH_UV trick ? https://github.com/BabylonJS/Babylon.js/tree/master/loaders/OBJ Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 1, 2016 Share Posted April 1, 2016 Last UV is Your Problem and OPTIMIZE_with_UV your solution @Temechon reply is your answer Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 1, 2016 Author Share Posted April 1, 2016 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 Temechon and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 1, 2016 Share Posted April 1, 2016 i think this parameter need always true but this change need add new vertices and may be it need more time for prepare object . Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 1, 2016 Author Share Posted April 1, 2016 I would normally prefer to use .babylon files 'cos they are half the size, but I wanted to find a way to use just a .OBJ file for people that don't have access to an exporter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.