I am OpenGL.
 
Here is the code I used to switch to anti-aliasing:
----------------------
   GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
   template.setSceneAntialiasing(template.PREFERRED);
   GraphicsConfiguration config =
         GraphicsEnvironment.getLocalGraphicsEnvironment().
         getDefaultScreenDevice().getBestConfiguration(template);
 
   nch6.theSimpleUniverse.getViewer().getView().setSceneAntialiasingEnable(true);
---------------------
Is there some other parameter I need to set?
 
Cheers,
Bob Gray
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]On Behalf Of Hans Horn
Sent: Monday, March 03, 2003 4:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] anti aliasing

Bob,
 
According to the docs, anti-aliasing (and thickness) of points and lines is only supported under OpenGL, but not under DirectX. Are you using DirectX?
 
H.
----- Original Message -----
From: RWGRAY
Sent: Monday, March 03, 2003 1:24 PM
Subject: Re: [JAVA3D] anti aliasing

I've  turn on anti-aliasing in an attempt to get better line quality.  It seemed to have no effect for me.  So, I'd be interested in knowing exactly what you did (what you set) to get better line quality. 
 
Sorry I can't be of help for your problem. I hope someone can....
 
Cheers,
Bob Gray
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]On Behalf Of Hans Horn
Sent: Monday, March 03, 2003 4:13 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] anti aliasing

Dear all,

I'm trying to figure out how to use anti-aliasing in my scenes as I'm =
not too content with the normal display quality I get.
I found that I can turn anti-aliasing on via attributes for lines and =
points. The few lines I'm displaying in my scenes are indeed getting =
drawn much nicer after doing that.
However, most of what's displayed are 3d objects. What about =
anti-aliasing for those?

I've found out, that I can turn anti-aliasing on for the entire scene =
(calling setSceneAntialiasingEnable(true) on the view). But this =
converts my snappy scene into a totally non-responsive still picture to =
the point of becoming absolutely useless.

Does anybody know how to have primitives anti-aliased?

H.


Reply via email to