aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
904 stars 210 forks source link

link OBJ models to HTML5 DOM element? #234

Closed jeffrey-effendy closed 8 years ago

jeffrey-effendy commented 8 years ago

Is it possible to upload .obj files at runtime and link models to HTML5 DOM element?

JMLX42 commented 8 years ago

What do you mean by

link models to HTML5 DOM element?

jeffrey-effendy commented 8 years ago

what i mean is that, let s say, I have HTML5 input tag that browses and upload an OBJ file. For this, is it possible to update the OBJ file on runtime, such that whenever I upload and replace the previous OBJ file, it gets updated?

warrenseine commented 8 years ago

Ok, then yes, but this is not specific to Minko.

When a file is uploaded, you should call a C function from JavaScript that will tell your application to download the new model, add it to the scene, and remove the previous one.

warrenseine commented 8 years ago

Would that work for you?

jeffrey-effendy commented 8 years ago

yup, able to do it, thanks a lot!