20 July 2021 at 11 h 08 min #20042
I have an issue regarding the OBJ export.
I am deforming a regular grid topology (filled with a triangular FEM force field) which I can deform in several locations simultaneously.
I’d like to export this mesh to reimport it using Unity.
That’s what I’m currently doing using an OBJExporter component with the line
<OBJExporter name="export_OBJ" filename="@../export_surf.filename" exportEveryNumberOfSteps="10" exportAtBegin="false" />
in my .scn file.
However, when I export the mesh the vertex normals are not properly exported : wrong values are given inside the .obj file. I’m going to comment with a post with pictures proving that, thanks to import using Blender displaying the normals.
I hope that any of you has a solution to export the normals properly.
Thank you in advance for your answer.
Best wishes to everyone and enjoy your summer 🙂22 July 2021 at 16 h 17 min #20047
So, to complete, here is the SOFA mesh with a top and side views, displaying the vertex normals in green :
And here are the face normals, which are well rendered by Blender (and are correctly estimated) :
The normals data in the .obj file (vn) are effectively wrong and correspond to what is displayed in Blender. So the issue comes from the OBJExporter component and not from the mesh import on Blender (or Unity).
Thank you in advance for your help 🙂23 July 2021 at 11 h 26 min #20071
Hello, I don’t know why but the images cannot be displayed, even though I’ve used the proper tool and copied the links in my previous post…
So basically the normals displayed in SOFA are properly perpendicular to my planar surface, but they are not anymore after I’ve exported the mesh from SOFA and re-imported it either on Unity or on Blender.
However I’m getting on holidays, so I might be slower to answer too.
Thank you in advance for your help 🙂23 July 2021 at 12 h 42 min #20075jnbrunetModerator
23 July 2021 at 14 h 39 min #20076
- MIMESIS team, INRIA
- You must be logged in to reply to this topic.