July 8, 2011
Three.js Model Loading

In my quest of playing around in Three.js and webgl I have been exploring the possibilities of loading models.

I think I came up with a pretty nice and simplified version of doing it to streamline the process for the average joe to be able to pick up and run with this code.

The nice thing about the function is all you have to pass is the location of the exported js file of the model along with the material that you want it to have.

Just remember tho since it is json you have to have the file on the same server as the code..

Here is an example of the end product

  1. samslab posted this