This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > February 2004 > VRML + flash inegration
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 |
VRML + flash inegration
|
|
| William Clive 2004-02-13, 7:31 am |
| Hi,
I have been looking at this site, and it does almost exactly what I want to
do - embed a vrml viewing window in a flash interface.
An example of this is here: http://www.gertstein.org/hal/vrml/vrmlfixor/
I would be really grateful if anyone could let me know how this is done, or
a tutorial would be perfect :)
Cheers,
Will
| |
|
| "William Clive" <williamclive@hotmail.com> wrote in
news:Ik2Xb.39$A65.32@newsfep1-gui.server.ntli.net:
> Hi,
>
> I have been looking at this site, and it does almost exactly what I
> want to do - embed a vrml viewing window in a flash interface.
>
Hello,
I would like to be able to do that, but I'm afraid it's impossible.
On the page you've talked about, there is 3 elements : a Cortona view, a
Flash animation, and a Flash animation used as texture in the VRML scene.
So I don't think that there is a "vrml viewing window in a flash
interface".
Some informations now :
- how to use a flash animation as texture, and about communication between
this animation and his parent, with Cortona plug-in :
http://www.parallelgraphics.com/dev...xtensions/flash
2
- here is some notes I've written indicating some ways to access to the
VRML scene from JavaScript, it's in bulk :
---------------------------------------------------------------------------
-------
vrmlClient.Engine.Nodes("your_script_node").Fields("your_eventIn_field_name
") = someValue;
VrmlTag.RendererName
value =
VrmlTag.Engine.Nodes("myOrientationInterpolator").Fields("keyValue").Y(0);
Vrmltag.Engine.RootNodes.Add(new MFNode('...'));
newrootnode = player.Engine.CreateNodeFromString("...");
VrmlTag.Engine.RootNodes.Add(newrootnode);
<script for="VrmlTag" event="OnSceneLoaded(Success)" language="JavaScript">
<script for="VrmlTag" event="OnSceneUnLoaded()" language="JavaScript">
VrmlTag.renderer.name
.isReady
.path
.version
VrmlTag.Engine.RootNodes.Add(
VrmlTag.Engine.CreateVrmlFromString("Transform {translation 0 10 5 children
[Shape {geometry Box {}}]}") );
---------------------------------------------------------------------------
-------
I hope I've been useful to you,
Best regards,
O.L.
| |
| William Clive 2004-02-14, 11:29 am |
| Thanks for the reply OL, but I am still a little confused. I get that there
are the 2 swf files - one within the VRML being used as a texture (which
isn't really an issue here) and one controlling what is displayed in the
VRML window.
There must be communication between the flash and the VRML because the
display is updating dynamically when the flash is changed. Am I just being
dumb? :)
Cheers,
Will
"O.L." <conquest_NOSPAM_@firstream.net> wrote in message
news:Xns948F9D8391822OL7364@212.27.42.66...
> "William Clive" <williamclive@hotmail.com> wrote in
> news:Ik2Xb.39$A65.32@newsfep1-gui.server.ntli.net:
>
> Hello,
> I would like to be able to do that, but I'm afraid it's impossible.
>
> On the page you've talked about, there is 3 elements : a Cortona view, a
> Flash animation, and a Flash animation used as texture in the VRML scene.
> So I don't think that there is a "vrml viewing window in a flash
> interface".
>
> Some informations now :
>
> - how to use a flash animation as texture, and about communication between
> this animation and his parent, with Cortona plug-in :
>
http://www.parallelgraphics.com/dev...xtensions/flash
> 2
>
> - here is some notes I've written indicating some ways to access to the
> VRML scene from JavaScript, it's in bulk :
> --------------------------------------------------------------------------
-
> -------
>
vrmlClient.Engine.Nodes("your_script_node").Fields("your_eventIn_field_name
> ") = someValue;
> VrmlTag.RendererName
> value =
> VrmlTag.Engine.Nodes("myOrientationInterpolator").Fields("keyValue").Y(0);
> Vrmltag.Engine.RootNodes.Add(new MFNode('...'));
> newrootnode = player.Engine.CreateNodeFromString("...");
> VrmlTag.Engine.RootNodes.Add(newrootnode);
> <script for="VrmlTag" event="OnSceneLoaded(Success)"
language="JavaScript">
> <script for="VrmlTag" event="OnSceneUnLoaded()" language="JavaScript">
> VrmlTag.renderer.name
> .isReady
> .path
> .version
> VrmlTag.Engine.RootNodes.Add(
> VrmlTag.Engine.CreateVrmlFromString("Transform {translation 0 10 5
children
> [Shape {geometry Box {}}]}") );
> --------------------------------------------------------------------------
-
> -------
>
> I hope I've been useful to you,
> Best regards,
> O.L.
| |
|
| "William Clive" <williamclive@hotmail.com> wrote in
news:b8rXb.160$nL4.41@newsfep1-gui.server.ntli.net:
> Thanks for the reply OL, but I am still a little confused. I get that
> there are the 2 swf files - one within the VRML being used as a
> texture (which isn't really an issue here) and one controlling what is
> displayed in the VRML window.
>
> There must be communication between the flash and the VRML because the
> display is updating dynamically when the flash is changed. Am I just
> being dumb? :)
>
> Cheers,
>
> Will
>
I think, but I discover like you and I never tested myself, that the Flash
"master" animation use the ActionScript command GetUrl() to execute a
JavaScript command in his parent web page. And this JS command call some
methods of the plugin object. I think this page works like that :
# Flash calls :
GetURL("java script:void(eval(\"VrmlTag.Engine.Nodes('MyTransformNode').Fiel
ds('rotation') = [there I don't know !]\"))");
# or calls :
GetURL("java script:void(eval(\"VrmlTag.Engine.Nodes('MyScriptNode').Fields(
'MyEventIn') = "+MyRotationInfos+"\"))");
# where it's the Script which receive datas in the form you want, and
# occuppe of change MyTransform.rotation
# and VrmlTag is the plugin object, defined like that :
<embed src='MyScene.wrl' id=VrmlTag>
# note that what I said works only with Cortona, it's possible with some
others VRML plugins, but with other ways/objects, I think.
I hope I've been more clearly, and I hope my bad english is understandable
;-)
O.L.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|