# Correct way to instance a VRay proxy?

**URL:** <https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932>\
**Category:** Issues\
**Created:** [October 11, 2019, 1:39pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932 "2019-10-11T13:39:39Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 11, 2019, 1:39pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/1 "2019-10-11T13:39:39Z")

</div>

Hi,

I’m looking to instance VRay proxies to a grain simulation, I’m also looking to render on VRay cloud so I need the vrscene to be as efficient as possible for upload.

The 450k points with velocity and pscale comes out at round 7mb for one frame.

With the VRay proxies packed and copied to the points, it balloons up to 200mb. So after a short frame range I’m over 15Gb+ which isn’t realistic for me to upload.

Is there a more efficient way to do this?

Thanks,  
David.

---

<div class="post-metadata">

**Author:** ![chakarov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/chakarov/32/29561_2.png) [@chakarov](https://forums.chaos.com/u/chakarov)\
**Post date:** [October 11, 2019, 3:45pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/2 "2019-10-11T15:45:33Z")

</div>

Hi @daviddeacon , did you try to turn on “Use Rayserver Instancer (WIP)” in V-Ray Object Properties? in my test scene it reduces the vrscene file size a lot. You can add those properties to your geo node from V-Ray shelf button.

 ![RayserverInstancer.png](https://europe1.discourse-cdn.com/chaosprd/original/3X/b/0/b03bb16da82ed68a5dec683dc5104363949f7198.png)

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 11, 2019, 4:24pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/3 "2019-10-11T16:24:41Z")

</div>

@chakarov I just tried it enabling it. I the file size did drop to 39Mb, I then tested the vrscene in VRay for Maya and got nothing. Then tried in houdini and also they didnt show up in the render…

---

<div class="post-metadata">

**Author:** ![Gosho.Genchev](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Gosho.Genchev](https://forums.chaos.com/u/Gosho.Genchev)\
**Post date:** [October 11, 2019, 6:11pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/4 "2019-10-11T18:11:10Z")

</div>

Hey there,

the viewport preview is indeed empty but the render should not be. Can you please check if this file ( [https://drive.google.com/file/d/1dH\_Jzj2jxEKpzQDaQoHW6YhO-AE0Ibg0/view?usp=sharing](https://drive.google.com/file/d/1dH%5C_Jzj2jxEKpzQDaQoHW6YhO-AE0Ibg0/view?usp=sharing) ) is working as expected for you ?

Cheers!

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 14, 2019, 7:38am UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/5 "2019-10-14T07:38:10Z")

</div>

Thanks,

Your setup seems very similar to mine. I did have an issue creating the proxy from Tommy crashes Houdini…

In my setup it’s not that it isn’t working, it’s just creating huge files and @chakarov 's suggestion doesn’t render ☹

---

<div class="post-metadata">

**Author:** ![chakarov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/chakarov/32/29561_2.png) [@chakarov](https://forums.chaos.com/u/chakarov)\
**Post date:** [October 14, 2019, 8:26am UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/6 "2019-10-14T08:26:31Z")

</div>

Hello again @daviddeacon , we currently have some bugs in vrproxy export, but devs are work to fix them. Can you send me a simple scene with your setup so I can check if the problem is in proxy export or something else.

---

<div class="post-metadata">

**Author:** ![bdancer](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bdancer/32/52257_2.png) [@bdancer](https://forums.chaos.com/u/bdancer)\
**Post date:** [October 14, 2019, 10:27am UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/7 "2019-10-14T10:27:54Z")

</div>

**[daviddeacon](https://forums.chaosgroup.com/member/243431-daviddeacon)**

\> I then tested the vrscene in VRay for Maya and got nothing.

Got nothing where? In viewport? In render? Were there any error messages in log?

\> Then tried in houdini and also they didnt show up in the render.

Like you exported vrscene from Houdini, then loaded in Maya with VRayScene, then exported again and then loaded back in Houdini?  
Was the alpha channel valid?

\> I did have an issue creating the proxy from Tommy crashes Houdini…

Have you tried exporting to Alembic?

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 14, 2019, 1:45pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/8 "2019-10-14T13:45:19Z")

</div>

@bdancer

Here is a link to my test scene.

> **[Dropbox](https://www.dropbox.com/s/t6eyptfkpdgkwbi/vrayGrainInstancer.zip?dl=0)**

Includes a point cache and a vrmesh instanced to the points.

This is written to a vrscene for rendering in side VRay for Maya and ultimately to be rendered on VRay cloud.

This renders as expected in VRay for Houdini.

Exporting just as points to a vrscene it comes in at 7mb, with the proxy instanced to the points it comes in at 200mb+.

I tested the ‘Rayserver Instancer’ suggested by @chakarov . With this enabled the instanced proxies don’t render in VRay for houdini.

When imported into VRay for Maya 4.04.03

I get no instanced proxies, and this in the log.

// Warning: line 1: V-Ray : Failed to create object of type “InfoRenderEngine” //  
// Warning: line 1: V-Ray : Unknown property “use\_direct\_velocity” in object “|obj|grid1|geo” //  
// Warning: line 1: V-Ray : Unknown property “use\_direct\_velocity” in object “|obj|instancer|packed|63A9E2EA” //  
// Warning: line 1: V-Ray : Failed to create object of type “GeomRayserverInstancer” //  
// Warning: line 1: V-Ray : Unknown property “use\_direct\_velocity” in object “|obj|instancer|geo” //

Testing the latest VRay Maya nightly 4.12.03 again I get no instanced proxies but a different log message.

// Error: line 1: V-Ray : Failed reading file “//”: “Error parsing scene” //

The idea is to have some close ups of animated sand, Pixar’s short piper is the inspiration for the technique. Having this work efficiently is probably going to be make or break for rendering it on vray cloud.

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![chakarov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/chakarov/32/29561_2.png) [@chakarov](https://forums.chaos.com/u/chakarov)\
**Post date:** [October 14, 2019, 2:18pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/9 "2019-10-14T14:18:06Z")

</div>

Just tested the provided scene and this is what I got in Houdini and V-Ray Cloud. The only thing I’ve changed is camera position and @pscale = .01, so I be able to see the proxies. Is this what you trying to achieve?

 ![render.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/e/9e198bd6902732062d9d0080cb78b07badb37992.jpeg)

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 14, 2019, 2:32pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/10 "2019-10-14T14:32:58Z")

</div>

Is that with the ‘Rayserver Instancer’ enabled?

My only problem is the current x28 file size increase in using instanced proxies over rendering points. As when I scale to a production asset and multiple frames the caches will take longer to upload than render locally.

---

<div class="post-metadata">

**Author:** ![bdancer](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bdancer/32/52257_2.png) [@bdancer](https://forums.chaos.com/u/bdancer)\
**Post date:** [October 14, 2019, 2:35pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/11 "2019-10-14T14:35:28Z")

</div>

\> When imported into VRay for Maya 4.04.03

You \*have\* to use compatible V-Ray Core version. In our case you have to use some recent V-Ray for Maya 4.12 stable build.

\> Testing the latest VRay Maya nightly 4.12.03 again I get no instanced proxies but a different log message.

// Error: line 1: V-Ray : Failed reading file “//”: “Error parsing scene” //

How have you tested this? This looks like a Maya message. Have u loaded exported vrscene with VRayScene node or?  
This error may only appear if file is corrupted somehow.

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 14, 2019, 2:37pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/12 "2019-10-14T14:37:48Z")

</div>

Shouldn’t it would in Houdini in VRay for Houdini first, I’m currently on the 30 day trial could that be old code?

---

<div class="post-metadata">

**Author:** ![bdancer](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bdancer/32/52257_2.png) [@bdancer](https://forums.chaos.com/u/bdancer)\
**Post date:** [October 14, 2019, 2:46pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/13 "2019-10-14T14:46:36Z")

</div>

**[daviddeacon](https://forums.chaosgroup.com/member/243431-daviddeacon)**, do you have access to nightly builds? You should have access to stable nightlies at least. Try a build from here: [Chaos](https://nightlies.chaosgroup.com/main#/vray4houdini/stable/4.12)

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 14, 2019, 3:12pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/14 "2019-10-14T15:12:15Z")

</div>

Okay some progress, after upgrading to the latest stable nightly. I get instanced proxies with Rayserver Instancer enabled when rendering in VRay for Houdini, they don’t appear in IPR. The exported vrscene loaded into VRay Maya nightly 4.12.03, works also again just not in IPR.

---

<div class="post-metadata">

**Author:** ![bdancer](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bdancer/32/52257_2.png) [@bdancer](https://forums.chaos.com/u/bdancer)\
**Post date:** [October 14, 2019, 3:19pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/15 "2019-10-14T15:19:10Z")

</div>

\> they don’t appear in IPR.

Same scene? Works fine for me.

\> works also again just not in IPR.

VRayScene in Maya do not support IPR updates, but I don’t see any reasons why they should not render.

---

<div class="post-metadata">

**Author:** ![daviddeacon](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/daviddeacon/32/67983_2.png) [@daviddeacon](https://forums.chaos.com/u/daviddeacon)\
**Post date:** [October 14, 2019, 3:28pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/16 "2019-10-14T15:28:24Z")

</div>

Yeah same houdini scene, for me IPR works with Rayserver Instancer off but not on. So as a work around it’s fine just to enable it before writing the vrscene for sending to Maya.

Just out of interest, has the back end code been changing on how instances are handled? I seen instancer2 mentioned in some of the change logs.

---

<div class="post-metadata">

**Author:** ![bdancer](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bdancer/32/52257_2.png) [@bdancer](https://forums.chaos.com/u/bdancer)\
**Post date:** [October 14, 2019, 4:13pm UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/17 "2019-10-14T16:13:12Z")

</div>

That’s really weird, I’ll try to reproduce it here.

\> Just out of interest, has the back end code been changing on how instances are handled?

Instancer2 is used by default. “Rayserver Instancer” enables GeomRayserverInstancer plugin as instancing back-end.

---

<div class="post-metadata">

**Author:** ![woytha](https://avatars.discourse-cdn.com/v4/letter/w/a6a055/32.png) [@woytha](https://forums.chaos.com/u/woytha)\
**Post date:** [February 26, 2021, 10:47am UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/18 "2021-02-26T10:47:49Z")

</div>

…And is it possible to use “Instance” context? When I try to use that nothing will render…  
EDIT: Well, it is I just did not read the reference thoroughly.

---

<div class="post-metadata">

**Author:** ![woytha](https://avatars.discourse-cdn.com/v4/letter/w/a6a055/32.png) [@woytha](https://forums.chaos.com/u/woytha)\
**Post date:** [February 26, 2021, 11:02am UTC](https://forums.chaos.com/t/correct-way-to-instance-a-vray-proxy/95932/19 "2021-02-26T11:02:26Z")

</div>

Well, “Rayserver Instancer” did the job for the rendering issue 🙂 Now, render is quick as hell. Sorry, I skimmed through this thread too quickly.  
However, the issues with exporting VrayProxy still persists…
