SpencerL Posted September 26, 2006 Share Posted September 26, 2006 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. Quote Link to comment Share on other sites More sharing options...
B.Walters Posted September 26, 2006 Share Posted September 26, 2006 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 Quote Link to comment Share on other sites More sharing options...
Jason Posted September 26, 2006 Share Posted September 26, 2006 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 Quote Link to comment Share on other sites More sharing options...
SpencerL Posted September 26, 2006 Author Share Posted September 26, 2006 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. 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.