Log In  

So I made raycasting.

No code yet because it's really rubbish and needs cleaned up.

P#21367 2016-05-25 21:41 ( Edited 2016-05-26 21:23)

Hi Tsojcanth,
Looking good and smooth!
I did some work with textured raycast, if it helps.

P#21369 2016-05-25 22:16 ( Edited 2016-05-26 02:16)
:: impbox

very nice! looks very fast!

P#21372 2016-05-25 22:33 ( Edited 2016-05-26 02:33)


Electricgryphon, I just ran out of steam last night. :)
After determining the clipping point I only need to take the fractional part of the subordinate axis to find the column of the texture and blit it in :)

It's kind of ridiculous how short this code is. I need to refactor it a bit (semantic compression to deduplicate the two axis cursors) but the ray-cast part is less than 50 lines. Less than 35 soon, i hope :)

After I'm done with this I might write a doom-like raycaster, or a voxel renderer.

P#21390 2016-05-26 08:19 ( Edited 2016-05-26 12:19)

And some textures!

By the way, I get some weird glitches after depth correction (the column comes out one or two pixels taller), and I'm not sure why :/

P#21412 2016-05-26 17:23 ( Edited 2016-05-26 21:23)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-05-25 02:12:11 | 0.005s | Q:15