sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Reply
 
Thread Tools
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
I found this website that did real 3d in javascript - no flash or java applets.

Original javascript
http://www.uselesspickles.com/triangles/demo.html

Example export from Blender, QWEAD - keys allow user rotation
http://members.optusnet.com.au/cjbarton/3d.html

The Script!
http://members.optusnet.com.au/cjbarton/blender2js.py
It writes out the active mesh with colored materials


Again this isnt my code, it just writes its own content inside somebody elses javascript/html
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com

Last edited by ideasman42; 18-Jul-07 at 16:31.
#1   Old 18-Jul-07, 16:10   
Reply With Quote


~ox{'s Avatar
~ox{ ~ox{ is offline
Member
 
Join Date: Nov 2002
Location: Umpqua National Forest,Oregon, USA
Posts: 1,193
Hey! Thanks for the heads_up! Very nice indeed.
............................................
the ~ox{ www.singingfalls.com
#2   Old 18-Jul-07, 16:21   
Reply With Quote
Meta-Androcto's Avatar
Meta-Androcto Meta-Androcto is online now
Member
 
Join Date: Aug 2006
Location: australia
Posts: 2,356
Great work as usual in porting this script.
m.a
#3   Old 18-Jul-07, 16:31   
Reply With Quote
unstable unstable is offline
Member
 
Join Date: Sep 2006
Location: Germany, NRW
Posts: 50
Wow. I think this is a good aproach for using more 3D in Websites (hey, we are all 3D nerds).
But - with your demo i have 100% utilzation. Is this normal or is there just something wrong with my computer?
(Info: have to admit that java3D also have this high utilzation - strange)
............................................
The tooth fairy teaches children that they can sell body parts for money.
- David Richerby
#4   Old 22-Aug-07, 08:36   
Reply With Quote
pildanovak's Avatar
pildanovak pildanovak is offline
Member
 
Join Date: May 2004
Posts: 958
it's nice, but terribly slow on my computer(ubuntu pentium m 2.2ghz), probably cause it's javascript...
#5   Old 22-Aug-07, 09:55   
Reply With Quote
Szlotti Szlotti is offline
Member
 
Join Date: Aug 2007
Posts: 1
Well, I just installed the JS-Script and exported my Model, but anytime if i want to watch at it in my browser, my browser crashes and i've never seen my model yet.


Well If you could help me, here's the URI : http://www.szlotti.at/graphic/gingerbreadman.html


thx & regards
#6   Old 22-Aug-07, 10:59   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
what browser are you using? does this work?
http://members.optusnet.com.au/cjbarton/3d.html

If that works then try export a low poly model for testing.
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#7   Old 22-Aug-07, 11:48   
Reply With Quote
tuttut89 tuttut89 is offline
Member
 
Join Date: May 2006
Posts: 33
This is an awesome script! I don't really mind not being able to see my textures, it's just neat seeing my real time 3d on the web!

Keep up the great work!
#8   Old 22-Aug-07, 12:54   
Reply With Quote
masternave's Avatar
masternave masternave is offline
Member
 
Join Date: Jul 2006
Posts: 288
FTR, it works great on mozilla, not so hot on IE7. Extremely cool tho.
............................................
My last finished Project: Child's Head
#9   Old 22-Aug-07, 13:44   
Reply With Quote
GeeN's Avatar
GeeN GeeN is offline
Member
 
Join Date: May 2006
Location: Budapest, Hungary
Posts: 83
Quote:
Originally Posted by ideasman42 View Post
what browser are you using? does this work?
http://members.optusnet.com.au/cjbarton/3d.html

If that works then try export a low poly model for testing.
For me the faces are falling into triangle pieces here or so it seems:
http://members.optusnet.com.au/cjbarton/3d.html
You can barely see the results.
It is on IE7 at least.
#10   Old 22-Aug-07, 14:32   
Reply With Quote
CubOfJudahsLion's Avatar
CubOfJudahsLion CubOfJudahsLion is offline
Member
 
Join Date: Nov 2005
Location: Costa Rica
Posts: 1,514
reeeel noice!
............................................
"When I see the heavens[...] work of your hands[...]: what is man, that Thou art mindful of him?" - Psalm 8

"The real voyage of discovery is not seeking new lands but in seeing with new eyes" - Proust

Cub's Image Portfolio
#11   Old 22-Aug-07, 15:24   
Reply With Quote
nawabz nawabz is offline
Member
 
Join Date: Apr 2007
Posts: 43
how about Suzanne's mesh
............................................
Nawabz@UK
#12   Old 22-Aug-07, 17:33   
Reply With Quote
endi's Avatar
endi endi is offline
Member
 
Join Date: Jul 2002
Location: HUNGARY
Posts: 2,144
tricky!
#13   Old 22-Aug-07, 19:54   
Reply With Quote
migius's Avatar
migius migius is offline
Member
 
Join Date: Mar 2005
Location: Berlin, Germany
Posts: 520
hi ideasman,
i like your HTML-exporter - i like this idea, because I like to test all possibilities of open systems like Blender.
Java-script seems to be too slow for this job, but it doesn't matter for me.

Python "Short Code Contest": Theme: "Blender meets Java-script"
#14   Old 22-Aug-07, 23:37   
Reply With Quote
uriel's Avatar
uriel uriel is offline
Member
 
Join Date: May 2006
Location: Pondichery TN India
Posts: 72
Hi,
really interested about this, i've tested and, that's real, it's slow, even on a good computer.
specialized in web-design i looking for a solution to show active media on websites.

this project could be the one ! i started to see what we can change to make it faster to read by all browsers...actualy we need texture as well to show good models on the web..

waiting to see...anyway, that a good start !...what about the swf export script ? does it working for the 2.44 ,it should be an alternative ?

bye
............................................
Visit: www.blender-pro.com (fr)
Location: Pondichery | Tamil nadu
See: CGPortfolio
#15   Old 23-Aug-07, 10:00   
Reply With Quote
JMD's Avatar
JMD JMD is offline
Member
 
Join Date: Aug 2006
Location: Oslo, Norway
Posts: 29
from the page where you found the js-code:
Quote:
(..) it's just a proof of concept (..)
The idea is smart, but it doesn't work in practice. I tried first to export a cube; it worked allright (no big problems). Then I tried to export Suzanne... my machine used around 15-20 seconds per frame!! Way too slow.

It's just a proof of concept, but if it could be exported to XML or something and a SWF could have read the data and done the same manipulation (with the triangular shapes), I think it would have worked even better. Anyway, a nice piece of code.

/JMD
#16   Old 23-Aug-07, 10:18   
Reply With Quote
J09's Avatar
J09 J09 is offline
Member
 
Join Date: Jan 2007
Posts: 1,441
Quote:
terribly slow on my computer(ubuntu pentium m 2.2ghz)
were you talking about the example? 'cuz I have ubuntu with 1.6 ghz and it worked ok. not great, but it didn't get stuck or anything.
#17   Old 23-Aug-07, 15:28   
Reply With Quote
motionblur motionblur is offline
Member
 
Join Date: Apr 2007
Posts: 30
Cool thing. Unfortunately very slow on my PC, still very cool.
Makes me wonder if a Flash-Exporter would be possible....
#18   Old 27-Aug-07, 10:20   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
flash exporter would be possible, either by having a script in flash that does the matrix math for a 3d view or by converting the mesh to vector for each frame.

The first way is the only way to get interactive 3d from flash.

Another possibility is to render off enough angles that you can interactivly spin the model and have an image for fach veiw angle, enough that yo7 dont notice the difference between view angle changes....

all 3 are possible and have been done... some good java applets for viewing 3d exist also.
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#19   Old 27-Aug-07, 11:00   
Reply With Quote
Rangel's Avatar
Rangel Rangel is offline
Member
 
Join Date: Sep 2003
Location: Brasilia - DF - Brasil
Posts: 1,061
Way to go, Ideasman! Thank you!
............................................
Alexandre Rangel
Multimedia Designer
http://www.3dzine.org
#20   Old 27-Aug-07, 13:48   
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 17:13.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists