Announcement

Collapse
No announcement yet.

subd plugin issue

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

  • subd plugin issue

    This is a problem which has started with vray 3 and was working fine in vray 2.4

    Our geometry plugin either generates GeomDisplacedMesh or GeomStaticMesh plugins depending on parameters passed to it.

    When we create GeomStaticMesh everything renders fine, but when our plugin creates GeomDisplacedMesh plugins then the renders are un-displaced.

    .vrscene generated by maya:

    Code:
    MyGeoLoader planeShape@geometry1 {
      mesh_cache_file="//mypath/plane.cache";
      objectSetPath="";
      objectFilter="";
      prefixFilter="";
      assetFilter="";
      assetInstanceFilter="";
      cacheSetFilter="";
      objectSetFilter="";
      timeOffset=0;
      dispSubDNode=planeShape@displaced;
      lodPath="";
      lodLevel=0;
      prefFrame=-1;
    }
    
    GeomDisplacedMesh planeShape@displaced {
      mesh=planeShape@geometry1;
      displacement_tex_float=planeShape@displTexFloat;
    }
    
    
    Node planeShape@node {
      transform=TransformHex("E6B4F33F0000000000000000000000000000803F000000000000000000000000E6B4F33F000000004D2C7383087BEEBF000000000000000060F0B0A19A99BFBF");
      geometry=planeShape@geometry1;
      material=VRayMtl1@material;
      nsamples=1;
      visible=1;
      user_attributes="";
    }
    Note I export the displacement node so I can use all the vray4maya texture translation code and apply it to the geometry I create in my plugin.

    I get all expected plugins when I export them on frame end but for some reason the incorrect geometry is instanced.

    Code:
    GeomStaticMesh my_plugin0 {
    ....
    }
    
    GeomDisplacedMesh plg_GeomDisplacedMesh_0000 {
      mesh=my_plugin0;
      displacement_tex_float=planeShape@displTexFloat;
    }
    This looks like it was working by luck or relying on undefined behaviour in 2.4. As far as I can tell I'm creating the right plugin and they're instanced correctly.

    Using vray standalone the geometry is never displaced but rendering in process in maya the displacement works 25% of the time in a random fashion (like some initialised memory in my plugin)

    Cheers
    -Don

    Edit version info:

    3.05.04.nightly.24955


    [2014/Oct/22|12:30:56] ===============================================
    [2014/Oct/22|12:30:56] V-Ray Standalone, version 3.05.07 for x64
    [2014/Oct/22|12:30:56] Copyright (C) 2000-2014 Chaos Group Ltd. All rights reserved.
    [2014/Oct/22|12:30:56] Use -credits option for additional third-party copyright notices.
    [2014/Oct/22|12:30:56]
    [2014/Oct/22|12:30:56] Build 24955 from Sep 11 2014, 00:41:52
    [2014/Oct/22|12:30:56] Compiled with GCC-compatible compiler, version 4.4
    [2014/Oct/22|12:30:56] Operating system is Linux
    [2014/Oct/22|12:30:56]
    [2014/Oct/22|12:30:56] V-Ray core version is 3.05.07

  • #2
    I will need some way to reproduce this here; I can't think off the top of my head what would be the reason for the randomness. What would be the easiest way to repeat your results?

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

    Comment

    Working...
    X