[Bf-cycles] realtime preview
nathan at mcneel.com
Thu Nov 12 13:31:34 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
And hi again,
I wanted to illustrate what I'm doing with some links into the source
of RhinoCycles. It might help see how it could be done. (And I'm
assuming here I understood Cycles session management properly ;)
Links interspersed in message below.
On 12/11/2015 14:19, Nathan Letwory wrote:
> On 12/11/2015 13:55, Mohamed Sakr wrote:
>> this crashes at some point, any ideas about the general logic
>> here? note that I'm working with background = true
> With my work on RhinoCycles integration I have found that modifying
> a running render session with background=true isn't very easy to
> do. You'll have to first cancel the running session, push your
> changes, then reset and restart.
Not so long ago I was still using background-rendering in RhinoCycles.
The update and render cycle look like this:
This worked together with a check for changes (and possible upload) here:
- From CheckFlushQueue() you can see that I cancel the session before
starting upload to Cycles.
> If you render with background=false you can first pause the
> session, then lock, update, reset and unpause.
Simple start for the render session in RhinoCycles happens here:
Up until this basic session, scene and their parameters have been
created and connected.
CheckFlushQueue() checks if there are any changes in the changequeue,
which at this point will be true. Synchronize() will pause the
session, push the data, reset and unpause.
Similarly, while the interactive render session is running I
periodically check for new changes, which I do in the class governing
, more specifically in the UiUpdate() function here
Hopefully this helped.
>> cheers, Mohamed Sakr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the Bf-cycles