Bob,
Doing the stunt with the graphics config (as well
as setting runtime arg -Dj3d.implicitAntialiasing=true) does not seem to have
any effect for me!
Setting scene anti-aliasing (analogous to your
nch6.theSimpleUniverse.getViewer().getView().setSceneAntialiasingEnable(true);),
however turns my app into a slug!
What works (for me, that is), however, for lines
and points is the following :
int width = 2;
boolean antialias = true;
for lines :
appearance.setLineAttributes(new LineAttributes(width, LineAttributes.PATTERN_SOLID,
antialias));
for points:
appearance.setPointAttributes(new
PointAttributes(width, antialias));
see attached shots with antialias set to true and
false, respectively
----- Original Message -----
Sent: Monday, March 03, 2003 2:02
PM
Subject: Re: [JAVA3D] anti aliasing
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
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 -----
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
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.
|
<<attachment: with anti-alias.gif>>
<<attachment: no anti-alias.gif>>