Just inline the following code at the appropriate place in your main VRML file :
Inline { url="http://tecfa.unige.ch/~ott/vrml/vectorial_snapshooter.wrl" }
...and you will get the following output in your VRML console each time you press on the (dashboard) button&nbps;:
###################################################### ###################################################### DEF XXXXXX Viewpoint { description "XXXXXX" position Xval Yval Zval orientation Xval Yval Zval Rval fieldOfView 1.2 # prefixed val change for your use!! }
[todo:explanation]
Cool isn't it!
#######################################################
# SnailTrail.wrl V1.0 (24-Sep-1998)
# =====================
# Idea spark : Patrick Jermann, TECFA, University of Geneva
# Conception : David Ott, TECFA
# TecSupport : Sylvere Martin-Michiellot, TECFA
# Copyright : David.Ott@tecfa.unige.ch
#
# Free for all non-commercial uses if you keep this notice
# intact and share with other.
#
# Description :
# SnailTrail.wrl was designed to leave a trace of the
# users exploration of the Virtual World. It
# belongs to the awareness tools family, and is
# supposed to give information enabling the user
# see which places he visited. The code is quite
# simple and has the following properties :
# -leaves a red trace behind the user,
# -outputs the number of points of the
# IndexedLineSet in the VRMLconsole
#
# Next steps :
# Find a way to reduce point number for faster
# rendering, either by taking the position each X sec.
# with a TimeSensor {interval X}, or by limiting the
# point array size (but this would clamp off earlier
# trail information), or by comparing segment (t;t-1)
# with segment (t-1;t-2) and deciding if the orientation
# of the 2 segments are almost similar (let's say less
# than X degrees difference) and if so replacing t-1
# with t.
########################################################
############################################################
# compass.wrl V1.0 (01-Oct-1998)
# =====================
# Idea spark : David Ott, TECFA, University of Geneva
# Conception : David Ott
# Copyright : David.Ott@tecfa.unige.ch
#
# Free for all non-commercial uses if you keep this notice
# intact and share with other.
#
# Description :
# The compass points to the center of the scene [0 0 0].
# Just inline it in your scene : Inline { url "compass.wrl" }
#############################################################