Wrong displacement behavior

Hello !

I’ve recently discovered that, while getting a mesh, created with displacement map, for the first time, the API sees the mesh as before its transformation.

This also happens each time the assigned material is modified, e.g. one changes the matte value.

I’ve prepared a minimal scene. The process is quite simple :

  1. create a planar mesh into Oxy plan
  2. add displacement on it
  3. run the script many times, it compares the extrema of the bounding box on Z axis
  4. change the matte value, then repeat step 3

Here is my example scene & script :

displacement.zip (681.8 KB)

Best regards,

Guillaume

Hi @Guillaume_Chereau

After calling the RenderMeshes method check if the Incomplete flag is raised in the flags parameter. Here’s your script with this addition:
fixed_displacement.cs (2.0 KB)

I will fix our poor documentation on this procedure.

Let me know if you run into any issues

Thank you @Jussi_Aaltonen ! That’s very clear. I will try this.

RH-98467 is fixed in Rhino 8 Service Release 37 Release Candidate