Jump to content
Sign in to follow this  
anbt

How to set a specific color on an attribute or group

Recommended Posts

Hello,

I am just starting with Redshift within Houdini and I have gone through the basics.
I have a sim that I exported as an alembic and I used the unpackSOP to recover my point attributes and prim groups, all on the same mesh.

How would I go about applying a different colour or texture on those groups.
How can I use the point attribute to drive a particular color?

Thanks a lot

Share this post


Link to post
Share on other sites

The material SOP allows you to apply different materials to different groups.
The user_color_data or point_Attribute allows you to use attributes to materials such as Cd, etc. 

houdini_8tlKAhOUHo.png

houdini_z7EKkLzrNC.png

Share this post


Link to post
Share on other sites

hey @Sepu, any idea what is wrong in here?
I applied a material per group after unpacking. But the render view is completely blank. It isn't coming from the light.

Cheers

image.thumb.png.8e9817439571880651a9c18f36c791c2.png

and this is how the alembic was done, maybe I've done something wrong in here

image.png.58750338ceab1ee03abd0d7a2870655c.png

Edited by anbt

Share this post


Link to post
Share on other sites

Not sure from where is your problem coming, but is it a specific reason for which you are passing by an alembic and not only a .bgeo.sc cache that you merge in your other network or import in your other project?

Share this post


Link to post
Share on other sites

@anbt I am not expert neither but from what i understand, the alembic play smoother because it's packed geometry, but you could pack your scene before a file cache too. I always thought alembic was primarily useful for data exchange between different DCC.

Maybe i am wrong here and there is some optimisation of ABC files over standard packed file cache, would be interesting to have other inputs on this.

Share this post


Link to post
Share on other sites

now it is working, no idea why. I didn't change anything from the screenshot above....
I did restart Houdini half an Hour ago but idk, weeiiiirrdd!

I finally know about putting a different texture on each group, now I will try figuring out how to apply a texture controlled by an attribute.
I have this stress float attribute that I want to colourise, a bit like you can visualise it in the DOPnet or Vellum Solver..
Will start by checking out what Sepu posted with this "user_color_data or point_Attribute"

Edited by anbt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×