Search Unity

Question Recording a path-traced movie with Unitys recoder

Discussion in 'Audio & Video' started by wm-VR, Mar 28, 2022.

  1. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    Hey, as the title suggest, I would like to record a short path traced movie in Unity but I don't know how and where to set the ray-tracing sample rate for each frame for the recorder.

    I tried to use a value of around 1000 samples under Accumulation/Samples to get rid of most of the noise but this doesn't work and setting the sample rate in the HDRP Raytracing volume to 1000 will be ignored from the recorder.

    I always get just one sample per frame which ofc is not usable.

    Thanks for any help!
     
  2. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Hey,

    Thanks for your message.
    Indeed, the recorder overrides the value from the scene when it's active.
    Is your problem that setting a value of 1000 for numSamples is not enough ?
     
  3. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    Hey and thanks for the quick answer.

    In order to get rid of most of the noise I need at least 1000 samples per frame. I know that the denoiser is still in development and will not land until 2022.2, but in the meantime, more samples are needed.

    No matter how many samples I set in the recorder under Accumulation (I tried it with 1000, 500 and 300 samples, H.264 MP4 as output) just results in one sample for each frame in the final video. I use the latest version of the recorder.

    EDIT: it seems to work with 150 samples. The video is now much clearer but still very noisy. Going higher with the sample rate seems to break the recorder and makes the sample rate falling back to 1 sample
     
    Last edited: Mar 28, 2022
  4. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    https://drive.google.com/file/d/1b355Oyjq2PRWSI5gWnprlfiL_gfEhgbD/view

    This is a video recording with 150 samples per frame but at 00:15 suddenly it falls back to 1 sample. What could cause this problem?
     
  5. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
  6. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    using Unity 2022.1.0b13, recorder 4.0.0-pre.3, Nvidia RTX 3070, v512.15

    These are the settings for the video link I sent yesterday:
    upload_2022-3-29_10-2-36.png


    and these are the settings for the same video but with a higher sample rate: (I get a similar result with 500 or 1000 samples)
    https://drive.google.com/file/d/1b2mZgjkWSHCGBgkLrg9rzkzwHVFg3UCH/view?usp=sharing
    upload_2022-3-29_10-1-36.png


    and lastly, another test with the same transform recordings but different light conditions and aspect-ratio:
    https://drive.google.com/file/d/1b8vjWKdkmLorgwfS_JCLTNMs3s4NkKrX/view?usp=sharing
    upload_2022-3-29_9-59-36.png

    finally, a video I made some time ago that worked with 150 samples (unfortunately I don't remember the recorder settings but going higher than 150 didn't work)
    https://drive.google.com/file/d/1aX0jDf0Tg05h-KTKYKus4iVSnfUiJOKP/view?usp=sharing
     
    Last edited: Mar 30, 2022