traiano Posted October 19, 2017 Share Posted October 19, 2017 Hi im having trouble to determine a way to birth particles (constant, 1 frame alive) only in the shadow of an illuminated object, the light moves in every frame.. any ideas? Quote Link to comment Share on other sites More sharing options...
merlino Posted October 19, 2017 Share Posted October 19, 2017 Buondí! If you're talking about self shadows I think you can make a dot product between normals and the difference from the points position and the light position. (if the light is a point light), something like this: @Cd = dot(@N,@P-point(1,"P",0))>0; 1 Quote Link to comment Share on other sites More sharing options...
traiano Posted October 19, 2017 Author Share Posted October 19, 2017 Ciao Marco sembra un ottima idea, i will try it grazie mille! 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.