Jump to content

to write VOP network out to disk


Recommended Posts

hi all!

i'm having problems with ginormous .ifd's due to them each contain the unchanging VOP shader network...

is it possible to write the VOP network out to file and have the ifd's reference that instead of embedding the VOP network?

kinda like the delayed read ...

having a material in the SHOP network, you can R-click > compile to DA

alas you have to include that otl in the hip again and thus into the ifd ...

thank-you for your comments... :lol:

f_lastDropm_979478a.jpg

...waiting for renders...

Edited by _suz_
Link to comment
Share on other sites

  • 1 month later...

the above problem is illustrated in the attached .hip.

is u assign a material as is to your geometry - your IFDs, for each frame, will write the *whole entire unchanging* SHOP into each IFD.

in the attached .hip this is an odd 2500 lines per IFD :o

solution...thank-u sidefx support:

jump into the material, Rclick on surface and displacement VOPs, independently, and choose "compile VEX code to SHOP Type" and call it what u like, but so u'll remeber what u called it... ;)

your SHOP Types now appear in the TAB menu, put them both down, select them and <SHIFT>+C to put them into a material,

remember-remember to add a *properties* OP in your material that has the displacement bound parameter

and to Rclick on the new material and select "Promote Material Parameters"

now assign the new material to your geometry...tada!

now u'r ifd will only contain a reference to the compiled vex on disk (and your changed parameters)

the IFD is now 70 lines lines

WAAHOO :thumbsup:

write_SHOP_to__disk.hip

my_basic_surface.otl

my_simple_displace.otl

Edited by _suz_
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...