Jump to content
  • Advertisement
Sign in to follow this  
-jesper-

Help debugging my raycasting engine

This topic is 629 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!