Page 1 of 1

Displacement and RAM usage

Posted: Mon Dec 02, 2013 7:24 pm
by prodviz
Hi all,

I've got a sphere set at 5cm and with 8 subdivs (using display smoothness) - in maya 2014 on the mac.

When I add a maxwell shader with displacement (a rock normal map from the Maxwell folder), the RAM usage starts to head upward and max out the physical RAM at 13GB (there's 16GB installed) and the virtual memory at 33GB. Maya then freezes/starts with the spinny wheel.

Are there tips for working with displacements, where I can reduce the RAM usage?

cheers,

Steve

Re: Displacement and RAM usage

Posted: Mon Dec 02, 2013 7:31 pm
by Bubbaloo
You should use "On-the-Fly" type if you run out of RAM. Start with a small value, and work your way up until you achieve the desired detail.

"Pretessellated" is useful to speed up your displacement render as long as you have enough RAM.

Re: Displacement and RAM usage

Posted: Mon Dec 02, 2013 7:34 pm
by prodviz
Cool, cheers Brian. That works great.

Re: Displacement and RAM usage

Posted: Mon Dec 02, 2013 8:14 pm
by RichG
I find the default setting (at least in Cinema) of 16 is often overkill. Obviously it depends on how tessellated your mesh is before displacement but I always knock it down to 4 at most to start with for fast results and then increase if quality needs it.

Re: Displacement and RAM usage

Posted: Mon Dec 02, 2013 9:11 pm
by Mihai
Pretess will always be faster, and sometimes MUCH faster than On the fly displacement. In your case, it sounds like the sphere is already subdivided a lot (8 times), so in the displacement settings, set it to pretess and maybe a subdivision of 1 or 2 and see if that's enough.

Re: Displacement and RAM usage

Posted: Tue Dec 03, 2013 11:39 am
by prodviz
Cool, cheers for the info.

Starting with a low pretess subdiv worked well too, without taking the large about of RAM, as before.

However, on adding a new maxwell shader to the same scene, maya has frozen (Not responding) and the processors have gone bonkers.
I've repeated these steps a couple of times.

Cheers,

Steve

Re: Displacement and RAM usage

Posted: Tue Dec 03, 2013 11:52 am
by Mihnea Balta
Did you set subdivision to 8 in the Maya smoothing parameters (i.e. the "Smooth Mesh" rollup in the attribute editor for the shape node)? Because that will export a sphere with 12 million triangles to Maxwell, and then Maxwell will further subdivide it for displacement. Turn off smoothing in Maya, it's not needed.

Re: Displacement and RAM usage

Posted: Tue Dec 03, 2013 12:29 pm
by prodviz
I set the sphere's subdivs in the channel box, in the initial modeling. So the 8 subdivs appear in the 'polySphere1' node.

I am using smooth mesh, though, but just the default settings of 2.

Is a better approach, to create a sphere with enough ploys to look smooth, but without using the 'smooth mesh'?

Re: Displacement and RAM usage

Posted: Tue Dec 03, 2013 12:37 pm
by Mihnea Balta
Oh, I see.

In the case of a sphere, setting the number of subdivisions in the generator node offers more control compared to smoothing. However, smoothing has the advantage that you can turn it off in the viewport, so you only use high-poly meshes when you export the scene to Maxwell. The result in the render is the same (a sphere with lots of polygons), so the decision should be made based on how if affects the interactivity of the viewport.

Do you have lots of spheres? If yes, are you instancing them, or making copies?

Re: Displacement and RAM usage

Posted: Tue Dec 03, 2013 12:45 pm
by prodviz
Cool, cheers for the info.

As for the spheres, it's just a test scene for displacement with an additional non displaced coating over the top, so now worries on the number of spheres.

Cheers again.

Steve