Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Search this Thread
Old 04-16-2013, 01:26 PM   #1
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,253
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Cool 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.'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

Thanks for a reply Gang

Old 04-18-2013, 10:51 AM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,253
Blog Entries: 23

Original Poster
Rep: Reputation: 279Reputation: 279Reputation: 279
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


json, python, webgl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read json files using python danoc93 Programming 1 08-19-2012 02:15 AM
[SOLVED] JSON issues Tyler_H72 Programming 2 06-01-2012 06:49 AM
[SOLVED] echo javascript json array secretlydead Programming 2 02-11-2012 06:20 AM
json help sajith Programming 1 02-27-2008 06:38 AM
php-json fedora 5 hammer65 Fedora 0 07-15-2006 02:41 PM

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration