[Bf-cycles] problems with function callbacks from Cycles standalone exporter

Mohamed Sakr 3dsakr at gmail.com
Tue May 19 00:21:36 CEST 2015


Hi,

    I'm creating a render engine based on Cycles, right now everything is
fine except that the function callbacks "write_render_tile_cb,
update_render_tile_cb" and variables "progressive, progressive_refine" are
making a problem!!

the problem is:
case (1):
options.session_params.progressive = true;
options.session_params.progressive_refine = true;
options.session_params.progressive_update_timeout = 0.1;
options.session_params.background = true;

no feedback is given "from both functions, so they are not called" , at the
end of the render it saves the image on destructor.

case (2):
options.session_params.progressive = false;
options.session_params.progressive_refine = false;
options.session_params.progressive_update_timeout = 0.1;
options.session_params.background = true;

crash!! after first tile, shows 12/192 in tiles and crashes.

case (3):
options.session_params.progressive = false;
options.session_params.progressive_refine = false;
options.session_params.progressive_update_timeout = 0.1;
options.session_params.background = true;

and in session.cpp:

void Session::release_tile(RenderTile& rtile)
{
thread_scoped_lock tile_lock(tile_mutex);

if(write_render_tile_cb) {
if(params.progressive_refine == false) {
/* todo: optimize this by making it thread safe and removing lock */
write_render_tile_cb(rtile);

//delete rtile.buffers;  // I commented this line!!
}
}

update_status_time();
}

with commenting delete rtile.buffers; , it doesn't crash, and updates
fine!! "although with some problems in gamma in updating, but at the end
the written image is gamma correct"

I'm not sure where is the problem.

cheers,
Mohamed Sakr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20150519/c616c71e/attachment.htm 


More information about the Bf-cycles mailing list