macj89 Posted April 20, 2018 Share Posted April 20, 2018 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! Quote Link to comment Share on other sites More sharing options...
Atom Posted April 20, 2018 Share Posted April 20, 2018 (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. ap_rs_instance_light_to_points.hiplc Edited April 20, 2018 by Atom 1 1 Quote Link to comment Share on other sites More sharing options...
Sepu Posted April 20, 2018 Share Posted April 20, 2018 Mesh light can inherent any attributes btw. Not yet. Quote Link to comment Share on other sites More sharing options...
Atom Posted April 20, 2018 Share Posted April 20, 2018 (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 Edited April 20, 2018 by Atom 3 Quote Link to comment Share on other sites More sharing options...
macj89 Posted April 23, 2018 Author Share Posted April 23, 2018 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. Quote Link to comment Share on other sites More sharing options...
kevidahevi Posted March 3, 2020 Share Posted March 3, 2020 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 1 Quote Link to comment Share on other sites More sharing options...
JavierVerdugo Posted July 10 Share Posted July 10 Hello, I wonder if now in 2024 is there a better workaround, so we can inherit properly Cd attribute in a Mesh light, rather than fake point lights. Anyone know? Thanks Quote Link to comment Share on other sites More sharing options...
Sepu Posted July 10 Share Posted July 10 No still the same. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.