VRayClipper Shadows Problem

Hi,

I have a strange thing with the VRayclipper and shadows.

When I place a simple VRayClipper (planar mode) the shadows between the top of building and the VRayClipper plan cut doesn’t appear over the ground.
In VRayClipper Mesh Mode (box mesh) it works.
The VrayClipper include only the building’s meshes (The building is a group of meshes).
If I attach all building’s meshes in single object it works.

Finally, i could use the Mesh Mode but unfortunately i use the VRayClipper in a maxscript.
When i create the VRayClipper and assign a mesh source for the mesh mode in maxscript, the VrayClipper do not use the Mesh.
As if the source mesh do not affected the VrayClipper, only the gizmo is correctly displayed.

My basic script:

clipper = VRayClipper()
clipper.enable_mesh_mode = on
clipper.mesh_source = $Sphere

comment: the source mesh is alway displayed and the Extract Mesh button is deactivated.
if I pick the source object manually in the created VRayClipper, Extract Mesh is now active and the VRayClipper works perfectly.

an idea about these problems ?
Thanks and sorry for my english skills.


Hello,

For the planar mode - you could use the “Affect lights” clipper option - it should give you lighting as if the clipper was not there.

As for the mesh mode and MaxScript assignment - this is a bug in the clipper that we have to fix. As a workaround you could set the “Replace mesh with clipper” (clipper.mesh_replaceOnPick=false) option to false - then it will work correctly and the original mesh location will determine the clip.

Best regards,
Yavor

Thanks Yavor,

“Affect Light” option solves a part of the shadows problem but unfortunately the render of the interior building is dark because VRayClipper cut the direct light.

For my render, the interior must receive the VRaysun’s direct light.
Also the shadow of my building is not consistent with the cutting height.

For the Maxscript it works, I use your tips pending the fix.

Best Regard,
Arnaud

Hm looking at the original problem image - there should be shadows under the car. Could you share part of the scene that still reproduces the problem ?

Best regards,
Yavor

Hi Yavor,

I’ve progress on the subject, When i change the geometry mode default to static on my car in V-Ray object properties’ menu, it work.
The geometry mode by default on the box work always.

I send the file’s link by PM

Best Regard,
Arnaud


Thank you for the scene - you are right about the geometry type. If the car and the building are different geometry types - the shadow is wrong.

I’ve logged this bug in our system and will write back here when it is fixed.

Best regards,
Yavor