[vtkusers] VRML Reader
Chris Scharver
scharver at evl.uic.edu
Fri Mar 21 10:28:21 EST 2003
>At 3:15 AM +0000 on 03/21/2003, ramu chandran wrote:
>
>> I found that vtkVRMLImporter supports VRML Version 2.0. Are there any VRMl readers which support VRML Version 1.0? Kindly suggest.
>
>Take a look at the vtkIVWriter class. It writes Inventor v2.0 files. You can then simply change the header from "# Inventor v2.0 ascii" to "VRML v1.0 ascii" and I think it should be fine.
Duh... I just realized that you were asking about the reader, not the writer. That should teach me to respond to mail before I've had my coffee!
As for parsing VRML 1, I don't think there's a current way to do that. I use Coin3d and TGS Inventor to manually read Inventor/VRML1, and then I manually flatten the scene graph before sending it to VTK.
You could also just convert the VRML1 files to VRML2, and that may be the easier route to go.
Chris
--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002 FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>
More information about the vtkusers
mailing list