vancegroup / vr-jugglua

VR JuggLua: A Framework for VR Applications Combining Lua, OpenSceneGraph, and VR Juggler
Boost Software License 1.0
11 stars 11 forks source link

Enable Anti-Aliasing #93

Open carlsonp opened 12 years ago

carlsonp commented 12 years ago

This may be something easy that may improve the visualization. Based on this:

http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg24993.html

It looks like enabling anti-aliasing in OSG is fairly straightforward. Perhaps something like:

traits = osg.GraphicsContext.Traits()
traits.samples = 4

I tried this but it was after the graphics was setup and it crashed. I think this will have to be done right when the graphics are initially setup and I'm not quite sure where that's at.

rpavlik commented 11 years ago

OSG isn't setting up the graphics contexts (plural - two per stereo display at least, I think), VR Juggler is. I'm pretty sure I asked a question on the VR Juggler mailing list and/or on their bug tracker - in any case, that would be the way to go. (And yes, I agree that antialiasing should be used)

On Mon, Jul 23, 2012 at 12:10 PM, Patrick Carlson < reply@reply.github.com

wrote:

This may be something easy that may improve the visualization. Based on this:

http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg24993.html

It looks like enabling anti-aliasing in OSG is fairly straightforward. Perhaps something like:

traits = osg.GraphicsContext.Traits()
traits.samples = 4

I tried this but it was after the graphics was setup and it crashed. I think this will have to be done right when the graphics are initially setup and I'm not quite sure where that's at.


Reply to this email directly or view it on GitHub: https://github.com/vancegroup/vr-jugglua/issues/93

Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University

rpavlik@iastate.edu http://academic.cleardefinition.com

carlsonp commented 11 years ago

In the frame buffer section of the JCONF, there appears to be something that may enable AA.

<num_sample_buffers>0</num_sample_buffers>
<num_samples>0</num_samples>

Changing the number of samples to 4 and 8 didn't seem to do much but actually testing this is difficult because it's such a minute adjustment. I don't think I can distinguish when it's on or off. :) I will read up to see if these are documented in VRJuggler.