Jump to content

simport?


brianburke

Recommended Posts

Hey guys, wondering if anyone could help me out with some strange troubles i'm having with simple message passing to a fog shadur.

I'm exporting a color 'clr' from my surface shader and trying to read it in with

vector outclr;
string var = "clr";
int win = simport(var, outclr);

I'm getting what looks like uninitialized variable errors.

Any help would be supercool. This seems way basic and I'm missing something simple.

Link to comment
Share on other sites

Hey Brian, this is above my league but I played around with it and got "something". I don't know if that helps you.

Parameter and input was different type in the export shader. Fog was not displayed. I entered the simport string manually. Oh and I also changed your mantra node to a default one. (You have 240 cores!)

post-4013-129204788078_thumb.jpg

simportme.hipnc

Edited by Macha
Link to comment
Share on other sites

  • 3 weeks later...

heard back from sesi on this one. seems like the vex compiler was optimizing out the export variable because it does not check to see if the variable is queried in the fog shader (in the way that it checks to see if an export variable is queried in the output as an aov). the workaround is pretty simple, and that is to declare the export variable as an aov in the mantra rop.

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...