Jump to content

How to export abstract mesh?


Recommended Posts

Hi everyone.

I have an abstract mesh which i imported as a .babylon file generated from blender. After some changes i want to serialize the changed mesh as .obj file but OBJExport function is only work for BABYLON.Mesh.

So is there any way to export Abstract meshes or any idea how can i export my new Abstract Mesh?


Link to comment
Share on other sites

4 hours ago, BitOfGold said:


I wrote the OBJExport function.
AbstractMesh object has every property that is needed in the export, so it should work with an AbstractMesh.
(Does it work?)


In the babylon.objSerializer.ts, type of the parameter mesh is Mesh

public static OBJ(mesh: Mesh, materials?: boolean, matlibname?: string)

I change the parameter type so i can use AbstractMesh as parameter. And OBJExport work well.

thank you for your answer! 

Link to comment
Share on other sites

First, are you sure you have an AbstractMesh from a Blender exporter generated .babylon file?  The importer only constructs Meshes & InstancedMeshes.  If you are exporting a Blender Empty, it is exported as a Mesh with no geometry.  Perhaps there is a problem serializing Meshes with no geo.

Thought I would correct the discussion.

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.

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.


  • Recently Browsing   0 members

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