Previous Thread  Next Thread

chat icon Blender to WebGL (and sorry for double post)

Impelluso

Posted: Thu May 10, 2012 2:35 pm
Joined: 10 May 2012
Posts: 2
(I posted this in another place, but now think this is the place... I am sorry...)

I am new to this.

All I want to do is convert a blender scene and view it on a web page

I have been teaching myself blender... (and I can make a test scene)

And I have taught myself WebGL coding... (and have made some simple 3D interactive web pages (buttons, mouse interaction, etc)

Now I need to push the limit to really see if this is what I wish to use for the task I must undertake.

I installed python (as it appears I should).

And at this point I am totally lost.

I do not know what to install and where to install and how to activate it....

... in order to export my blender scene to JSON...

.... in order for my webGL code to initiate a javascript call to open a JSON file (for taht is the format I think I need).

Could someone direct me please?
Reply with quote
Reply with quote


ldo

Posted: Fri May 11, 2012 8:59 am
Joined: 07 Nov 2010
Posts: 544
First you need to learn Python and JavaScript. Come back when you are ready to progress.
Reply with quote


stiv

Posted: Fri May 11, 2012 2:57 pm
Joined: 05 Aug 2003
Posts: 3493
If you are using new Blender (2.63), you do not need to install Python to use Blender. You may need it for the various libraries like JSON. In that case, you want Python 3.2.

Basically, you are writing an exporter:
Read the data using Blender's Python API (docs are on the Blender Wiki)
Write the data out in your preferred format.

Blender comes with a number of exporters you can use as a starting point. OBJ is fairly simple. There are also some template examples in the Text Editor.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group