This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > February 2005 > start animation in vrml with javascript EAI





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author start animation in vrml with javascript EAI
Fenrir

2005-02-17, 4:32 am

Hi
I've a vrml document which is inckude in a html.
http://perso.wanadoo.fr/promethee60/3D/page4.html
http://perso.wanadoo.fr/promethee60/3D/citytmplate2.wrl

The bs contact vrml, plugin seems to have common EAI with blaxxun plugin.
When I use bs contact activex control in VBA, the object explorer


I want to start animation of screw when i click an anchor or a button in the
html document

There is someone to know how to do ?

------------------------------------------------------------------------
Another trouble where i can find documentation on EAI and javascript

I use this function to modify color screw

function Nono() {
//document.CC3D.AboutBox();
sendEvent('default','set_diffuseColor','0.5 0.4 0.2')
}

which is refer to

function sendEvent(node, field, value) {
document.CC3D.setNodeEventIn(node, field, value)
}

I konw that node refer to( see vrml ine below) and the color is rgb coded
(float between 0 and 1)
But where i can find that field must be set_diffuseColor, How can i know
field available for box, cube, indexedfaceset an do on ??

material DEF default Material {.....







xren

2005-02-20, 5:01 pm

quote:
Originally posted by Fenrir
Hi
I've a vrml document which is inckude in a html.
http://perso.wanadoo.fr/promethee60/3D/page4.html
http://perso.wanadoo.fr/promethee60/3D/citytmplate2.wrl

The bs contact vrml, plugin seems to have common EAI with blaxxun plugin.
When I use bs contact activex control in VBA, the object explorer


I want to start animation of screw when i click an anchor or a button in the
html document

There is someone to know how to do ?

------------------------------------------------------------------------
Another trouble where i can find documentation on EAI and javascript

I use this function to modify color screw

function Nono() {
//document.CC3D.AboutBox();
sendEvent('default','set_diffuseColor','0.5 0.4 0.2')
}

which is refer to

function sendEvent(node, field, value) {
document.CC3D.setNodeEventIn(node, field, value)
}

I konw that node refer to( see vrml ine below) and the color is rgb coded
(float between 0 and 1)
But where i can find that field must be set_diffuseColor, How can i know
field available for box, cube, indexedfaceset an do on ??

material DEF default Material {.....



Hi Fenrir

My url http://www.3dwebpresentation.com has animated Ceiling Fan. No browser plugin is required for view VRML content. If it is what you like to know to trigger animation, please drop me an e-mail.

X Ren
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews