WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   I cannot show wrl file with text node (https://forum.worldviz.com/showthread.php?t=34)

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
Group{
children[
Shape{

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

Hi,

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')
text.color(1.0,0.2,0.2)


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 03:21 AM.

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