3D for mortals

Why i can't export to OBJ my mesh created uses ribbons?

Recommended Posts

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

ribbons_orange.png

meshlab.png

while i try export only ribbons , in import time i see error "no vertex field found"

and file include only elements heading

 

error.png

exported_wheel(4).obj

Share this post


Link to post
Share on other sites
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.

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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. :wacko: 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

 

grip.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.