chang Posted April 28, 2005 Share Posted April 28, 2005 I guess I can't assign a "string-typed" attribute to a pop. What i want to do is assign different image (by frame number, or by rand(id)) to sprite shader. so i wish i can pass file-name-parameter to sprite shader like this, ( filename a`padzero(3, $F)`.tga ) Is there any way that I can do this in pop? ------- If that can't be an option, can i assign sprite shop on sop like i do point instancing with attributeCreate sop? Thanks in advance Quote Link to comment Share on other sites More sharing options...
edward Posted April 28, 2005 Share Posted April 28, 2005 Maybe you can modify your SHOP accordingly? Create a float attribute that indexes into an array of texture maps that gets used by your SHOP. In theory, the Sprite POP only modifies attributes I think so it should be doable manually as well. Note that the Attribute POP is almost the same as the AttribCreate SOP. Quote Link to comment Share on other sites More sharing options...
chang Posted April 29, 2005 Author Share Posted April 29, 2005 Maybe you can modify your SHOP accordingly? Thanks Edward, i'll try that. Quote Link to comment Share on other sites More sharing options...
MrBag Posted March 27, 2006 Share Posted March 27, 2006 Thanks Edward, i'll try that. 17891[/snapback] Just ran accross this same problem today. Peter Bowmar's tutorial is really good about explaining this exact problem. Basically it comes down to using the sprite procedural and exporting the attributes to the procedural, in this case "map_base" is the most likely attribute missing. Here is a link to tutorial: http://sidefx.vislab.usyd.edu.au/houdini_v...ects/index.html Check out Sprite Stamping Part 1 Thanks, Nathan 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.