Sign in to follow this  
Pickl3d

Raycaster using C# Example

Recommended Posts

Pickl3d    166
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
benryves    1999
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
Pickl3d    166
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

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