0 Members and 1 Guest are viewing this topic.
What is raycasting?
All you have to do to remove the fishbowl effect is multiply by cos(θ) where θ is the angle from dead-ahead (see http://www.permadi.com/tutorial/raycast/rayc8.html for an explanation).
Did you attempt doing raycasting or did you accidentally create it?
Pt-Off(0,,Pic0,L3)If pxl-Test(V/8,W/8,L3)
√(((abs(X-V)²)+(abs(Y-W)²)))→G
√(X-V²+(Y-W)²)→G
If r1<64 or (r1>192)
If r1<64 + (r1>192)
Lbl THabs(Y-W)*128//sin(r1-r2)*cos(r1-r2)//128→Ur1<128?U+X→V,X-U→VReturnLbl TVabs(V-X)*128//cos(r1)*sin(r1)//128→UReturn
sub(TH,r1,128) becomes TH(r1,128)