Page 1 of 1

interactive blender animation on a web page

Posted: Mon Jun 11, 2012 2:39 pm
by naninuneno
helloooo, everyone :)
i would ask about how to make an interactive webpage with blender model on it. So, when people open this web page, people can see a blender model and do something with it (for example : zoom in, zoom out, rotate,etc).
or maybe do you have good tutorials for this? i really need it.
i've searched on google, and what i found are not really helpful.
thanks before!

Posted: Mon Jun 11, 2012 4:08 pm
by CoDEmanX
there are flash-based 3d viewers as well as HTML5 ones. Not sure if there are any good, free projects tho.

Googled these 2:

http://alteredqualia.com/canvasmol/

http://www.canvasdemos.com/userdemos/to ... iewer.html

Posted: Tue Jun 12, 2012 1:04 pm
by naninuneno
thanks for the links, CoDEmanX :D
canvasmol is quite interesting! that's what i want..but how? :roll:
btw, i did google and found something, that is Papervision3D. There is a http://adobe.edgeboss.net/download/adob ... ollada.mov about it that will helpful i thought..
but but but but, if the combination between Blender+Papervision3D is finish, how to put it into web page? like this : http://flashsimulations.com/polonez/
i do have no Idea :oops:

Posted: Tue Jun 12, 2012 1:25 pm
by naninuneno
and..another question from me :oops:
on my blender file i made a python script that can be used to modify the model. i mean, there are methods to do this and that with the model (object). So, my question is.... how can i connect these three things? python + exported model from Blender + html site (or papervision3d or anything)?? :roll:
i really need help :cry:

Posted: Tue Jun 12, 2012 3:04 pm
by CoDEmanX
Flash can be embedded using HTML-object and -embed tags, e.g.:

http://www.siteground.com/tutorials/fla ... ash_movies

WebGL / canvas based stuff have their own HTML tags, but if you wanna use any framework, then check the web docu how to embed them (probably a javascript library)

But if i got you right, this isn't what you really want. You rather want full Blender running as web application, don't ya?

Found this:
http://www.blendernation.com/2010/11/02 ... eb-player/
A Blender web player, which is based on Blender player, maybe this is what you looking for, but it might be limited to Blender Game Engine stuff in terms of scripting

Posted: Tue Jun 12, 2012 3:38 pm
by naninuneno
yes, you're right.. i want to 'make' like your last link.
so if i can explain more detail about what i want to do is,
i have a pyhton script. With it, i made buttons that can modify my model. it isn't a game, just a model that can be modified with the buttons.
that's why i'm confused how to 'connect' the model that i import to a web page with my python script which is used to modify the model. :oops: :roll:
it's like this link :

http://www.everydayflash.com/blog/index ... rvision3d/

but if i do with papervision3d like in video tutorial that i posted before, how about my python script? it means, i don't need anyomore? should i put the code from python script into the actionscript (like in video tutorial)? :roll:
there are so many questions on my head :oops:

btw, thank you very very much CoDEmanx for helping me until now :)

Posted: Wed Jun 13, 2012 12:42 pm
by CoDEmanX
Your options imo:

- use a flash or webgl 3d model viewer and port your python code to the respective language (flash -> actionscript which seems to apply to papervision3d as well, webgl -> most likely javascript)

- try the blender web player and see if it supports all blender python api things, if only game engine --> port the script to use game engine features

- There might be Flash "plugins" for python, but not blender python of course...
http://stackoverflow.com/questions/3047 ... and-python