WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-24-2003, 01:17 PM
sled sled is offline
Member
 
Join Date: Jun 2003
Posts: 31
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
Reply With Quote
  #2  
Old 06-24-2003, 01:31 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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
Reply With Quote
  #3  
Old 06-24-2003, 02:42 PM
sled sled is offline
Member
 
Join Date: Jun 2003
Posts: 31
Thanks a lot
Reply With Quote
  #4  
Old 06-25-2003, 07:52 AM
tobin tobin is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 251
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:29 PM.


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