brooklynz Posted June 9, 2008 Share Posted June 9, 2008 I am successfully getting Point instancing to work, using the instance POP and turning on the "Point Instancing" toggle on the object. I have a test grid of particles with random instance objects. Where I'm stuck is getting other attributes to be seen by the shader. I added a integer point attribute to my pop network called rcolor. The value of rcolor is int(rand($ID)*3). I have a simple shader that uses rcolor as in input to the switch VOP so that diffuse will be one of 3 constant colors. Even though the each point has a random rcolor attribute value of 0,1, or 2 ( I can see them in the spreadsheet ), the point instanced object renders only in rcolor 0, the default value. If I change the default value of the parameter, it renders in that color. "Use input if not bound" is definitely checked. It seems the shader just can't see the rcolor attribute set in the POP network. I tried applying the shader at the object level and with material nodes on both the object with POP network and on the objects that are being instanced as well, no joy. I'm sure this is something that can be done and I am missing a step somewhere. Thanks in advance for any help! Quote Link to comment Share on other sites More sharing options...
aracid Posted June 10, 2008 Share Posted June 10, 2008 hey man i didn't try exactly what u did, but the concept is universal. so what u need to do when sending data from ur POP object to your shader: under the material sop - tick - "override local variables", make sure the attribute ur overriding is set to "points" specify the parameter ur exporting from sops is included there and that the values have been declared ie $CR $CG $CB etc this is where u substitute ur own values or parameters, i also used a super material CHOP to test this, so i needed to use my Cd in the diff parameter. I also tested it using the instancing parameter at geo level and it seemed fine. hope this helps Quote Link to comment Share on other sites More sharing options...
GallenWolf Posted June 10, 2008 Share Posted June 10, 2008 try this.... 1.hip 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.