1
General / Re: How to achieve 2D shadows/the visibility effect with raycasting?
« on: May 03, 2018, 07:07:11 pm »
I did not understand the math behind this, as it was not well explained, and was (probably) meant for people experienced in vector maths/trigonometry/whatever that branch of math is.
For example, what is the "T" component and what is its purpose, and how is the "direction" component calculated? Is it just an angle in degrees/radians?
And also, what's the deal with all these equation transformations?
If you could find any beginner-friendly or just well explained tutorials, I would be grateful.
And about that post you gave me a link to, there is no explanation on how it's made. And that doesn't help me since I would like to understand the math behind it and implement it based on that knowledge.
For example, what is the "T" component and what is its purpose, and how is the "direction" component calculated? Is it just an angle in degrees/radians?
And also, what's the deal with all these equation transformations?
If you could find any beginner-friendly or just well explained tutorials, I would be grateful.
And about that post you gave me a link to, there is no explanation on how it's made. And that doesn't help me since I would like to understand the math behind it and implement it based on that knowledge.