ray-intersect-quad?

Blitz3D Forums/Blitz3D Programming/ray-intersect-quad?

bytecode77(Posted 2007) [#1]
hi!

i'm looking forward to do a raycaster project. i have a question about the ray-intersection function



as you see in the pic, the rays are sent out from the camera in lots of directions. my question is how to calculate the red points (the hitpoints of the ray) on >>2d space<<!

i saw this thread http://www.blitzbasic.com/codearcs/codearcs.php?code=1029 but there was no intersection position return.

im in 9th class right now and we did not have these kind of maths yet !
if anyone could help me, i would be very thankful :)
bye :)


bytecode77(Posted 2007) [#2]

(WSDA to move+mouse)

i tried to make a raycaster, but it acts weird. what is it about all this?


Sledge(Posted 2007) [#3]
how to calculate the red points



http://student.kuleuven.be/~m0216922/CG/raycasting.html#The_Basic_Idea_


bytecode77(Posted 2007) [#4]
i already got one, but the sample which i posted above is not working properly.
anybody an idea?


bytecode77(Posted 2007) [#5]
wow i fixed that bug!
i just mixed up y and z :)
thank you anyway!!


IPete2(Posted 2007) [#6]
Man you are sooooo clever dude!

IPete2.


bytecode77(Posted 2007) [#7]
oh thank you so much xD