You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/05_basic_scene/main.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -134,8 +134,8 @@ int main()
134
134
135
135
// 'frame_buffer' is not supposed to be used for rendering, we need to process it with rprContextResolveFrameBuffer.
136
136
// This function transforms the raw 'frame_buffer' into a new 'frame_buffer_resolved' that can be displayed on screen as final rendering.
137
-
// The 'normalizeOnly' argument means we only want to do a normalization of 'frame_buffer'.
138
-
//In most of cases, this argument can be left to FALSE: this lets the Renderer choose the correct operation(s) to process.
137
+
// The 'noDisplayGamma'=false argument means we want to use display gamma (defined by RPR_CONTEXT_DISPLAY_GAMMA) which makes sense in this case as 'frame_buffer' represents COLOR.
138
+
//If the framebuffer doesn't represent Color ( for example: Normals, Depth, UVs ... ) then 'noDisplayGamma' should be set to true.
bool useDisplayGamma; // Set this parameter to TRUE for AOV representing Colors. For other AOVs storing data ( Normals, Depth ... ) make sure to set it to FALSE.
Copy file name to clipboardExpand all lines: tutorials/common/common.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -299,7 +299,7 @@ void MatballScene::Render(const std::string& outImgFileName, int iterationCount)
299
299
300
300
if ( !m_usingHybridContext ) // There is no framebuffer resolve for Hyrbid
301
301
{
302
-
// last argument is FALSE because we don't want a simple normalization: we also want to apply the display gamma (changed with RPR_CONTEXT_DISPLAY_GAMMA)
302
+
// last argument is FALSE because we want to apply the display gamma (changed with RPR_CONTEXT_DISPLAY_GAMMA) to this COLOR AOV.
0 commit comments