Announcement

Collapse
No announcement yet.

bake with vray distributed

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

  • bake with vray distributed

    Hi,

    I can't get the v-ray baking options to work distributed.

    VRAY_VRSCENE_LOCATION=O:/99_Temp/vrayTemp

    is set and the render global options baker works distributed.

    Transfer missing assets also doesn't solve that the slaves won't find the temp.vrscene via the lighting/shading baker.

    Any help would be nice!

    Cheers

    Rico

  • #2
    Unfortunately, the bake options don't work with distributed rendering. Only the texture baking options from the render settings > baking engine will work. It's on our to do list to improve things in this regards, but it's hard to tell when exactly we'll be able to look into this.
    Alex Yolov
    Product Manager
    V-Ray for Maya, Chaos Player
    www.chaos.com

    Comment


    • #3
      Thanks Alex,

      for the meantime ... not nice but helps a lot:

      string $UDIM[3] = {"38", "48", "58", "68"};

      for($node in $UDIM)
      {
      // get U values
      string $uValue = `substring $node 2 2` + "\n";
      // set minU
      int $minU = (int)$uValue - 1;
      setAttr "vraySettings.uv_min0" $minU;
      //set maxU
      int $maxU = (int)$uValue;
      setAttr "vraySettings.uv_max0" $maxU;

      // get V values
      string $vValue = `substring $node 1 1` + "\n";
      // set minV
      int $minV = (int)$vValue;
      setAttr "vraySettings.uv_min1" $minV;
      // set maxV
      int $maxV = (int)$vValue + 1;
      setAttr "vraySettings.uv_max1" $maxV;

      //assign CRV shader
      select -r MDL:full_grp1 ;
      sets -e -forceElement VRayMtl3SG;
      // set render image name
      setAttr -type "string" vraySettings.fileNamePrefix ("drakkar_halvar_original_CRV_10" + $node);

      print("RENDERING CRV UDIM " + $node + "\n");
      RedoPreviousRender;

      //assign AMB shader
      select -r MDL:full_grp1 ;
      sets -e -forceElement VRayLightMtl1SG;
      // set render image name
      setAttr -type "string" vraySettings.fileNamePrefix ("drakkar_halvar_original_AMB_10" + $node);

      print("RENDERING AMB UDIM " + $node + "\n");
      RedoPreviousRender;
      }

      Cheers

      Rico

      Comment

      Working...
      X