Jump to content

  • Log In with Google      Sign In   
  • Create Account


Updated ray tracer


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 george7378   Members   -  Reputation: 1132

Like
3Likes
Like

Posted 06 May 2014 - 10:34 AM

I've been working on my ray racer recently, and I've changed it in a few ways:

 

- It now supports multicore rendering

- It can parse external text files and import scenes

- It can handle soft shadows

- It can handle textures

 

Here are a few pics I though I'd share:

 

http://imgur.com/a/sDGaz

 

To do: It would be nice to add the ability to render via path tracing so that I can add caustics, etc... but I haven't really found a good explanation of exactly how to do this. I understand that rather than spawning recursive reflection/refraction rays at each hitpoint, you spawn a single probabilstic ray, but I'm still a bit hazy on how to actually determine the final pixel color.

 

Thanks for looking smile.png


Edited by george7378, 06 May 2014 - 10:37 AM.


Sponsor:

#2 latch   Members   -  Reputation: 632

Like
0Likes
Like

Posted 06 May 2014 - 05:24 PM

You ray tracer is for use with Directx?

 

How long does it take to render one of those images?



#3 george7378   Members   -  Reputation: 1132

Like
0Likes
Like

Posted 07 May 2014 - 02:31 AM

No, it's standalone and runs on the CPU. I think it would be a lot harder to make it run with DirectX. It took about 2 minutes to make the images on there, but it depends a lot on the resolution and the way the shadows are calculated. Without the soft shadows it would take about 15 seconds.

#4 george7378   Members   -  Reputation: 1132

Like
0Likes
Like

Posted 07 May 2014 - 06:03 PM

Updated it to do path tracing too, looks decent!

 

http://imgur.com/a/q6LtF






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS