Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

calculate the reflective vector

$
0
0

捕获1.PNG

The vector I and n are given, n is the unit vector, the output is vector r.

my question is the orientation of r.

Since dot(n,l) is the signed length(negative in this case) ,why the vector below n still multiply by "n",  and why the vector dot(n,l)*n and "n" have opposite orientations.

捕获.PNG  

In my opinion ,it should be

捕获1q.PNG

 


Viewing all articles
Browse latest Browse all 17560


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>