PDA

View Full Version : Displacement presampling | Whoa, whats this?


Undseth
09-21-2004, 12:53 PM
Positioning the perspective camera near a 100 by 100 sized poly plane with an ocean shader (default) makes mental ray for maya do some extra calculations. This does not happen if I pull the camera farther away.

I dont understand why this is happening, can anyone explain it to me? And is there any way of controlling this?

Heres the output:

...blah blah...
"GAPM 0.2 progr: starting displacement sampling for visible trace shadow caustic globillum part of object pPlaneShape1"
...blah blah...
"GAPM 0.2 progr: 24.6% displacement presampled for object pPlaneShape1"
...blah blah...

Bonedaddy
09-21-2004, 02:24 PM
Haven't toyed with the ocean shader, but it sounds to me like it's doing some extra calculating of the bounding box of the plane based on some sort of (possibly faked) displacement from the ocean shader, set off because the camera is so close... could be wrong.

Undseth
09-21-2004, 02:39 PM
Yeah, I wonder how the displacement is done with that ocean shader.

I hope someone out there would want to write something here. Perhaps providing a tip of some sort. That would be pretty nice.

Finkster
01-15-2005, 08:09 PM
If you are still seeking a solution to this problem, I believe I have found it. You can eliminate the displacement presampling by reducing the maximum displacement value under the geometry approximation settings i.e. set this value no higher than it needs to be according to the displacement amplitude of your shader.
I'm coming from XSI, but I'm sure you can translate this into Maya speak.

Undseth
01-15-2005, 08:58 PM
Thank you. This looks very promising.

Jackdeth
01-16-2005, 02:12 AM
Most likely it is subdividing the object by screen space. The closer you are, the more polys it makes. Just adjust your displacement approxamations.

Chadrik
01-17-2005, 06:57 AM
the maximum displacement settings that finkster is referring to are not directly available in maya. you must add dynamic attributes in order to set it. there is a ui script at highend3d called mrDynamicAttrs that will help you set this up. you can find it here (http://http://www.highend3d.com/maya/mel/?section=rendering&sort=dt_modified+desc#3306)

hope that helps

chadrik

CGTalk Moderation
01-19-2006, 08:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.