[Bf-python] RenderEngine API - fractional frame

Nicholas Yue yue.nicholas at gmail.com
Fri Jul 15 07:09:36 CEST 2011


On 15 July 2011 09:37, Matt Ebb <matt at mke3.net> wrote:
>
>
> On Thu, Jul 14, 2011 at 9:48 PM, Nicholas Yue <yue.nicholas at gmail.com>
> wrote:
>>
>> I guess this would mean that I have to work out the MB-sample and
>> fraction, set them (frame_set) appropriately to get the additional data
>> for motion blur as a secondary pass.
>
> That's correct - the render engine itself gets called on integer frames
> (you're only rendering a single integer frame) but if you want to
> pre-calculate motion blur data, you'll need to iterate over as many
> subframes as you need with frame_set() and then pull the geometry data out
> of the scene for each of those sample times.

This observation is with v2.58.

Given that RenderEngine gets called N-samples time and frame_subframe
not having the fractional value, how can I determine that I am on the
last sample and time to actually emit stuff for the Renderer?

I was hoping to use the value in frame_subframe to do the test but
that is not possible given what I observed.

Any trick I can use ?

Regards



More information about the Bf-python mailing list