RGB Vertex map Shader

   3514   8   2
User Avatar
Member
339 posts
Joined: June 2008
Offline
Please find attached a material with a Colour Shader that you can use to transfer Colour from Houdini Cd attribute to C4D.
How to use it:
The Layer shader has 5 Layers.
1. Gamma correction to 2.2 for correct colour
2. Red, Green and Blue channel
3. A black background

To apply the material correctly you need to do the following:
Copy the output generator that has the Cd attribute assigned to the points. Make it editable and you will see at least 3 vertex maps named:
pointColorR
pointColorG
pointColorB
these represent the 3 colour values for each point R, G & B.
Drag these Vertex maps on the Original (not editable) Output Generator.
Delete the editable copy.

Double-Click on each of the Colour layers and you will see a Colourizer with a gradient. Click on the White icon and you will see a Vertex Map shader.
Drag each Vertex map tag into the respective Slot in the shader.

Apply the material to the Output Generator.
Voila, you have colour.

p.s. I have included a C4D document with ONLY the Material, and a C4D project folder with the final scene.

Attachments:
coloured vertex maps.zip (131.8 KB)
RGB Vertex Map Shader.c4d.zip (16.7 KB)

User Avatar
Member
85 posts
Joined: June 2015
Offline
Is it still supposed to work with the newer versions this way?
Cannot get any vertex tag after hitting C.

Regards, Robert
Houdini, Cinema4D, 3Dcoat, Marvelous Designer
User Avatar
Member
339 posts
Joined: June 2008
Offline
if you have any attribute, including Cd you should get a vertex tag for each colour channel as I said earlier.

Just tried with R17.048 with the attached file and the Vertex maps are there.

Are you using your own Asset?
Please make sure the attribute is available on the Output object(s).
User Avatar
Member
85 posts
Joined: June 2015
Offline
Thanks a lot Noseman,

Just found out that I need to select both the green container ánd its content.
Lets see what happens if I set the Cd attribute to object instead of points.

Many thanks, Robert

PS…yes own asset.
Houdini, Cinema4D, 3Dcoat, Marvelous Designer
User Avatar
Member
339 posts
Joined: June 2008
Offline
Robert Glotzbach
Thanks a lot Noseman,

Just found out that I need to select both the green container ánd its content.
Lets see what happens if I set the Cd attribute to object instead of points.

Many thanks, Robert

PS…yes own asset.

Hey Robert.
The best way is to make a copy of the Blue generator, and make that editable.
If the Vertex maps are not showing, then there may be an issue with the way the asset was created.

Cheers
User Avatar
Member
85 posts
Joined: June 2015
Offline
Great, have it working now.
What would even be better is to assign the Cd attribute to a material in Houdini.
That way these extra steps would not be necessary and I would be able to see the colors without rendering, anyone?

Regards, Robert
Houdini, Cinema4D, 3Dcoat, Marvelous Designer
User Avatar
Member
339 posts
Joined: June 2008
Offline
Animated materials are not fully supported yet as the data interchange involved is much more complex than point attributes.
That said, you can look into the Spaceship asset and see how they change their colour.
Don't know if it will help in your case.

Cheers
User Avatar
Member
2 posts
Joined: April 2015
Offline
Hi there Gentlemen,
I am having trouble getting three vertex maps when I make my alembic (exported from Houdini) editable.
Initially the alembic has one vertex map when imported into C4D and stays as one when the abc is made editable.
Would love to hear any suggestions.

Thanks!
User Avatar
Member
339 posts
Joined: June 2008
Offline
can you please post a sample of the Alembic? Just a few frames would do.
  • Quick Links