[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46229] trunk/blender/source/blender/ editors/render/render_opengl.c: Fix #31254: OpenGL-Rendering dark without Effect-Strip

Sergey Sharybin sergey.vfx at gmail.com
Thu May 3 13:54:12 CEST 2012


Revision: 46229
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46229
Author:   nazgul
Date:     2012-05-03 11:54:12 +0000 (Thu, 03 May 2012)
Log Message:
-----------
Fix #31254: OpenGL-Rendering dark without Effect-Strip

Issue was caused by the fact, that sequencer is working in sRGB space, but
when there's only image input strips we need to make sure conversion from
byte to float buffer would keep float buffer in sRGB space and wouldn't
make it linear as it's supposed to be in other areas.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/render/render_opengl.c

Modified: trunk/blender/source/blender/editors/render/render_opengl.c
===================================================================
--- trunk/blender/source/blender/editors/render/render_opengl.c	2012-05-03 10:56:35 UTC (rev 46228)
+++ trunk/blender/source/blender/editors/render/render_opengl.c	2012-05-03 11:54:12 UTC (rev 46229)
@@ -146,6 +146,13 @@
 			BLI_assert((oglrender->sizex == ibuf->x) && (oglrender->sizey == ibuf->y));
 
 			if (ibuf->rect_float == NULL) {
+				/* internally sequencer working in sRGB space and stores both bytes and float
+				 * buffers in sRGB space, but if byte->float onversion doesn't happen in sequencer
+				 * (e.g. when adding image sequence/movie into sequencer) there'll be only
+				 * byte buffer and profile will still indicate sRGB->linear space conversion is needed
+				 * here we're ensure there'll be no conversion happen and float buffer would store
+				 * linear frame (sergey) */
+				ibuf->profile = IB_PROFILE_NONE;
 				IMB_float_from_rect(ibuf);
 			}
 




More information about the Bf-blender-cvs mailing list