Jump to content
Sign in to follow this  
Stephen

using instancefile with redshift?

Recommended Posts

Im just getting into redshift and I have been googling around try to figure out if using the instancefile att is possible. I would like to instance files off disk so that I can have control over the frame of the cache that I'm instancing.

 

I set up this simple test scene so feel free to take a look and point out what I have missed.

 

Thanks,

Stephen

rs_instance.hip

Share this post


Link to post
Share on other sites

solved... Just had to export the .rs proxy file from Redshift ROP > Archive tab. Now instancefile is working is working.  Would be great if that was broken out like the Geometry ROP.

Share this post


Link to post
Share on other sites

Thanks for the follow up. Can you explain a bit more how to achieve this using your example file?

I have written your box object to disk $TEMP/box.$F4.bgeo.

Then I go to the out context, under the Archive tab on the Redshift ROP, and enable Export .rs Proxy.

$HIP/filename.$F4.rs

 

When I render the scene is blank.

Are there any other adjustments I need to make to see this feature work?

 

Edited by Atom

Share this post


Link to post
Share on other sites

Hey Atom, 
This is the same scene. Just make sure that in the ROP when you are doing the proxy (.rs file) you have just the Box in the force obj. 

instance.zip

Share this post


Link to post
Share on other sites

Hi Atom,

I attached the solve. Unfotunatly .bgeo is not supported when using instancefile. @Sepu fix works as well. The .rs file takes the place of the .bgeo

The key is in the OUT context. In the file attached I have separated out the steps. It seems like redshift has combine the rop for rendering and exporting their (proxy)geometry. So set up one rop to cache out the .rs file/s and another rop to render the image.

I attempted to cache the .rs file with a ROP Output Driver but it did not work. There must be some magic behind the Redshift ROP.

rs_instance_v002.hip

Edited by Stephen

Share this post


Link to post
Share on other sites

Valid point.  Just submitted and got accepted an RFE to expose RS Proxy creation on the Geometry ROP.  This will make it alot easier to control whats in the Proxy as well ( right now you have to use Bundles on the Render ROP )

There are several other features ahead of this one (such as Stylesheet support), but at least its on the TODO list.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for the example files, I got it working. I did find that to see the instances in the viewport I have to use both options, @instance and @instancefile.

Does this mean Redshift is rendering 2 object on top of one another?

 

Here is what I ended up with inside the Instance node in the final wrangle.

s@instance = "/obj/cache_me_first";
s@instancefile = "$HIP/box.0001.rs";

 

Edited by Atom

Share this post


Link to post
Share on other sites
13 hours ago, Daryl Dunlap said:

Valid point.  Just submitted and got accepted an RFE to expose RS Proxy creation on the Geometry ROP.  This will make it alot easier to control whats in the Proxy as well ( right now you have to use Bundles on the Render ROP )

There are several other features ahead of this one (such as Stylesheet support), but at least its on the TODO list.

Thats great! I need to start postings over at redshift.

 

@atom I just did a really quick test and it looks like the instancefile attribute takes priority over the instance attribute. So you shouldn't be getting duplicates.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×