Blender to WebGL (and sorry for double post)

An open space where people who use Blender in an academic environment can share progress and the typical problems and needs of academic environments.

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Thu May 10, 2012 3:20 pm

Blender to WebGL (and sorry for double post)

Post by Impelluso » Thu May 10, 2012 3:35 pm

(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

Posts: 0
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Post by ldo » Fri May 11, 2012 9:59 am

First you need to learn Python and JavaScript. Come back when you are ready to progress.

Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Fri May 11, 2012 3:57 pm

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.

Post Reply