This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > January 2006 > making a simple tour from viewpoints
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 |
making a simple tour from viewpoints
|
|
|
| Hi all,
is possible to make automatic tour of viewpoints in vrml file
with a slow transition from a viewpoint to the next?
i already got these viewpoints and i hope it will be simple to
implement this functionality...
all i want is open the vrml file and without user intervent see the
entire world
with a "panoramic tour".
Thanks.
| |
| Joerg Scheurich aka MUFTI 2006-01-16, 6:43 pm |
| > is possible to make automatic tour of viewpoints in vrml file
> with a slow transition from a viewpoint to the next?
> i already got these viewpoints and i hope it will be simple to
> implement this functionality...
> all i want is open the vrml file and without user intervent see the
> entire world
> with a "panoramic tour".
A awk script (e.g. for Linux/UNIX/MacOSX or cygwin under M$Windows)
is part of the white_dune sources in the "tools" directory:
# collectViewpoints.awk
# A simple script to collect the parameters of all Viewpoints
# to a VRML file with a Transform animation of all Viewpoints.
# This script do not support the collections of Viewpoints which
# are moved/rotated/scaled etc. by Transform nodes.
# Important: You need to load and store to a different file with the program
# white_dune before use, this script depends on white_dune layout
# example usage:
# awk -f collectViewpoints.awk inputfile.wrl > outputfile.wrl
The motion between two viewpoints is not unique, there are multiple ways.
The collectors simply writes simple interpolators, which results in
least way/least rotation between viewpoints.
This is often not the way you want for a guided tour.
So you often need to change the Interpolators (e.g. in white_dune itself).
so long
MUFTI
--
Persönlicher Benutzer - für den einzelnen Benutzer hing der
Wunsch des kompakten, hohen Klarheit Kopfes SVGA-Bildschirmanzeigen
(aus einer Webseite fuer einen 3D Datenhelm)
| |
| Joe D Williams 2006-01-17, 6:53 pm |
|
"BoB" <sgruffu@hotmail.com> wrote in message
news:1137338845.661517.223840@f14g2000cwb.googlegroups.com...
> Hi all,
>
> is possible to make automatic tour of viewpoints in vrml file
> with a slow transition from a viewpoint to the next?
>
> i already got these viewpoints and i hope it will be simple to
> implement this functionality...
>
> all i want is open the vrml file and without user intervent see the
> entire world
> with a "panoramic tour".
>
> Thanks.
>
Try the following for a starter.
If you have all the viewpoint coordinates, then just fil them in and
see what happens. Then you can fine tune what is going on.
I hope this works.
It is from the X3D Classic VRML encoding spec Examples.
#X3D V3.0 utf8
PROFILE Interactive
META "filename" "GuidedTour.x3dv"
Group {
children [
Transform { translation 0.0 -1.0 0.0
children [
Shape {
geometry Box { size 30.0 0.2 30.0 }
appearance Appearance {
material Material { }
}
}
]
}
Transform { translation -1.0 0.0 0.0
children [
Shape {
geometry Cone { }
appearance Appearance {
material Material {
diffuseColor 0.5 0.8 0.0
}
}
}
]
}
Transform { translation 1.0 0.0 0.0
children [
Shape {
geometry Cylinder { }
appearance Appearance {
material Material { diffuseColor 0.0 0.2 0.7
}
}
}
]
}
DEF GuideTransform Transform {
children [
DEF TourGuide Viewpoint { description "Tour Guide"
jump FALSE
}
DEF ProxSensor ProximitySensor {
size 50.0 50.0 50.0
}
DEF StartTour TouchSensor {
}
Transform { translation 0.6 0.4 8.0
children [
Shape {
geometry Sphere { radius 0.2 }
appearance Appearance {
material Material { diffuseColor 1.0 0.6 0.0 }
}
}
]
}
]
}
]
}
DEF GuidePI PositionInterpolator {
keyValue [ 0.0 0.0 0.0, 0.0 0.0 -5.0, 2.0 0.0 -5.0,
2.0 6.0 -15.0, -4.0 6.0 -15.0, -4.0 0.0 -5.0,
0.0 0.0 -5.0, 0.0 0.0 0.0 ]
key [ 0.0 0.2 0.3 0.5 0.6 0.8 0.9 1.0 ]
}
DEF GuideRI OrientationInterpolator {
keyValue [ 0.0 1.0 0.0 0.0, 0.0 1.0 0.0 0.0, 0.0 1.0 0.0 1.2,
0.0 1.0 0.0 3.0, 0.0 1.0 0.0 3.5, 0.0 1.0 0.0 5.0,
0.0 1.0 0.0 0.0, 0.0 1.0 0.0 0.0 ]
key [ 0.0 0.2 0.3 0.5 0.6 0.8 0.9 1.0 ]
}
DEF TS TimeSensor {
cycleInterval 30.0
}
ROUTE ProxSensor.isActive TO StartTour.enabled
ROUTE StartTour.touchTime TO TS.startTime
ROUTE TS.isActive TO TourGuide.set_bind
ROUTE TS.fraction_changed TO GuidePI.set_fraction
ROUTE TS.fraction_changed TO GuideRI.set_fraction
ROUTE GuidePI.value_changed TO GuideTransform.translation
ROUTE GuideRI.value_changed TO GuideTransform.rotation
http://www.web3d.org/x3d/specifications/
ISO-IEC-19776-X3DEncodings-XML-ClassicVRML/
Part02/Examples/GuidedTour.x3dv
Of course I would like it better is the Viewpoint
position and orientation were set directly rather than through
the parent Transform translation and rotation.
Thanks and Best Regards,
Joe
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|