Hi,
Fullscene antialiasing is support in v1.3 release for
both release if the driver support. (Previous Java3D
version for OpenGL did not multisampling
fullscene antialiasing)
To check you graphics card capabilities, run
programs/examples/PackageInfo>java QueryProperties
If sceneAntialiasingNumPasses = 8,
it means multisampling is not support and accumulation
buffer will be used to similulate fullscene antialiasing
under OpenGL.
If sceneAntialiasingNumPasses = 1,
multisampling is support and you should see pretty fast
rendering with antialiasing support.
If sceneAntialiasingNumPasses = 0, full scene
antialiasing is not support. This happen when
DirectX version of Java3D is used and multisampling
is not support by the driver. (since DirectX don't
have accumlation buffer)
To enable fullscene antialiasing, you MUST first
set the GraphicsConfigTemplate3D propertly
instead of using the default in the SimpleUniverse:
GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
template.setSceneAntialiasing(template.PREFERRED);
GraphicsConfiguration config =
GraphicsEnvironment.getLocalGraphicsEnvironment().
getDefaultScreenDevice().getBestConfiguration(template);
Then set
View.setSceneAntialiasingEnable(true);
Setting only the last one without initialize the
GraphicsConfigTemplate3D will not see multisampling
fullscene antialiasing effect even though driver
support it.
There is also a new properly added in v1.3 release.
This is from README
===========================
Multisampling Antialiasing
===========================
By default, full scene antialiasing is disabled if a
multisampling pixel format (or visual) is chosen.
To honor a display drivers multisample antialiasing
setting (e.g. force scene antialiasing), set the
implicitAntialiasing property to true.
This causes Java3D to ignore its own scene antialias
settings, letting the driver implicitly implement the
feature.
java -Dj3d.implicitAntialiasing=true MyProgram
Thanks.
- Kelvin
----------------------
Java 3D Team
Sun Microsystems Inc.
>Date: Mon, 22 Jul 2002 10:10:54 -0400
>From: RWGRAY <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Antialiasing?
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>Content-transfer-encoding: 7bit
>Importance: Normal
>X-Priority: 3 (Normal)
>X-MSMail-priority: Normal
>Delivered-to: [EMAIL PROTECTED]
>
>Well, I am using a GeForce2Go card (in my laptop), Windows 2000, OpenGL,
>Java3d 1.3.
>
>Other applications I use have antialiasing features I can turn on and off
>and I see a big difference. But not using Java 3D. I see no difference.
>That's what has me wondering....
>
>Cheers,
>Bob Gray
>
>-----Original Message-----
>From: Discussion list for Java 3D API
>[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Taylor
>Sent: Monday, July 22, 2002 9:57 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] Antialiasing?
>
>
>I suspect it could be a matter of support, i.e.;
> may only work in OpenGL or only in DirectX,
> only works on certain cards,
> only works with certain drivers or
> only works in certain res/colour depths.
>
>You should be able to see some differance when it's working and
>possibly be able to ask J3D at run time if it believes the feature is
>supported. I've not tried it from software but I have used the NVidia
>GeForce3 29.xx driver manual over ride setting in windows to force all
>OpenGL apps to x8 FSAA. This did make a differance in my application,
>although I have to say it wasn't huge, but lines did have blured edges.
>
>
>Have a search though the list archives as I'm sure it's been mentioned
>sometime this year. Or give details of your J3D version, GL or DX, OS,
>Video card and drivers.
>
>Jason.
>
>>>> [EMAIL PROTECTED] 22/07/2002 14:25:54 >>>
>Does antialiasing work in Java 3D?
>
>I set
>theSimpleUniverse.getViewer().getView().setSceneAntialiasingEnable(true);
>
>and I see *no* difference in quality of the image. I had hoped that
>this
>would make the edge of my cylinder look smooth. Instead it looks
>exactly
>the same (choppy) but just takes a long time to display.
>
>Is there something else that needs to be set for antialiasing?
>
>Cheers,
>Bob Gray
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
>of the message "signoff JAVA3D-INTEREST". For general help, send email
>to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".