Questions tagged [raycasting]
A rendering technique to create a 3D perspective in a 2D map
8
questions
3
votes
1answer
39 views
Implementation of the DDA algorithm with raycasting
I am making a simple game like Wolfenstein 3d on C using raycasting. To calculate the length of the rays, I use the DDA algorithm. I apply the part of the code that calculates the length of the rays ...
2
votes
2answers
82 views
Improving performance of raycaster application
Bitbucket link to repo
Tutorial I have been following
I decided to make a raycaster app and try to understand how it really works. So far so good, I have it up and running. If you download the ...
5
votes
2answers
75 views
Ray implementation
Problem Statement/Context:
Represent a ray, given a origin and direction. Besides this a min_t and max_t value are defined. ...
2
votes
0answers
68 views
Raycasting python (pyagame)
I want to share my raycasting source (the first engine:)
this program renders the game map (MAP array) and sprites (sprites_on_map array)
ask and criticize!
p.s I don't speak/write English very ...
6
votes
3answers
138 views
Optimizing a raycaster
I have finished a raycaster, and I want to optimize it before I add other features, such as variable height walls, texture mapping and lighting. I'd like someone to review the code so I can improve it ...
5
votes
1answer
190 views
Hoc462 - A Raycaster
For the past week, I've been making a raycaster in JS and if you want a live demo, you can try it here. It ran smoothly before I added variable height walls but now it is very slow (~15 FPS) so I want ...
6
votes
2answers
8k views
2D raycasting implementation
I have implemented a 2D raycast algorithm in SFML to detect walls in a 2D game:
How it works
Player can move in every direction by w ...
10
votes
1answer
6k views
Raycasting algorithm in pygame
For the past week, I've been developing a simple raycasting algorithm. And I've finally managed to work out how to add textures and to get everything working.as I'd like it to. However, even at a ...