2011-04-05

WebGL - TED DXML importer again

The test file: (Run locally)
http://www.gocaco.com/webgl/test1/Archive.zip

The exporter for blender (Export your own model to test)
http://www.gocaco.com/webgl/igtl_export_ted.py

Instructions:
  • Make a new folder somewhere.
  • Unzip Archive.zip into it. There will be a .html and a.js file.
  • Copy the igtl_export_tex.py into your Blender/scripts directory. (check infopanel for location)
  • Open Blender (2.49b?) and open a model.
  • In blender, File->Export->IGTL TED (.dxml)
  • Change your options, do NOT use JSON mode.
  • Copy your exported file to the new folder.
  • Run the index.html in your browser (doubleclick it)
  • Type in the name of your file in the bottom and click load.
  • Now you should be able to use left drag, right drag and left+right drag to view around.

Now I have added in scene loading so it can load in lists of objects, all of which can move/translate/scale.

Also multi-texture is working, but no shaders are coded yet that use it. That'll be after animations, since animations are done in the shader. This is why the TED exporter is valuable, it automatically splits up your mesh into groups by material, seams, and matrix palette seams.

Here's a random scene I made. Don't make any comments about old school games, yes I know what "Dungeons of Drax" is. If the shaders were working it would look better.


Animations next...
-Z

No comments: