onurhanaytac Posted November 22, 2016 Share Posted November 22, 2016 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? Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted November 22, 2016 Share Posted November 22, 2016 Hi! 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?) Quote Link to comment Share on other sites More sharing options...
onurhanaytac Posted November 22, 2016 Author Share Posted November 22, 2016 4 hours ago, BitOfGold said: Hi! 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! Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted November 22, 2016 Share Posted November 22, 2016 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. 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.