Raytracer

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
Hyppo
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 11
Joined: Wed Dec 03, 2008 5:51 am

Raytracer

Post by Hyppo »

One of the posts about the raycaster reminded me about the basic raytracer I once made. The difference between a raycaster and a raytracer is that a raytracer uses a recursive function so It can easily make effects like relfections. The downside however is that this has a huge impact on the performance and is therefor not useable in realtime.

Here is an image of the spheres with one blue light, reflectivity and Anti-aliasing.
Image

Note that I haven't used any 3D rendering library and it only uses SDL for drawing.

ps.

For more of my work visit my channel: http://www.youtube.com/hyppostudios
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Raytracer

Post by dandymcgee »

That's pretty cool, thanks for posting.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Raytracer

Post by RyanPridgeon »

Hey, that's awesome!

So how powerful is it? Got any pics of it with more objects / materials on screen?
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
Hyppo
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 11
Joined: Wed Dec 03, 2008 5:51 am

Re: Raytracer

Post by Hyppo »

Not really that powerful, but It's a start. I'm thinking of rewriting it because it can only display spheres, it's a fixed camera and I can't show textures. The only thing holding me back is the ray-object collision math. Do you happen to know any good sources?
Post Reply