We've recently fixed some bugs in the DXF loader related to how some objects
made up of PolyLines weren't being handed correctly.
Another thing to be aware of is that the object may not be within the cameras
line of sight. (Which by default points to the origin....objects at the
origin should so up). If you try loading the object with the NCSA Display
utility that comes with Portfolio, you can try using the "Back", "Front",
"Left", "Right", "Top", "Bottom" default camera angles to see if you can see
the object.
If that doesn't work, try sending me the file and I'll take a look at it.
Steve
Barry Walsh wrote:
> Can anybody tell me what is going wrong here??
> I'm sure it's something simple, but I'm not seeing it.
>
> Basically, I use the example A3DApplet.java from one of David Nadeau's
> tutorials, and in place of the ObjectFile, I insert the ncsa DXF loader.
>
> All I get is a blank canvas....
>
> ideas?
>
> ModelLoader ml = new ModelLoader();
> Scene s = null;
> try {
> s = ml.load("Filename.dxf");
> }
> catch (FileNotFoundException e){}
> catch (ParsingErrorException e) {}
> catch (IncorrectFormatException e) {}
>
> BranchGroup bg = new BranchGroup();
> bg = s.getSceneGroup();
> objTG.addChild(bg); // objTG is aTransformGroup for the object
> sceneTG.addChild(objTG); // and a TG for the scene
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
--
Steve Pietrowicz - [EMAIL PROTECTED] Project Manager - NCSA Java 3D Group
NCSA Portfolio: http://havefun.ncsa.uiuc.edu/Java3D/portfolio/
New Beta 2a release! New Loaders, record and replay of your
Java 3D apps and more! Freely available for non-commercial use!
You Build It VR: http://havefun.ncsa.uiuc.edu/Java3D/YouBuildItVR/
Build your own multi-user virtual worlds with no programming experience!
The Java3D FAQ: http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
Java News Network: http://tintoy.ncsa.uiuc.edu/~srp/java/javanews.html
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/