Model and Texture support 2
Andor Salga | 17 June, 2008 | 16:33
I decided to take on writing the code for loading models and textures in the 1.1 context since Andrew already coded 2.0. While trying to get it to work, I did notice some bugs that I’ll have to add to the bug list, things like the texture not displaying unless the object moves.
I went through a possible work flow of a user creating a model and importing it. I created a torus in Blender and slapped on a texture leaving the default UV coordinates. I exported the vertices, UV’s and faces to a text file. Here is the point where we’ll have to come up with some sort of conversion or export because I was left with a bunch of vertices, UV’s and faces which I had to convert to javascript arrays using my text editor.
Here is the final result, a textured torus. Actually, this is my second attempt. My first try was the Blender monkey, sadly it didn’t work.

At least an importfilter/conversionscript for the obj format shuold be
Michael | 23 June, 2008 | 5:25At least an importfilter/conversionscript for the obj format shuold be easily possible, as obj is a textbased format, wich most Modellers/Converters can write. Maybe the easiest way is to read the file into according arrays and then serialize them out?