brianburke Posted December 10, 2010 Share Posted December 10, 2010 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. Quote Link to comment Share on other sites More sharing options...
brianburke Posted December 10, 2010 Author Share Posted December 10, 2010 oh yea, here's my file simport_test.hip Quote Link to comment Share on other sites More sharing options...
Macha Posted December 11, 2010 Share Posted December 11, 2010 (edited) 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!) simportme.hipnc Edited December 11, 2010 by Macha Quote Link to comment Share on other sites More sharing options...
brianburke Posted December 13, 2010 Author Share Posted December 13, 2010 hi macha, thanks for checking it out, but it seems like you're getting the same 'uninitialized variable' looking results I was getting. probs hitting up support tomorrow to see if they know what's up, i'll post any info i get thanks dude Quote Link to comment Share on other sites More sharing options...
brianburke Posted December 31, 2010 Author Share Posted December 31, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.