Forum

Load mesh from ASCII file at runtime

22 June 2017 13:23
Hi,

I'm investigating migrating from Three.js to blend4Web for my CAD visualizer. I have a question, is it possible to load at runtime a mesh stored in a ASCII file (this file will containts the position of the verticies and the index for the faces, which should be enough, as least for blender, to generate a mesh).

If it is possible, where can i get an example/snapshot of such thing?

Thanks a lot,
Xziayro
22 June 2017 15:07
Hi,

You can probably load and parse such a file with JavaScript and then supply indices and vertices for a mesh using Blend4Web API.
Please take a look at the following example in the code snippets.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.