Definition at line 53 of file PostProcessing.hh.
◆ PostProcessing()
| PostProcessing::PostProcessing |
( |
| ) |
|
◆ ~PostProcessing()
| PostProcessing::~PostProcessing |
( |
| ) |
|
|
virtual |
◆ postProcess()
Perform all post processing.
Post processors might require modelview and projection matrix. In stereo mode, the post processor chain is executed for each eye separately. The resulting stereo buffers for each eye have to be resolved either by hardware OpenGL support or by manually calling resoleStereoAnaglyph() afterwards.
- Parameters
-
| _viewerID | OpenFlipper viewer id (viewport index) |
| _modelview | modelview matrix of the scene |
| _proj1 | projection matrix 1 (left eye in stereo mode) |
| _proj2 | projection matrix 2 (right eye in stereo mode) |
| _hwOpenGLStereo | hardware stereo support should be used to resolve the stereo buffers (GL_BACK_LEFT, GL_BACK_RIGHT) |
Definition at line 229 of file PostProcessing.cc.
◆ resolveMultisampling()
◆ resolveStereoAnyglyph()
| void PostProcessing::resolveStereoAnyglyph |
( |
int |
_viewerID | ) |
|
Resolve stereo buffers as anaglyph.
Final textures are combined to an anaglyph image.
- Parameters
-
| _viewerID | OpenFlipper viewer id (viewport index) |
Definition at line 451 of file PostProcessing.cc.
◆ setupFBO()
| void PostProcessing::setupFBO |
( |
ACG::FBO * |
_dst, |
|
|
int |
_width, |
|
|
int |
_height, |
|
|
GLuint |
_intfmt, |
|
|
int |
_samples |
|
) |
| |
|
private |
◆ setupScene()
| int PostProcessing::setupScene |
( |
int |
_viewerID, |
|
|
int |
_width, |
|
|
int |
_height, |
|
|
int |
_samples = 0, |
|
|
int |
_stereoEye = -1 |
|
) |
| |
Bind fbo for scene rendering.
Setup fbo and draw buffer as target for scene rendering. Some post processing effects require special targets and setupScene() takes this into account.
- Parameters
-
| _viewerID | OpenFlipper viewer id (viewport index) |
| _width | texture width |
| _height | texture height |
| _samples | number of samples for multisampling |
| _stereoEye | eye from which to render the scene: -1 (no stereo rendering), 0 (left eye), 1 (right eye) |
- Returns
- negative (unchanged fbo ie. use current hardware fbo), 0 (fail), 1 (fbo has been changed)
Definition at line 70 of file PostProcessing.cc.
◆ backbufferFBO_
| GLuint PostProcessing::backbufferFBO_ |
|
private |
◆ backbufferTarget_
| GLuint PostProcessing::backbufferTarget_ |
|
private |
◆ backbufferViewport_
| GLint PostProcessing::backbufferViewport_[4] |
|
private |
◆ debugLevel_
| int PostProcessing::debugLevel_ |
|
private |
perform extra checks for debugging: 0 -> no checks, 1 -> fast checks, 2 -> more checks etc.
Definition at line 114 of file PostProcessing.hh.
◆ procFBO_
◆ sceneFBO_
FBO for scene rendering, one for each eye in stereo mode, possibly multisampled.
Definition at line 117 of file PostProcessing.hh.
◆ stereoFBO_
store post processing results for each stereo eyes, input for anaglyph processor, no msaa
Definition at line 123 of file PostProcessing.hh.
◆ stereoMode_
| bool PostProcessing::stereoMode_ |
|
private |
The documentation for this class was generated from the following files: