Questions tagged [raycasting]

A rendering technique to create a 3D perspective in a 2D map

Filter by
Sorted by
Tagged with
0 votes
2 answers
72 views

Optimize and Simplify Raycasting Code in Unity for Store Clerk Interaction?

I plan to use a raycast for interacting with all things in my games but Im afraid itll be too laggy how can I shorten this code up? ...
user22619516's user avatar
0 votes
0 answers
76 views

Pygame Texture Ray Caster

Recently I have been attempting to develop a ray caster in python pygame. I managed to get it to work fairly efficiently when using basic colors, but when I altered the program to use textures instead,...
JohnSmith's user avatar
3 votes
1 answer
1k 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 ...
nakem's user avatar
  • 133
5 votes
2 answers
284 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. ...
Vertexwahn's user avatar
1 vote
2 answers
282 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 ...
smuggledPancakes's user avatar
2 votes
0 answers
190 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 ...
Koliqa's user avatar
  • 21
6 votes
3 answers
222 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 ...
Russell356's user avatar
8 votes
2 answers
13k 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 ...
Tomek's user avatar
  • 315
5 votes
1 answer
207 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 ...
user avatar
10 votes
1 answer
10k 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 ...
George Willcox's user avatar