renjianfeng Posted March 13, 2018 Share Posted March 13, 2018 I tried to import the obj file, and obj contained a number of posts, but in babylonjs, it seemed that each child's map was replaced with the last one. I looked at the console, and the network window shows these stickers loaded. Here's the demo:http://www.babylonjs-playground.com/#E5KRAX The correct effect should be: blender: threejs: babylonjs:(The wrong) Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 13, 2018 Share Posted March 13, 2018 hi @renjianfeng, the OBJ file you pasted has no group or object definitions (keys 'o' and 'g'), which prevents babylon from knowing which mesh is which. Babylon will use the entire vertex data you provided and will convert it to a single mesh with one material. is it possible for you to export mesh names as well? if you use blender, it is the option to export "Objects as OBJ Objects", or "Groups", both should actually work. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2018 Share Posted March 13, 2018 If you are in Blender, why not directly using the .babylonjs format? It will be far better than obj Quote Link to comment Share on other sites More sharing options...
renjianfeng Posted March 14, 2018 Author Share Posted March 14, 2018 9 hours ago, Deltakosh said: If you are in Blender, why not directly using the .babylonjs format? It will be far better than obj Yes, but all the models currently are in.obj format, and the number is very large. I can only use a method that can be used in batches. Quote Link to comment Share on other sites More sharing options...
renjianfeng Posted March 14, 2018 Author Share Posted March 14, 2018 I believe this is not the responsibility of Babylon, it may be the error of the model file.I'm working on it. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2018 Share Posted March 14, 2018 Keep us posted! 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.