Announcement

Collapse
No announcement yet.

USD with visibility key on Mesh?

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

  • USD with visibility key on Mesh?

    Hey,
    I am having trouble to render a USD file, containing a mesh with visibility key, in Vray Maya.
    The USD file works on VRAY houdini, Maya arnold. It's just not working in VRay Maya.
    Is this a limitation of VRay Maya USD?

    I am testing with V-Ray 6 for Maya(v6.00.03 from Dec 6 2022), hotfix 1, Maya 2023.3


    Can't upload usda file here, so I just paste my simple USDA content here, if any one want to try it out.
    Code:
    #usda 1.0
    (
    defaultPrim = "pCube1"
    endTimeCode = 2
    framesPerSecond = 24
    metersPerUnit = 0.01
    startTimeCode = 1
    timeCodesPerSecond = 24
    upAxis = "Y"
    )
    
    def Xform "pCube1" (
    kind = "component"
    )
    {
    token visibility.timeSamples = {
    1: "inherited",
    2: "invisible",
    }
    
    def Mesh "pCubeShape1" (
    prepend apiSchemas = ["MaterialBindingAPI"]
    )
    {
    uniform bool doubleSided = 1
    float3[] extent = [(-0.5, -0.5, -0.5), (0.5, 0.5, 0.5)]
    int[] faceVertexCounts = [4, 4, 4, 4, 4, 4]
    int[] faceVertexIndices = [0, 1, 3, 2, 2, 3, 5, 4, 4, 5, 7, 6, 6, 7, 1, 0, 1, 7, 5, 3, 6, 0, 2, 4]
    rel material:binding = </pCube1/mtl/initialShadingGroup>
    point3f[] points = [(-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (-0.5, 0.5, 0.5), (0.5, 0.5, 0.5), (-0.5, 0.5, -0.5), (0.5, 0.5, -0.5), (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5)]
    texCoord2f[] primvars:st = [(0.375, 0), (0.625, 0), (0.375, 0.25), (0.625, 0.25), (0.375, 0.5), (0.625, 0.5), (0.375, 0.75), (0.625, 0.75), (0.375, 1), (0.625, 1), (0.875, 0), (0.875, 0.25), (0.125, 0), (0.125, 0.25)] (
    customData = {
    dictionary Maya = {
    token name = "map1"
    }
    }
    interpolation = "faceVarying"
    )
    int[] primvars:st:indices = [0, 1, 3, 2, 2, 3, 5, 4, 4, 5, 7, 6, 6, 7, 9, 8, 1, 10, 11, 3, 12, 0, 2, 13]
    }
    
    def Scope "mtl"
    {
    def Material "initialShadingGroup"
    {
    }
    }
    }
    ​

    ​

  • #2
    Hello han_ho,

    Can you please give us a bit more information about which visibility you are aiming to export (the one from the 'Display' drop menu of the mesh, the 'Object Display' menu, or it is another) ?
    Also are exporting via MEL or via File > Export All../Export Selection... options in Maya?
    If possible also can you please send us a scene here or to our support team so we can have further look into the problem?

    Kind Regards,
    Dimitrina Milanova

    Comment


    • #3
      Hey Dimitrina,

      It's just a visibility key on object's transform. I'd tried export USD from Houdini and Maya, I use Export Selection... options in Maya.

      Click image for larger version

Name:	screenCapture04282023.png
Views:	180
Size:	62.2 KB
ID:	1179348

      If I load the usd file with visibility keys into maya, I can see the visibility works on viewport, just not working while rendering with VRay.
      Can't not send you a file here because Upload Attachments only allow image file for some reason??
      I can definitely send a usd file to the support team, Where I can upload my file?

      Best,

      Han Ho
      Last edited by han_ho; 27-04-2023, 09:51 PM.

      Comment


      • #4
        Here is the file - Arnold works Vray does not

        Attached Files

        Comment


        • #5
          Wow, just realize upload attachments only takes image file or zip. I was trying to upload 7z file format and failed.
          But here it is, a simple usda file that has visibility key on frame1(on) , frame5(off), and frame10(on)

          simple_cube_vis_frame_hide_on_frame5.zip

          Best,

          Han Ho

          Comment


          • #6
            Hello han_ho,

            I have looked further into the problem and our developers logged an issue into out system.
            Here is the issue tracker ID: (VMAYA-12112).

            Thank you for reporting this problem.

            Kind Regards,
            Dimitrina

            Comment


            • #7

              Hey Dimitrina,
              Sorry for this super late reply.
              We almost finish a project using USD with Vray 6.00.03, and I have to say, visibility key is a must have in USD workflow. We ends up having tons of expressions and usd files, so we can add visibility keys in Maya.
              Is there a place I can track the progress of this issue tracker ID: (VMAYA-12112)?

              Best,

              Han​

              ​

              Comment

              Working...
              X