Author Topic: Anti-aliasing  (Read 3081 times)

Offline fardke

  • byte
  • *
  • Posts: 10
    • View Profile
Anti-aliasing
« on: June 27, 2008, 09:07:39 pm »
Hi,

I want to activate antialiasing without using openGL renderer. I draw a line between 2 objects and the link is very aliased (ugly, like stairs).

Is it possible? And how?

Thank you!
 ???

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Anti-aliasing
« Reply #1 on: June 27, 2008, 11:53:46 pm »
Depends on how you are drawing that line. You can use two different anti-aliasing modes when using the software renderer. You choose them when creating the FrameBuffer. For example this: http://www.jpct.net/doc/com/threed/jpct/FrameBuffer.html#SAMPLINGMODE_OGSS_FAST

You pay the price in fillrate when enabling this, i.e. your rendering gets slower. If you are using standard Java2D line drawing to draw that line, this setting doesn't apply. In that case, you have to enable anti-aliasing in Java2D, which should be possible somehow...