Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 01:52:23 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Fullscreen Antialiasing
Pages: [1] 2 3
Print
Author Topic: Fullscreen Antialiasing  (Read 5627 times)
methulski
Enjoying the stay
*
Offline Offline

Posts: 38


Hallöle!


View Profile
« on: 05. January 2007, 08:18:56 am »

Hi folks!

Happy new year to everybody!
Thanks go to the Xith3D team
for their great work. Smiley

I wonder if anybody tried to
activate fullscreen antialiasing
with Xith3D.
If somebody succeeded in doing so
I would be delighted to hear how
it works.

Regards

Methulski
Logged

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 05. January 2007, 03:39:06 pm »

Qudus, could you integrate this setting somewhere in the rendering code ?

Relevant doc for JOGL : http://download.java.net/media/jogl/builds/nightly/javadoc_public/javax/media/opengl/GLCapabilities.html#setSampleBuffers(boolean)

Relevant doc for LWJGL :
http://lwjgl.org/forum/index.php/topic,1889.msg11119.html#msg11119
Logged
methulski
Enjoying the stay
*
Offline Offline

Posts: 38


Hallöle!


View Profile
« Reply #2 on: 05. January 2007, 03:53:57 pm »

Wow, now thats what I call support Shocked
Logged

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 05. January 2007, 04:09:21 pm »


Sure. I will see, what I can do...
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #4 on: 05. January 2007, 04:15:17 pm »

I'm afraid it'll need another trick for SWT, because JOGL's GLCanvas isn't used, so maybe there's a setting for SWT's GLCanvas.

I'll investigate that.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #5 on: 06. January 2007, 03:29:45 pm »

Sure. I will see, what I can do...
Boolean param or enum ?
E.g.
Code:
// Activate FSAA
Canvas3DWrapper.createCanvas(/*...*/, true, /*...*/);
// No FSAA
Canvas3DWrapper.createCanvas(/*...*/, true, /*...*/);
Or it seems you can adjust the number of samples, so maybe an enum is better, see example in JPCT engine :
Code:
SAMPLINGMODE_OGSS

public static final int SAMPLINGMODE_OGSS

    Use 2x2 oriented grid oversampling (FSAA using supersampling)

    See Also:
        Constant Field Values

SAMPLINGMODE_OGSS_FAST

public static final int SAMPLINGMODE_OGSS_FAST

    Use 1.5x1.5 oriented grid oversampling (FSAA using supersampling). This mode is faster then "normal" 2x2 oversampling, but image quality is a bit lower.

    See Also:
        Constant Field Values

SAMPLINGMODE_OGUS

public static final int SAMPLINGMODE_OGUS

    Use 0.5x0.5 oriented grid undersampling (to upsample an image rendered at a lower resolution)

    See Also:
        Constant Field Values

SAMPLINGMODE_NORMAL

public static final int SAMPLINGMODE_NORMAL

    Normal sampling mode (1-to-1)

    See Also:
        Constant Field Values

SAMPLINGMODE_HARDWARE_ONLY

public static final int SAMPLINGMODE_HARDWARE_ONLY

    A special sampling mode that indicates, that no software rendering will be used on this framebuffer. OpenGL support will work with any other sampling mode though (but the sampling modes don't affect the OpenGL output).

    See Also:
        Constant Field Values

Ref : http://www.jpct.net/doc/com/threed/jpct/FrameBuffer.html

@Marvin : I wouldn't mind doing that myself, but each time I changed something in Canvas3DWrapper you adjusted just after me Smiley So I think it's better if it's you.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #6 on: 06. January 2007, 05:50:48 pm »

I think, we should bloat the constructors. So a getter/setter will do just fine. And if more than a boolean setting is possible, then an enum is good. I will do it these days.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #7 on: 07. January 2007, 06:07:06 pm »

You mean we *shouldn't* bloat the constructors ??
I agree  Grin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #8 on: 07. January 2007, 08:47:06 pm »

You mean we *shouldn't* bloat the constructors ??
I agree  Grin

Oh. Yeah. Sure- Grin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #9 on: 10. January 2007, 05:28:42 am »

FSAA is now fully supported by JOGL_AWT and LWJGL renderers Smiley.

It is selectable through the constructors of CanvasConstructionInfo, Canvas3DWrapper, the factory methods of Canvas3DWrapper and the factory methods of RenderPeer. It is not switchable at runtime. Theoretically this is possible, but it is not an easy task to do. The CanvasPeer needed to be recreated, which would mean, that all OpenGL names needed to be resetted. So this is not for the 0.9.0 branch.

FSAA mode is fully selectable through the Xith3DTestLauncher. Sorry for the ugly new design of the launcher. It is still work in progress. But it works Wink.

Enjoy.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #10 on: 10. January 2007, 03:14:59 pm »

GT  Grin
Logged
methulski
Enjoying the stay
*
Offline Offline

Posts: 38


Hallöle!


View Profile
« Reply #11 on: 10. January 2007, 03:38:00 pm »

Awesome!

You guys rock!

As it is a new feature I suppose I have
to built the lib from sourcecode, right?
Now I know how to spend my weekend  Smiley

thanks

methulski
Logged

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #12 on: 10. January 2007, 07:26:46 pm »

Awesome!

You guys rock!

You're welcome Smiley.

As it is a new feature I suppose I have
to built the lib from sourcecode, right?

Correct.

Now I know how to spend my weekend  Smiley

Have fun Smiley.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #13 on: 14. January 2007, 09:29:16 am »

FSAA is now also available for SWT Smiley.

Marvin
Logged
methulski
Enjoying the stay
*
Offline Offline

Posts: 38


Hallöle!


View Profile
« Reply #14 on: 22. January 2007, 09:11:19 am »

Cool!

I haven't been able
to give it a try until
today Embarrassed , but as soon as
svn is installed I'll
build the packages.

Methulski
Logged

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
Pages: [1] 2 3
Print
Jump to:  

Theme orange-lt created by panic