Jump to content

Filename Parameter To A Sprite Shop, Possible ?


chang

Recommended Posts

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 :lol:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 10 months later...
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

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