Wall textures are actually loaded rotated by 90 degree, so pixels of the same column are next to each other in memory, which helps with caching. Trigonometry is heavily based on interpolation, there are only 2 trigonometric calculations per frame for the walls and 2 for each pixel line of the floor. Rest is done by fixed point additions (integers where the lower 8 bits are interpreted as fractions).
Niiice... I'm thinking about doing a raycasting engine and game for my next project. I did one way back in my Amiga days but only got as far a simple walk around demo that only had wall textures.
How did you do the texture splitting? I made the raycaster, but I can't figure out how I should go about slicing images.
VoltageEntertainment 3 months ago
@VoltageEntertainment I'm not sure I understand the question.
Wall textures are actually loaded rotated by 90 degree, so pixels of the same column are next to each other in memory, which helps with caching. Trigonometry is heavily based on interpolation, there are only 2 trigonometric calculations per frame for the walls and 2 for each pixel line of the floor. Rest is done by fixed point additions (integers where the lower 8 bits are interpreted as fractions).
RedNifre 3 months ago
sooo... source?!
TehGameMaker 4 months ago
@TehGameMaker Naah...
RedNifre 3 months ago
trumbs up if you know this face from Dark Seed
marcaoalvess 1 year ago
Any recommended books / resources for those wanting to write a similar engine from scratch? Nice vid!
sephiap 1 year ago
Except for music, demo looks good.
martinberger84 1 year ago
awesome! (thanks! i'm gonna have nightmares tonite! :P)
lolitylols 1 year ago
breathtaking...
sepeisa 1 year ago
I love the Giger's extures, you've used them very well. I like the lights too.
SeriousIlya 1 year ago
cool
johneymute 2 years ago
I found a ray casting engine for mIRC, its really cool 3d
/watch?v=hFJvdGzC9zk
tippabror 2 years ago
Thanks! Seems like a nice hack.
RedNifre 2 years ago
how do you mean ? hehe
tippabror 2 years ago
HR GIGER!!! UBER KRIEG MAN!!!!
grimjer 2 years ago
as i told you on your cannel... just awesome. =)
julietklam 2 years ago
impressive
KingDavid73 2 years ago
Wow...
I never knew raycasting could look so cool.
Bleson 2 years ago
Niiice... I'm thinking about doing a raycasting engine and game for my next project. I did one way back in my Amiga days but only got as far a simple walk around demo that only had wall textures.
Cruithne3753 3 years ago
Sorry for the bad music. I had to use one that did not cause any legal problems. :-/
Anyway, please comment!
RedNifre 3 years ago