Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3507 Members - Latest Member: PienueDut

26. May 2012, 01:45:17 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)AntiAliasing questions
Pages: [1]
Print
Author Topic: AntiAliasing questions  (Read 308 times)
Tensaides
Just dropped in

Offline Offline

Posts: 15


View Profile Email
« on: 26. March 2010, 02:30:38 pm »

Hello, I would like to know how AA works on Xith. Because when I activate it it seems that nothing changed.

Code:
CanvasConstructionInfo info = new CanvasConstructionInfo();
info.setFSAAMode(FSAA.ON_16X);
canvas = Canvas3DFactory.create(info, parent);

 I also tried to change parameters on my lines when I create them
Code:
LineAttributes lineAttr = new LineAttributes();
lineAttr.setLineAntialiasingEnabled(antialiasing);
                ...
Appearance app= new Appearance();
                app.setLineAttributes( lineAttr3 );
                ...
Line line = new Line(...);
        line.setAppearance(app);

Nothing changes. I probably forgot to do something, or I am maybe not even doing the right thing to enable AA. I searched on the forum without any results.
Thanks in advance for your help.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 26. March 2010, 09:55:45 pm »

Looks good except that you assign 'lineAttr3' to your appearance instead of 'lineAttr'.

Maybe your driver overrules this feature.

Marvin
Logged
Tensaides
Just dropped in

Offline Offline

Posts: 15


View Profile Email
« Reply #2 on: 31. March 2010, 08:04:31 am »

Yeah my drivers was the problem. Thanks Smiley
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic