Jump to content

Redshift - Mesh Light Inherit Cd


Recommended Posts

Hello!

I scattered some points, gave them random Cd, copied Spheres on points and made a Redshift Mesh light.

Now I wan't the mesh light to inherit the Cd from points into the light color.

So i will have a lot of diferent color lights.

Is it posible to do this?

I have been messing around without any good result, i have even tried the color from texture but nothing.

I am working in Houdini 16.5.378 + Redshift 2.5.65

Thanks guys!

Link to comment
Share on other sites

Here is an example scene.

Basically you need to set the attribute for the light_color instance.

v@light_color = set (rand(@ptnum),rand(@ptnum+801),rand(@ptnum-311));

Make sure to set the Light Instance OBJParms to use attribute shaders or you will get all white lights.

Untitled-1.jpg

ap_rs_instance_light_to_points.hiplc

Edited by Atom
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

I think you are right about the meshlight attribute support. The closest I can get is something like this...

Go ahead and use your emission material for selected primitives. Then instance a point light to the center of each of those primitives. Have the new center point inherit the normal and the color which gets passed along to the instance light using v@light_color. It is still a fake but you can get some material colors cast out into the volumetric scattering.

ap_rs_meshlight_windows_instance.hiplc

Untitled-1.jpg

Untitled-1.jpg

Edited by Atom
  • Like 3
Link to comment
Share on other sites

  • 1 year later...

I know this is old, but I found a way to get colour to the mesh light using cops.

 

Once you've uv'd the object you can bring in the point colours using the sop geo node in cops, then use this method I found in another post:

then you can import the cop network into the texture of the light mesh using the op: command. (op:/img/copsnetwork/OUT) - no parenthesis

 

K

  • Like 1
Link to comment
Share on other sites

  • 4 years later...

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