LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 04-16-2013, 02:26 PM   #1
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,227
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.
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

Thanks for a reply Gang

Thor
 
Old 04-18-2013, 11:51 AM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,227
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
 
  


Reply

Tags
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 03:15 AM
[SOLVED] JSON issues Tyler_H72 Programming 2 06-01-2012 07:49 AM
[SOLVED] echo javascript json array secretlydead Programming 2 02-11-2012 07:20 AM
json help sajith Programming 1 02-27-2008 07:38 AM
php-json fedora 5 hammer65 Fedora 0 07-15-2006 03:41 PM


All times are GMT -5. The time now is 06:43 PM.

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