Announcement

Collapse
No announcement yet.

VRayClipper Shadows Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

    Click image for larger version

Name:	VRayClipper_Pb.jpg
Views:	1
Size:	67.1 KB
ID:	884986

    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

    Click image for larger version

Name:	Screenshot.jpg
Views:	1
Size:	221.8 KB
ID:	884987

    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.
    Last edited by ASYLUM_FR; 19-07-2016, 02:38 AM.

  • #2
    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
    Yavor Rubenov
    V-Ray for 3ds Max developer

    Comment


    • #3
      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.

      Click image for larger version

Name:	Affect_Light.jpg
Views:	1
Size:	39.5 KB
ID:	862707

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

      Best Regard,
      Arnaud

      Comment


      • #4
        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
        Yavor Rubenov
        V-Ray for 3ds Max developer

        Comment


        • #5
          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

          Click image for larger version

Name:	SD_GeometryMode.jpg
Views:	1
Size:	135.4 KB
ID:	862768

          Click image for larger version

Name:	SD_GeometryMode_Dialogu.jpg
Views:	1
Size:	170.1 KB
ID:	862769

          Comment


          • #6
            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
            Yavor Rubenov
            V-Ray for 3ds Max developer

            Comment

            Working...
            X