jdan / isomer

Simple isometric graphics library for HTML5 canvas
http://jdan.github.io/isomer
MIT License
2.88k stars 138 forks source link

Add ability to import 3D models #8

Open jdan opened 10 years ago

jdan commented 10 years ago

It would be very cool to be able to import an existing 3D model, or even a list of coordinates.

rcmaniac25 commented 10 years ago

Look into the *.obj format. It's quite easy to work with and is often in pure ASCII.

ooflorent commented 10 years ago

Maybe this feature should be provided as a plugin (hosted in another repository).

jbovenschen commented 10 years ago

screenshot from 2014-04-29 19 17 58 Got a .obj imported but for the textures we need to create something for texture mapping #6. To get groups in .obj files working we need depth sorting #9. So for now only non grouped *.obj files will work.

jdan commented 10 years ago

Nice work! Is this on your fork? Would love to see if it works with @Mysterix's changes so far.

jbovenschen commented 10 years ago

I pushed it to my fork c8fcbc2a47b33700600ac733ee7c7babbee42b4d , it needs much improvements parsing the groups, and maybe sometime .dea support

rcmaniac25 commented 10 years ago

I'd hold off on *.dea. I've seen whole libraries just to load them, let alone a fairly compact JS library.

jbovenschen commented 10 years ago

I agree with you, if someone wants to use .dea they can convert it to .obj.