This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > November 2005 > trigger viewpoint when loading a scene
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 |
trigger viewpoint when loading a scene
|
|
|
| Hi,
I used PHP to open a VRML file and add a new viewpoint, I want call the
viewpoint when I refresh the VRML file. So my problem is how can i trigger a
specific viewpoint when the scene is loaded. This is urgent, please help me.
Thanks a lot in advance.
Regards,
Fang
| |
| fabricator 2005-11-11, 7:19 pm |
| Well there are two ways.
loading a world URL in the form of:
scene.wrl#Viewpoint2
is one way.
Another way is to put a Script node in which binds the new viewpoint
when the world is loaded.
#VRML V2.0 utf8
DEF Viewpoint2 Viewpoint {}
DEF Scr Script {
eventOut SFBool bind
mustEvaluate FALSE
url "javascript:
function initialize () {
bind=TRUE;
}
"
}
ROUTE Scr.bind TO Viewpoint2.set_bind
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|