Sign in to follow this  

Help debugging my raycasting engine

This topic is 415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For over a week I'm trying to find a bug in my raycasting engine. I followed F. Permadi tutorial and everything looks good except one thing - when player is facing south-west or south-east (angles between 180 and 360 deg) strange artifacts on walls can be spotted

 

[attachment=33753:aaa.png]

 

They are precisely at the beginning of each wall block, but after rendering few wall slices everything back to normal. Looks like for unknown reasons all these slices have equal distance but I have no idea why.

 

I would like to ask you for a help to find a fix for that.

 

Raycaster code can be found here: http://pastebin.com/BR3MLJKB

Share this post


Link to post
Share on other sites

This topic is 415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this