Jump to content

Scatter Based On Luminence


SpencerL

Recommended Posts

Hey,

I am trying to figure out a way to scatter pts based on how much light the geo recieves. I figure its a matter of doing a dot product between the normal of the light direction and the normals of the object, or something to that extent, but I dont know how to get the normal attribute of a light...Or I could be completely wrong about the whole thing. Either way, any suggestions would help. Thanks.

Link to comment
Share on other sites

Hey,

I am trying to figure out a way to scatter pts based on how much light the geo recieves. I figure its a matter of doing a dot product between the normal of the light direction and the normals of the object, or something to that extent, but I dont know how to get the normal attribute of a light...Or I could be completely wrong about the whole thing. Either way, any suggestions would help. Thanks.

Close! You'll definitely need the normals of the object and the dot product, but you don't need the normal of the light, all you need is just the position of the light. That is, unless you wanted a cone light, then you'd need the cone angle + direction... but that's a whole different story.

Check out the example I just quickly whipped together.

Good luck!

Brian

scatterLight2.hip

Link to comment
Share on other sites

Close! You'll definitely need the normals of the object and the dot product, but you don't need the normal of the light, all you need is just the position of the light. That is, unless you wanted a cone light, then you'd need the cone angle + direction... but that's a whole different story.

Check out the example I just quickly whipped together.

Good luck!

Brian

Hey there,

You might be able to get some other ideas from the Sunburn Challenge: http://forums.odforce.net/index.php?showtopic=26

Link to comment
Share on other sites

Close! You'll definitely need the normals of the object and the dot product, but you don't need the normal of the light, all you need is just the position of the light. That is, unless you wanted a cone light, then you'd need the cone angle + direction... but that's a whole different story.

Ah yes, the Position will do just fine and thanks for the link Jason...

Thanks for the help.

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