Jump to content
  • Advertisement
Sign in to follow this  

Raycaster using C# Example

This topic is 3735 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

I decided to learn about raycasting and writing your own one now that my maths knowledge is getting better, I thought it would be cool to implement it in such a way that beginners could see exactly the logic behind it realtime. Heres a little picture of the program, if you are interested - just let me know and i'll post up the source / program. Thanks for all the help so far. It's written in C# just using their basic GDI for fun, no DX or uber engines here :) http://img401.imageshack.us/img401/2126/raycastergl9.gif [Edited by - Pickl3d on February 21, 2008 2:19:56 PM]

Share this post


Link to post
Share on other sites
Advertisement
That looks very good, and illustrates the operation of the raycasting algorithm nicely. [smile]

I'd certainly be interested in the program and source!

I note that the walls appear to be antialiased - how are you achieving that? Supersampling?

Share this post


Link to post
Share on other sites
Thanks for your comments Ben.

Here is the Source Code, please note that my C# coding skill blows quite horribly as this is my first time ever using C# (prefer C/C++/x86ASM) :)

I haven't bothered to implement any sort of smoothing with movement so it's a bit shaky heh.

Yes I am using C# GDI in built 'anti aliasing' setting for graphic objects.

http://www.ultanart.co.uk/Pickled3D.rar //C# source

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!