Many thanks, michel.
But I have another question.
The aim of this tweening and animation was to create the feeling of the space and direction for the person who is using a virtual tour.
So once he moves all the way forward he faces all the "FORWARD" hotspots. When the new scene opens, it shows the position where the previous scene was (using the
lookat(85,0,40);command), then zooms out and rotates to face the direction and shows the next "FORWARD" step. This is achieved by
|
Quellcode
|
1
2
3
|
zoomto(80,smooth());
moveto(224,0,smooth());
|
So when you go the virtual tour
all the way forward it works great and makes a feeling of the 3D walk.
But when you try to move
back it is messing down all your feeling of direction. Because it
- turns onto the back hotspot,
- then zooms it in,
- then loads the previous scene facing the position where you have just left from,
- zooms out,
- and the messy part is right here: it makes a slight move and returns you to the same position, where you have just left from.
Here is an example:
http://v-city.eu/est/tours/fairs/meremess/meremess.html
What it should do is to rotate the view to the other BACKWARD hotspot on the loaded scene.
So my question is:
Is it possible to programm the behaviour of the next scene in the
loadcsene description of the
hotspot?
In my example i need to programm the initial position of the loaded scene, initial FOV, change of FOV and rotation to a specific position.
My hotspot looks like this:
|
Quellcode
|
1
2
3
4
5
6
|
<hotspot name="spot-1-forward" url="spots/fwd.png" ath="+265" atv="+10" scale="0.85" zoom="true"
alpha="0.8"
onover="freezeview(true);tween(alpha,1);tween(scale,1.2);showtext(STEP FORWARD, arrows);"
onout="freezeview(false);tween(alpha,0.8);tween(scale,0.85);"
onclick="freezeview(false);lookto(265,1);zoomto(50,smooth(200,200,400));loadscene(scene2, null, MERGE, BLEND(1));lookat(85,0,10);"
/>
|
lookat(85,0,40); works great but helps only with the initial position of the new scene.