Jump to content
Sign in to follow this  
macj89

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!

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
Share on other sites

Mesh light can inherent any attributes btw. Not yet. 

Share this post


Link to post
Share on other sites
Posted (edited)

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 1

Share this post


Link to post
Share on other sites

Aha, i was wondering why my mesh light wasnt inheriting the color using your previous example, so we have to hack and fake like usual hahahah

Thank you guys, i'll give a try.

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  

×