plugin-less 3D web viewer

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
fab31
Posts: 0
Joined: Fri Feb 18, 2005 12:16 am

plugin-less 3D web viewer

Post by fab31 »

Quickly coded, rotations need improvement (moving camera along a circle should be the best for "up down" movement).

Here is an exemple of the result:
http://devaux.fabien.free.fr/turnview/
and the code:
http://fab.gnux.info/progs/blenderjs.py

Enjoy.

PS: the comments indicate "latice" but you can use an empty as well.

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip »

There is a script on elysiun, that does much the same except allows arbitrary rotation,

http://www.elysiun.com/forum/viewtopic. ... 3&start=45

LetterRip

jody
Posts: 0
Joined: Tue Jan 21, 2003 5:33 pm

Post by jody »

Please when You grab someone code check the licence, javascript code You used is from blender3d.it and is under CretiveCommon licence.

Paolo

fab31
Posts: 0
Joined: Fri Feb 18, 2005 12:16 am

from scratch

Post by fab31 »

1) I wrote it from scratch. I read the code you mention first and kept some names identical but If you look deeper you can see I don't do it the same.
The only function I purely grabed is the one to prevent flickering when loading HQ picture (2 line function). So some *lines* are identical, should I need to rewrite them with different names (stupid IMHO) ? I can mention the blender3d.it in the code of course, this code is a "first try".

2) The elysiun code don't do the same, it loads hires pictures at startup, it's rather slow and not efficient. This script prevent it (as the blender3d.it code which I took my inspiration from).

thoro
Posts: 15
Joined: Thu Oct 17, 2002 10:20 am
Location: Berlin, Germany
Contact:

Re: from scratch

Post by thoro »

fab31 wrote:The elysiun code don't do the same, it loads hires pictures at startup, it's rather slow and not efficient. This script prevent it (as the blender3d.it code which I took my inspiration from).
Exactly - My viewer (3DNP) is targeted at displaying 3D in hires quality.

I think it's a matter or taste, I personally admire the way Paolo and you are using lowres-images to give a fast visual feedback, but I decided to go a different way and focus on hires presentation and user friendly mouse control.

Cheers

Thorsten

oyster
Posts: 0
Joined: Sat Mar 29, 2003 4:41 pm
Contact:

Post by oyster »

hi, fab31, which licence do your script use?

fab31
Posts: 0
Joined: Fri Feb 18, 2005 12:16 am

Post by fab31 »

I agree with thoro, it's just a matter of priorities, one is more eyefriendly and the other more bandwidth friendly... In fact I like the way you did (with a sphere), first I wanted to do this but later I found something more simple (but less convenient).

The licence, hmm... just say it's BSD licenced, do whatever you want with it but just keep the header text and/or site your source if you reuse it.

Post Reply