| Olivier 2004-05-18, 7:42 pm |
| Hello,
I'd like to jump to a point, using the scripting extensions of Blaxxun
Contact : the setViewpointByValue function.
But I don't understand how the third parameter works. How to make a
transition, for example ?
I think it's something like 2^0 + 2^2 + 2^3 + etc, but it doesn't works
for me :'(
Tnx for help !
O.L.
########### The doc :
bit 0: 1 animated transistion, 0 not
animated
bit 1: 1 sets absolute viewpoint
(unbind any bound viewpoint)
bit 2: 1 values are a relative move
distance (left/right, up/down, > in/
out, look left/right, look up/down,
roll,)
bit 3: 1 check for collision, 0 not
bit 4: 1 check for ground detection, 0
not
########### My script :
Viewpoint {position 0 0 10}
Script {
url "vrmlscript:
function initialize() {
Browser.setViewpointByValue(new SFVec3f(0, 0, 1.2), new SFRotation
(0, 1, 0, 0), 0);
}
"
}
Shape {geometry Sphere {}appearance Appearance {material Material
{diffuseColor 0.1 0.1 1}}}
|