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

Better smoothing with FBOs #44

Open
nasser opened this issue Jun 27, 2011 · 2 comments
Open

Better smoothing with FBOs #44

nasser opened this issue Jun 27, 2011 · 2 comments

Comments

@nasser
Copy link
Owner

nasser commented Jun 27, 2011

Get rid of code like this

  if(_zj_smoothing == Qtrue && _zj_fill == Qtrue) {
    /*  smoothing is on and the rectangle was filled. draw a smooth outline. */
    ofNoFill();
    ofRect(NUM2DBL(x1), NUM2DBL(y1), NUM2DBL(w), NUM2DBL(h));
    ofFill();

  }

and use FBO multisampling to implement smoothing. render everything to an FBO and then draw that to the window. the smoothing method will control the number of samples in the FBO.

@nasser
Copy link
Owner Author

nasser commented Jul 1, 2011

Possible syntax:

smoothing false # sets FBO's samples to 0
smoothing true # sets FBO's samples to maximum i.e. ofFbo::maxSamples()
smoothing 4 # sets FBO's samples to 4
smoothing 5 # sets FBO's samples to 5
smoothing 6 # sets FBO's samples to 6

@nasser
Copy link
Owner Author

nasser commented Oct 19, 2012

If this can get in for 0.4.0, that's great. But it shouldn't hold things up.

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

1 participant