Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Anti-Aliasing #93

Open
carlsonp opened this issue Jul 23, 2012 · 2 comments
Open

Enable Anti-Aliasing #93

carlsonp opened this issue Jul 23, 2012 · 2 comments

Comments

@carlsonp
Copy link
Member

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

http://www.mail-archive.com/[email protected]/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
Copy link
Member

rpavlik commented Jul 31, 2012

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 <
[email protected]

wrote:

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

http://www.mail-archive.com/[email protected]/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:
#93

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

[email protected]
http://academic.cleardefinition.com

@carlsonp
Copy link
Member Author

carlsonp commented Aug 3, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants