PDA

View Full Version : VRML Viewpoint error


bstankie
03-11-2003, 01:09 PM
I realize that you can change the viewpoint within Vizard, but we are also interested in changing the viewpoint using the VRML code. VRML97 has a command called Viewpoint that should allow you to do this. Currently it seems that Vizard does not support this command. If you use the command it gives the following error:

vl read error: Unsupported class "Viewpoint"
Occurred at line 5

This is in reponse to the following VRML code:

#VRML V2.0 utf8
Group {
children [
# Viewpoint
DEF Userview Viewpoint {
description "Starting N @ 160, 200"
position 160.0 1.6 200.0
orientation 0.0 0.0 1.0 0.0
},
# World
Inline { url "layout_ee2.wrl"}
]
}

tobin
03-11-2003, 03:10 PM
The Vizard VRML2/97 importer is largely limited to geometry and texture data. The notable exceptions to this are lights and billboarded objects. Nearly all other VRML functionality is handled through Vizard commands.

There's a chapter in the documentation entitled "Unsupported VRML features." Its contents is copied below:

Unfortunately, the VRML loader that is currently used to support Vizard is limited and does not support many of the features of VRML97. The features that are not supported are the following (though Vizard provides its own methods for doing many of these):
level of detail
touch sensors
proximity sensors
scripting
viewpoints
navigation info
switches
protos
animated textures
anchors
background