プレイ日記
Pkyoshi19 Pokeyoshi19
I tried a lot of stuff, but I just can't find out how raycasting works... *sigh*
6そうだね
プレイ済み
返信[1]
親投稿
Zee Storybookten9
You can join me in the "no raycasting club". There will be refreshments!
0そうだね
プレイ済み
返信[2]
親投稿
PikaRyan papermariofanmm
im just going to wait for calc....he'll do it....he always does....
1そうだね
プレイ済み
返信[3]
親投稿
Levi SKYDOGPENN
i tried raycast but i could not get rid of the "fish eye" view. ill just let calc84 make one and use that.
0そうだね
プレイ済み
返信[4]
親投稿
TN21 Trinitro21
I don't know much about raycasting but I think you can fix the fish eye by just narrowing your field of view. Taking all the angles and dividing by a set amount might do the trick.
0そうだね
プレイ済み
返信[5]
親投稿
NagatoYuki newtonyic1
does he know the algos to make a zbuffer he would make my career id gobble all of it
0そうだね
未プレイ
返信[6]
親投稿
Levi SKYDOGPENN
raycasting is where you scan each column of pixels on the x axis for a wall and if you find a wall, draw the walls height for that column according to distance away from you. so you cast 400 rays because that is the amount of pixels on the x dimension on screen. the screen width is 400x240. the fov is how big your viewing angle is usually 60 or 66 degrees and horizon is the width of the screen.
2そうだね
プレイ済み
返信[7]
親投稿
Levi SKYDOGPENN
something like this: for rayangle=cameraangle-fov/2 to cameraang+fov/2 step fov/horizon ' this is where you cast rays ' if you hit a wall draw a vertical line with a height according to the distance of the wall from you(the length of the ray) next
1そうだね
プレイ済み
返信[8]
親投稿
Pkyoshi19 Pokeyoshi19
And where/how do you hit those walls?
0そうだね
プレイ済み
返信[9]
親投稿
Levi SKYDOGPENN
if the ray that you cast hits a wall then draw the vertical line
0そうだね
プレイ済み
返信[10]
親投稿
Levi SKYDOGPENN
try this website for help http://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/
1そうだね
プレイ済み
返信[11]
親投稿
NagatoYuki newtonyic1
thanks so the word it's a real term in programming how you use fov and width?
0そうだね
未プレイ
返信[12]
親投稿
Pkyoshi19 Pokeyoshi19
Okay guys, I found a solution: "Don't use raycasting". I'm a genius, RIGHT?
0そうだね
プレイ済み
返信[13]
親投稿
NagatoYuki newtonyic1
i just read imformation on it it mentions volumetric raycasting and also raytracing that does real 3d rendering is this possible on smilebasic at least with lowest pixel to create 3d objects? could someone show me the coding for raytracing
0そうだね
未プレイ
返信[14]
親投稿
TN21 Trinitro21
Raytracing would be way too laggy, seeing as it demands the ability to process 240x more rays than raycasting.
0そうだね
プレイ済み
返信[15]
親投稿
Phillip IAmAPerson620
Calc made a raytracer back in PTC (SBv2).
0そうだね
プレイ済み
返信[16]
親投稿
Levi SKYDOGPENN
calc84 is already making one and its awesome i think he will release it soon, go check it out on his miiverse acount: Calc84
0そうだね
プレイ済み