WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   I cannot show wrl file with text node (

sled 06-24-2003 01:17 PM

I cannot show wrl file with text node
for example,the simple file as following:

#VRML V2.0 utf8

appearance Appearance{
material Material{
diffuseColor 1.0 0.2 0.2
geometry Text{
string ["View 1"]

it works well in other wrl viewer, and it's vrml 2.0 version, but the viz send err message as following:

vl read error: Unsupported class "Text"
Occurred at line 11
vl read error: Couldn't read value for field "geometry"
Occurred at line 13
vl read error: Unknown field geometry
Occurred at line 13

farshizzo 06-24-2003 01:31 PM


The current VRML loader doesn't support all VRML 2.0 features, and Text is one of them. You can add a text object manually though:

text = viz.add(viz.TEXT3D,'View 1')

To dynamically change the text message:

text.message('new value')

Plus all the transformation operations work on the text object, such as translation, rotation, and scale.

-- Farshid

sled 06-24-2003 02:42 PM

Thanks a lot

tobin 06-25-2003 07:52 AM

The current Vizard loader is VRML97/2.0 compatible in general, but many feature are not supported as noted. Search the docs on "unsupported VRML features" and you'll see a list of what is not supported currently.

All times are GMT -7. The time now is 07:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC