Skip to content

Shadow catcher and images save #14

@riccardomarin

Description

@riccardomarin

Hi,
I have three questions:

  1. I was wondering if at the moment there is a way to have a Shadow catcher surface, i.e. a plane that shows only the shadows but fully transparent to have infinite scenes.
  2. There is a way to do not show the rendering window, i.e. to do the image rendering in "background"?
  3. There is a way to save the figure when the "max_accumulation_frames" has been reached? I tried to set the min_accumulation_step == max_accumulation_frames, but it does not work (it saves a black image). The only trick I was able to figure out was an infinite while loop that wait for no more changes in the rendering process:
tmp = rt.get_rt_output()
while 1:
   time.sleep(1)
    tmp_new = rt.get_rt_output()
    if not(np.sum(tmp - tmp_new)):
        rt.save_image('out.png')
        break
    a = a1

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions