Java 2.5D from scratch - Raycasting test #3 - Floor and Ceiling

preview_player
Показать описание
Experiment to render the floor and the ceiling of traditional raycasting. No setPixel(x, y)-like function was used. Everything was rendered using only standard java 2D Graphics2D.drawImage() function.

The idea consists in first rendering the 2D top image of the floor and ceiling in an offscreen image and then use it to render the 3D perspective view. The result quality is not so good, but at least it works :)

ps.: sorry about the recording, don't know why the video is so laggy :( ...

p.s: use 'z' and 'x' keys to rotate the camera

Previous tests:

Very cool references:
Рекомендации по теме
Комментарии
Автор

Thats actually beautiful. So nostalgic.

vipmember
Автор

Esse Raycast sincroniza o movimento do chão e o teto, tá incrível!

MasterNinjaKF
Автор

great lighting and good use of render distance limiting :)

GhomezAnonimous
Автор

Reminds me of Ken Silverman's earlier stuff before he created the Build engine. Very nice!

Knifeworld
Автор

Nice video and thanks for posting example code!

cfbmoo
Автор

Could you share how you did it? This is really amazing

notNull..
Автор

Nice implementation. Thanks for your videos, everything is awesome. Btw what's your pc specs?

wvw
Автор

How did you implement the fog? Interesting, amazing!!

oliverb.
Автор

How did you draw the floor and ceiling so efficiently. I used the a method where it casts a ray for each pixel and finds where it hits on the texture but that decreses my frame rate to about 4 frames per 10 seconds.

snurffff
Автор

Video tutorials on how to build a full raycasting engine (maps, huds, commands) is the dream of all my life swear! You can use freedoom textures that are different from the original doom and completely open. Please, I want to understand in detail how to make a wolfenstein 3d engine, doom. If you do it I will make you donations for the rest of my miserable life! Thank you.

xenoncoder
Автор

Muito legal, isso é Ray Casting certo?
Sempre quis entender :P

DiegoLopesCF
Автор

This repository has been disabled :c sad

Adrixcorp