Log In  


So I made raycasting.

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

3


Hi Tsojcanth,
Looking good and smooth!
I did some work with textured raycast, if it helps.
https://www.lexaloffle.com/bbs/?pid=18416#p18415


very nice! looks very fast!


Thanks!

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.


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 :/



[Please log in to post a comment]