How could I get light world coordinate from the light vector ?
Announcement
Collapse
No announcement yet.
Light Coordinate From Light Vector
Collapse
X
-
Alright I dont need coordinates anyway, is it possible to calculate distance between current position of object and light position ?
I really did not understand official instructions about vectors, I always thought vectors as distances but it seems they are not.
And if you dont mind, could you explain what is a vector exactly and what is a normalized vector ?
And what dot and cross operations exactly do ?
Thanks and regards...
Comment
-
Am no Maths expert but i hope this helps.
Originally posted by caner_ozdemir View PostAnd if you dont mind, could you explain what is a vector exactly and what is a normalized vector ?
Normalized Vector means dividing the magnitude (length) by its axis which returns a unit vector. For example, think of a vector (5,4,3) with a length of 6.25. When normalized it will be like:
X = (5 / 6.25 = 0.8)
Y = (4 / 6.25 = 0.64)
Z = (3 / 6.25 = 0.48)
So the normalized copy of vector (5,4,3) with length 6.25 will be (0.8,0.64,0.48).
Originally posted by caner_ozdemir View PostAnd what dot and cross operations exactly do ?
Cross Product (aka Vector Product) returns a vector which is perpendicular to given vectors and therefore can be the normal of the surface. See the below gif. Blue and Red are the given vectors and the Pink is the cross product.
Comment
Comment