Jump to content

Point Instancing Lights + Point Attributes For Shaders


Vormav

Recommended Posts

Hey. I'm currently using point instancing on a light to have multiple lights created by a particle system. This works great. Takes a bit of tweaking, but it works. The only problem is, I need to be able to vary the light colors according to colors derived from the particles as well.

I tried copying over my color attributes into a new attribute corresponding to the light color parameter from my light shader - "vex point light" to be specific. So, that's the following attributes: lightcolor1, lightcolor2 and lightcolor3.

No good. I also tried creating my own custom light shader through vops, just to set a specific parameter name to make sure I wasn't screwing that part of it up. Still no good.

So, is this just not doable in Mantra at this point, or am I missing something? Obviously I can just group my particles into separate groups according to color, merge those into different objects, and create multiple point-instanced light sets from those separate objects. But it'd certainly be nice if I didn't have to do that.

Thanks

Link to comment
Share on other sites

Hey. I'm currently using point instancing on a light to have multiple lights created by a particle system. This works great. Takes a bit of tweaking, but it works. The only problem is, I need to be able to vary the light colors according to colors derived from the particles as well.

I tried copying over my color attributes into a new attribute corresponding to the light color parameter from my light shader - "vex point light" to be specific. So, that's the following attributes: lightcolor1, lightcolor2 and lightcolor3.

No good. I also tried creating my own custom light shader through vops, just to set a specific parameter name to make sure I wasn't screwing that part of it up. Still no good.

So, is this just not doable in Mantra at this point, or am I missing something? Obviously I can just group my particles into separate groups according to color, merge those into different objects, and create multiple point-instanced light sets from those separate objects. But it'd certainly be nice if I didn't have to do that.

Thanks

Sure you can do that :) It takes applying the light shader attributes to each point with individual parameters. Did you have a look at the Light Instancing tutorial in the TutorialsLegacySESIVideos?

Link to comment
Share on other sites

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