Jump to content
Sign in to follow this  
Activate

Rendering Clouds in Redshift (11GB memory limited GPU)

Recommended Posts

I am rendering a small animation which includes a camera moving through clouds. Here is a first previz:

I am wondering if I could get advice on my approach. I have a few hundred clouds overall but only five clouds that are directly seen by the camera over 240 frames of animation.

- I wrote a small solver to identify which clouds enter the view of the camera, e.g. by mapping points to NDC coordinates.

- Non visible clouds are created with the cloud node and a small uniform sampling rate of 50.

- Visible clouds use 1200 uniform sampling. (Video resolution will be 1920x1080). Each cloud takes between 1-2 GB of memory.

At first I created an RS Proxy for each cloud but that used too much memory. To deal with this, I took a box and mapped it's normal coordinates to NDC to give me the camera frustrum which I turned into a vdb. For each frame of the animation, I intersected the frustrum vdb with the vdbs of my five clouds and saved that off as a Redshift proxy:

hnodesfrustrum.thumb.JPG.d966d8f53bedcc65a760a22cdd970bba.JPGhfrustrum.thumb.JPG.73fd19ff971f43fa16701ff1c06fd500.JPG

cloud_frustrum.thumb.JPG.23b30fdff9fb4093cb7553052ef77ffd.JPG

Each proxy is ~250MB per frame. The renders are also quite noisy but Optix is doing a reasonable job at denoising them:

DenoisedCloud.thumb.jpg.2e0a2445a003c4d21973d2adcdae0286.jpg

Bottom half is denoised - top half with noise.

The clouds still look somewhat unnatural which may require some more tweaking.

My question here really is if this is the overall correct approach for dealing with the memory limitations of GPUs.

Thank you.

Share this post


Link to post
Share on other sites

Thank you for that suggestion and the example. I will try that.

As for motion blur, I have not figured that out yet. I was going to try to add it in Nuke. As far as I can tell, Redshift does not produce motion vectors for volumes but can certainly produce motion blur directly.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×