LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Wavefront to JSON question... (http://www.linuxquestions.org/questions/programming-9/wavefront-to-json-question-4175458351/)

Thor_2.0 04-16-2013 01:26 PM

Wavefront to JSON question...
 
...that's been haunting me some time now.
I'm learning WebGL, and love it. The models are a pain in the soft spot, though.
Tried to export from Blender to Three.js format and feed that to WebGL...bad idea.
So...here's the question:

Anyone have some tips for a Python (that i yet have to learn it seems) script that runs in the console (of course) takes a wavefromt OBJ file as input and exports a PURE JSON file of a model...
I'd go for Collada, but the snag is, WebGL seems to take a shine to JSON only...unless I'm wrong...

And, but this is a sub question :) , does anyone model in Blender here? Something about fantasy creatures...the clever reader will possibly understand where I'm going: I'm not very good with Blender (yet) and would like to have a JSON model to play with that's a but more fun to look at than the spinning doughnut :D

Thanks for a reply Gang

Thor

Thor_2.0 04-18-2013 10:51 AM

After some looking around, I can answer the question in part:

- The OBJ model is easy to parse and...
- I'll have to learn Python, no way around it...

Keepin' this thread open for a while, just to add some more usefull stuff in the (near/far/distant/extreme distant) future :)


All times are GMT -5. The time now is 04:17 PM.