[Cub3D] DDA알고리즘을 이용한 Ray Casting
·
42Seoul/Cub3D
www.youtube.com/watch?v=eOCQfxRQ2pY&t=205s lodev.org/cgtutor/raycasting.html Raycasting #define screenWidth 640 #define screenHeight 480 #define texWidth 64 #define texHeight 64 #define mapWidth 24 #define mapHeight 24 int worldMap[mapWidth][mapHeight]= { {4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7}, {4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0, lodev.org 위 자료들을 참고하여 이제 실전! 코드로 옮겨보자. 우선 계속 혼동이 왔던이유..
[Cub3D] 레이캐스팅(Ray casting)이란?
·
42Seoul/Cub3D
github.com/365kim/raycasting_tutorial/blob/master/2_basics.md 365kim/raycasting_tutorial (한글ver) 레이캐스팅 튜토리얼 번역. Contribute to 365kim/raycasting_tutorial development by creating an account on GitHub. github.com lodev.org/cgtutor/raycasting.html Raycasting #define mapWidth 24 #define mapHeight 24 #define screenWidth 640 #define screenHeight 480 int worldMap[mapWidth][mapHeight]= { {1,1,1,1,1,1,1,1..
WONILLISM
'DDA알고리즘' 태그의 글 목록