Announcement

Collapse
No announcement yet.

xGen se-expr problem

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

  • xGen se-expr problem

    Hi,

    I did some testing with xGen Archives and used the distance driven level of detail function. I took the standard se-expr that comes with xGen in the LOD slot:

    $lowDistance=30.0000;#0.0,50.0
    $mediumDistance=10.0000;#0.0,50.0
    d=length(cam-P);
    ret=0;
    if( d>$lowDistance ){ret=2;}
    else if( d>$mediumDistance ){ret=1;}
    ret

    This expression picks a certain level of detail based on the distance to the render cam. To get the position of the render cam it uses the command "cam". This works very well in the viewport and is updating correctly as you move the render cam, but when you render it with VRay it doesn't work. Instead of using the camera position it uses the coordinates [0.0, 0.0, 0.0], no matter where the render cam is placed.
    It looks like VRay isn't able to interpret the "cam" command. Or is it something I'm doing wrong?

    Cheers!
    Oliver Kling

  • #2
    There is no easy way to get the result of this expression into V-Ray and that is why we always render the high detail archive.
    The same is true for Mentalray - they also ignore LOD in rendering.
    LOD seems most useful for the viewport...
    V-Ray for Maya developer

    Comment


    • #3
      Ok, makes sense... it also looks like my renderings are not tremendously benefitting from the use of LOD's.

      Thanks for your reply!

      Comment


      • #4
        is there a way to get an seexpresion noise into a vray shader..?

        Comment


        • #5
          You mean unrelated to X-Gen?

          Best regards,
          Vlado
          I only act like I know everything, Rogers.

          Comment


          • #6
            yes... just to use the noise features for shader creation...

            Comment


            • #7
              Nope. However you can write an OSL or a GLSL shader.

              Best regards,
              Vlado
              I only act like I know everything, Rogers.

              Comment

              Working...
              X