Jump to content

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


 Share

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

Link to comment
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.

 

Link to comment
Share on other sites

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

Link to comment
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.

Link to comment
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

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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