Announcement

Collapse
No announcement yet.

Getting VRayScene to obey material override in host file

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

  • Getting VRayScene to obey material override in host file

    Is it possible to apply material override in the host file when using VRayScene loader?

    No matter what I do the materials and/or override seem to come from the authoring file.

    From what I can make out unchecking 'export setting's on the exporter, or loading in 'geometry mode' should solve this, but neither seem to have the desired effect.

    test files are attached
    Attached Files

  • #2
    You can always use the VRayScene node's Scene overrides (snippet editor). To override all objects with a particular shader, which is already created in the host file, apply the shader to the VRayScene node and write this:
    Code:
    Node <*>{
    material=myShader;
    }​
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Thanks for that, I wondered if that was the way.

      Truth be told I'm not sure if my use of VrayScene is going to work. I was hoping to use it like a big scene container for buildings mostly made with railclone. Lights can come over from the authoring scene, and obviously textures, but I can't get the former to work currently.

      Importantly I need the render instancing to work from the original railclone objects as they're complex buildings and I think my scene will bog down without.


      Edit ignore the lights not working, I just had them turned off in the source file!
      Last edited by thomas_bussey; 03-05-2023, 09:08 AM.

      Comment


      • #4
        A few more issues with VRScene as an xref within a master scene:
        1. I can't get geometry only mode to work at all, it just gets as far as compiling scene geometry and then stops rendering
        2. Lights contained within the VRScene bump up the render time massively (more noticeable when the camera comes inside an interior with lots of instanced lights). Not a problem as such as I have just merged the lights in to the host file instead but it does suggest light instancing isn't working via the VRScene.

        Comment


        • #5
          Best you send the scene so we can take a look. VRayLights are always written separately, however, this should not affect render time.
          Aleksandar Hadzhiev | chaos.com
          Chaos Support Representative | contact us

          Comment

          Working...
          X