Exporting WL.Mesh as OBJ file
When generating meshes at runtime, it can be useful to use other applications to inspect the result. This helps especially when the generated mesh doesn’t render at all.
Wavefront OBJ is a very simple text based format that can be written out from your Wonderland Engine JavaScript component.
Code snippet
The following code snippet receives a WL.Mesh, writes an OBJ file for positions and indices, to finally auto-download the file programatically.
|
|