[Bf-cycles] Render to memory buffer

Lukas Stockner lukas.stockner at freenet.de
Sat Mar 17 16:01:13 CET 2018


it certainly is possible somehow, but the best approach depends on what 
you need:
- Are you fine with getting a raw float buffer?
- Are you using interactive rendering?
- Do you want to support multiple devices?

The easiest approaches I can think of right now are either using a 
shared RenderBuffer for all tiles (already sort of implemented in 
session.cpp) or just copying the pixels from their buffers into your 
shared buffer similar to how Cycles for Blender does it in 


On 17.03.2018 15:13, Guillaume Chéreau wrote:
> Hello all,
> I am still trying to integrate cycles into goxel voxel editor.
> One thing I would like to be able to do is to render into a pixel
> buffer that could then be used from the client code directly, instead
> of having cycle issuing the OpenGL commands itself.
> Somehow this seems difficult to achieve, my initial guess was that I
> would need to change the Device used, or configure the CPUDevice class
> no to render to OpenGL, but I can't figure out how that works.
> Any hint about what I should look at?
> Best regards,
> Guillaume

More information about the Bf-cycles mailing list