Mark
Mark

Reputation: 1343

perspective raycasting

can someone point me to some methods for perspective ray casting. I have seen ray splitting techniques. What other casting methods are available? Which one is easiest to implement?

Upvotes: 1

Views: 1456

Answers (1)

Alexey Frunze
Alexey Frunze

Reputation: 62048

Follow this Ray-Casting Tutorial For Game Development And Other Purposes by F. Permadi. It describes the easiest method. It was also described in the Tricks of the Game-Programming Gurus book by André LaMothe.

I've implemented it several times. Takes ~1K lines of code or less (depending on your programming language and how advanced you want your raycaster to be). Basic school math.

Upvotes: 2

Related Questions