Lisp HUG Maillist Archive

Multisample anti aliasing with Lispworks and OpenGL

Hi,

I am currently evaluating Lispworks 6.1 for a 3D opengl app. I have looked up the opengl lispworks sample
but did not find support for the anti alias arb extension. 
http://www.opengl.org/registry/specs/ARB/multisample.txt

The CAPI docs say that output pane does support anti aliasing via drawing mode = quality. I have tried
that setting as well in my opengl pane, but no luck.

How to do something like multisample anti aliasing with lispworks? Any pointers appreciated.

Thanks,
Deepak

Re: Multisample anti aliasing with Lispworks and OpenGL

Hi,

I have this working now. However right now its a kludge.

In cocoa.lisp (since right now I am only testing on Mac), I had to modify
choose-cocoa-pixel-format called by %make-context so that the pixel
format has the following constants enabled:

ns-open-gl-pfa-sample-buffers 1
ns-open-gl-pfa-samples 4

Overall code changed in choose-cocoa-pixel-format:

(and depth-buffer
                          (list ns-open-gl-pfa-depth-size depth-buffer
                                ns-open-gl-pfa-sample-buffers 1
                                ns-open-gl-pfa-samples 4)))

Now when I create an opengl pane the anti aliasing works and I do
not get any jagged edges.

So, my question would be: are there any symbols like :depth-buffer for
the above constants, the sample buffers and samples, which enables
multisampling. I checked out the doc.txt under the opengl folder, but it
does not have any symbols related to sample buffers and samples.

Any help appreciated,

Thanks
Deepak

On Wed, Apr 25, 2012 at 8:56 PM, Deepak Surti <dmsurti@gmail.com> wrote:
Hi,

I am currently evaluating Lispworks 6.1 for a 3D opengl app. I have looked up the opengl lispworks sample
but did not find support for the anti alias arb extension. 
http://www.opengl.org/registry/specs/ARB/multisample.txt

The CAPI docs say that output pane does support anti aliasing via drawing mode = quality. I have tried
that setting as well in my opengl pane, but no luck.

How to do something like multisample anti aliasing with lispworks? Any pointers appreciated.

Thanks,
Deepak




--
http://deepaksurti.com
To see a miracle, be the miracle.
Updated at: 2020-12-10 08:36 UTC