Skip to main content
GameDev.net gamedev.net
🔒 Locked

Forcing on Anti-Aliasing

Started by Wilhelm van Huyssteen May 14, 2008 at 2:28 AM 6 replies 2.8k views
Original Post
Wilhelm van Huyssteen
Wilhelm van Huyssteen
my 3D app currently have no Anti-Aliasing, however when i go to my graphics card control panel i can force a certain level of Anti-Aliasing for all 3d aplications. This works perfectly fine for my 3d app but i dont want to change stuff in my graphics card settings for my app to work like i want it to. instead how can i force on Anti-Aliasing in my program itself i have a ATI card and i use java with the jogl wrapper (dont think this makes any difference though)
Hodgman
Hodgman
This is off the top of my head, so I'm not sure how correct it is:

glHint( GL_POLYGON_SMOOTH_HINT, GL_NICEST );//optional, tell it to use it's best AA algorithmglEnable(GL_POLYGON_SMOOTH); //turn on AA
nife87
nife87
Quote:
Original post by Hodgman
This is off the top of my head, so I'm not sure how correct it is:

*** Source Snippet Removed ***


That will enable local anti-aliasing, which is rather slow compared to actual FSAA (Full Screen Anti-Aliasing) and this, I believe, is actually what the OP wants, since controlling AA from the CCC is mentioned.
Although I cannot remember how to enable FSAA with JOGL, I can tell you that it is usually applied/requested when creating the OpenGL context, since FSAA requires multiple extra frame-buffers for the sampling.
Wilhelm van Huyssteen
Wilhelm van Huyssteen
so i gues its more than 2 lines of code. if someone could maybe just link me a nice tutorial/example i would apreciate it, unles of course you want to explain it to me :p

thnx
Wilhelm van Huyssteen
Wilhelm van Huyssteen
ive already tried that code.. i dont know how to get that from c++ to java and there isnt a java port for it alerady which led me to believe that that way wont work with jogl at all

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.