3D for mortals Posted July 6, 2018 Share Posted July 6, 2018 My scene meshes partially created uses ribbons. Orange meshes on picture. All meshes displayed good on screen , but when i try to export scene meshes to OBJ file, then ribbons created meshes not export to result file, without errors. Just nothing, except usual created meshes(black/gray on picture) in result OBJ file , after importing uses freecad/meshlab. And file size is tiny (looks like ribbons just not added to export flow). while i try export only ribbons , in import time i see error "no vertex field found" and file include only elements heading exported_wheel(4).obj Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2018 Share Posted July 6, 2018 Hello, can you try to create a ribbon the same way you do but in the PG and then call the Obj exporter? Or just create an issue on the repo Pinging @kcoley Quote Link to comment Share on other sites More sharing options...
kcoley Posted July 6, 2018 Share Posted July 6, 2018 Hi @3D for mortals ! I’ll look into the ribbon export issue. If you happen to have a sample playground, that would be useful as well. Quote Link to comment Share on other sites More sharing options...
3D for mortals Posted July 6, 2018 Author Share Posted July 6, 2018 2 hours ago, kcoley said: Hi @3D for mortals ! I’ll look into the ribbon export issue. If you happen to have a sample playground, that would be useful as well. this is good example in playground but i don't know how add babylonjs.serializers.js to playground https://www.babylonjs-playground.com/#1QD8LM#5 to make it work just comment/uncomment strings 139,140,141. And message me after you add serializers, that i know how it do too. Quote Link to comment Share on other sites More sharing options...
3D for mortals Posted July 6, 2018 Author Share Posted July 6, 2018 3 hours ago, Deltakosh said: Hello, can you try to create a ribbon the same way you do but in the PG and then call the Obj exporter? Or just create an issue on the repo Pinging @kcoley need assist with addition of babylonjs.serializers.js ... i don't know how include it to playground https://www.babylonjs-playground.com/#1QD8LM#5 Quote Link to comment Share on other sites More sharing options...
kcoley Posted July 6, 2018 Share Posted July 6, 2018 @3D for mortals, thanks for sending over the playground. serializer.js should already be included, so I tweaked your playground to get it to work: http://playground.babylonjs.com/#N6FPZL I just changed this line: var text = BABYLON.OBJExport.OBJ([meshExp]); This definitely demonstrates the issue. I'll look into this to see if I can figure out what's broken. 3D for mortals 1 Quote Link to comment Share on other sites More sharing options...
3D for mortals Posted July 6, 2018 Author Share Posted July 6, 2018 3 hours ago, Deltakosh said: Hello, can you try to create a ribbon the same way you do but in the PG and then call the Obj exporter? Or just create an issue on the repo Pinging @kcoley https://www.babylonjs-playground.com/#2Y4H0L playground with issue , which export ribbon mesh to empty headers without data. Just for case Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2018 Share Posted July 6, 2018 will be fixed with next nightly thanks @kcoley Quote Link to comment Share on other sites More sharing options...
3D for mortals Posted July 6, 2018 Author Share Posted July 6, 2018 18 minutes ago, Deltakosh said: will be fixed with next nightly thanks @kcoley 4 hours ago, kcoley said: @3D for mortals, thanks for sending over the playground. serializer.js should already be included, so I tweaked your playground to get it to work: http://playground.babylonjs.com/#N6FPZL I just changed this line: var text = BABYLON.OBJExport.OBJ([meshExp]); This definitely demonstrates the issue. I'll look into this to see if I can figure out what's broken. looks is my bad. I use playground handmaded function , which create another member. It is work but only for displaying mesh on screen. Now after few hours thinking , i search babylonjs docs and found standard syntax for create ribbons BABYLON.MeshBuilder.CreateRibbon("id_mesh_name", { pathArray: array_of_getPoints_from_BABYLON_bezier}, scene ) and this syntax work done and can be exported to OBJ 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.