beatreichenbach / realflare

Physically-Based Lens Flare Tool
57 stars 3 forks source link

Varying light_position over time #52

Closed alexfry closed 1 year ago

alexfry commented 1 year ago

This is more of a question than an issue, but I'm not sure where the best place is to reach you otherwise.

I'm trying to undertsand how to animate light_position in a multi frame render (clearly possible based on your twitter feed movies)

So far I've tried:

I was going to try hacking in support for a list of XY pairs in the json, but maybe I'm missing something much more obvious here?

beatreichenbach commented 1 year ago

Great question, I'll try to write up a little doc for that later since there's interest. This place is perfect, this way other people can see the answer too. Thank you!

Until then maybe you can just check out my render.bat in the repo to see how I rendered out my sequences. https://github.com/beatreichenbach/realflare/blob/main/render.bat

This was always just a hack for me to render out animations for twitter as later on I'm hoping the key frame data will come from Nuke. In the meantime you're able to interpolate linearly between two values, which is faster than calling the renderer with a modified json as it can keep a bunch of stuff in the memory.

alexfry commented 1 year ago

Ahhh!

So I should have been calling flare.light_position rather than just light_position.

beatreichenbach commented 1 year ago

I updated the documentation here: https://beatreichenbach.github.io/realflare/reference/command_line/