Announcement

Collapse
No announcement yet.

size of vray scene File is very high with scattered proxys or packed primitives

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

  • size of vray scene File is very high with scattered proxys or packed primitives

    I am scattering a lot of objects to points and saving them to a vrayscene for rendering. Unfortunately the vray scene is getting very big with millions of points.

    I tryed to avoid that by scattering packed geometry. I used the instancer object and copied vray proxys. I also tried it with scattering alembic files. No luck. When I raise the template points to a million or so the size of the vray scene is getting disproportionate high. As I am scattering only one single object I expect the vrscene to stay smaller even if I raise up the template points.

    Am I missing something? Should I do that any different? Scene File is attached.

    Jon
    Attached Files

  • #2
    > As I am scattering only one single object I expect the vrscene to stay smaller even if I raise up the template points.

    vrscene is just a text file and unfortunately Instancer2 instances parameter is pretty long like:
    "List(0, TransformHex(""), TransformHex(""), 0, 1, 32, |data|mtl|clay, |obj|copy_to_points_test|geo|obj|copy_to_points_te st|packed|9071B0BF|node|rayserver_instances|node)"
    per-instance.

    You could try rayserver instancer (CPU only), it's instance description format is more efficient then the Instancer2 plugin and it'll take much less space.
    V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
    andrei.izrantcev@chaos.com
    Support Request

    Comment


    • #3
      Originally posted by Jon3D View Post
      I am scattering a lot of objects to points and saving them to a vrayscene for rendering. Unfortunately the vray scene is getting very big with millions of points.

      I tryed to avoid that by scattering packed geometry. I used the instancer object and copied vray proxys. I also tried it with scattering alembic files. No luck. When I raise the template points to a million or so the size of the vray scene is getting disproportionate high. As I am scattering only one single object I expect the vrscene to stay smaller even if I raise up the template points.

      Am I missing something? Should I do that any different? Scene File is attached.

      Jon
      Hi,

      Unfortunately, that's a limitation currently. There is no way to have the points packed in the vrscene, and the instancing to happen after unpacking, before the render. The only thing you can do to reduce the size is to save the instanced geometry to a vrscene, and reference that in next renders. But can't really override shaders per alembic etc - you gotta reexport the vrscene if you want to do that. Would be great if there is a mechanism to solve this - Mantra has a delayed load geometry shader, for example, that does instancing at the shader level, and Arnold has the operators, which are operations run after loading the scene, before rendering.

      Thanks
      Hristo Velev
      MD/FX Lead, Bottleship VFX
      Sofia, Bulgaria

      Comment


      • #4
        Thank you both.

        bdancer I will give it a try with with rayserver. Thank you for the hint. Do I understand that correct that the filesize wouldn´t even be bigger if the geometry would be more complex. The current size is just because of the long instancer paramter?

        glacierise saving out the instanced geometry to a vray scene is a good idea, thank you.

        A mechanism to solve that would really be useful for the future.

        Comment


        • #5
          Open up the vrscene file and check out the contents, it's educational The alembic that's to be instanced is only featured with the pointer to the file location, but other data about the instance like transforms, shader, etc, are saved per point.
          Hristo Velev
          MD/FX Lead, Bottleship VFX
          Sofia, Bulgaria

          Comment


          • #6
            Referencing the vray scene is not so easy in my case. I forgot that I do have changing points for each frame so I wouldn´t have a file size benefit in the end I think.

            Using the rayserver instancer reduces the file size of the vray scene from 700 MB to 90 MB. Also the creation time of the vrscene reduced a lot. The render time has more than doubled though.

            Comment


            • #7
              > The current size is just because of the long instancer paramter?

              Yes.

              > The render time has more than doubled though.

              Probably you have inner packed primitives (like packed instanced with some copy to points and then those whole part is instanced again); that's the current limitation I still haven't solved...
              If this happens with single level of instancing I'd like to check the scene if possible.
              V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
              andrei.izrantcev@chaos.com
              Support Request

              Comment


              • #8
                I do not have inner packed primitives. I will try to create an example scene for you.

                Comment


                • #9
                  Hey bdancer I did send you a downloadlink for the scene. I tried it again and it did render 10 minutes with rayserver and 6 minutes without. No inner packed primitives. I did not include the vrscene in the downloadlink cause of the size. You can create them by just rendering the two rops they are set up accordingly.

                  Thank you.

                  Comment


                  • #10
                    I still haven't received any emails from you, could pls resend the setup?
                    V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
                    andrei.izrantcev@chaos.com
                    Support Request

                    Comment


                    • #11
                      Should be faster in the recent nightlies.
                      V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
                      andrei.izrantcev@chaos.com
                      Support Request

                      Comment


                      • #12
                        I will try. Thank you very much!

                        Comment


                        • #13
                          Hey bdancer render time with rayserver went from 10 minutes to 1:40 seconds. Pretty cool!!

                          Comment

                          Working...
                          X