#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Thanks a lot
|
#4
|
|||
|
|||
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.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|