PDA

View Full Version : Sample Ray Tracing Program



Sana Sandeep
04-16-2011, 02:14 AM
Hi I need a sample ray tracing program showing
-> Triangle intersection
-> Sphere intersection
-> Triangle Phong shading
-> Sphere Phong shading
-> Shadows rays
-> Still images

Plz reply me to sanasandeep@gmail.com

Alfonse Reinheart
04-16-2011, 03:09 AM
Plz reply me to sanasandeep@gmail.com

Really? We're supposed to ignore this discussion forum and just mail our reply directly to you? You can't actually be bothered to check back or anything?

And FYI: OpenGL is a rasterizater, not a raytracer. If you want to find ray tracing code, I suggest Google. Or failing that, download any open-source raytracer (Yafray, Pov-RAY, etc).

McLeary
04-16-2011, 09:10 AM
Mr. Reinheart, give him a discount, it is his first post. Well, the email was a little weird.

Sana, start looking here http://homepages.paradise.net.nz/nickamy/simpleraytracer/simpleraytracer.htm which was the first result when typing "Simple Ray Tracer" on google.

The Little Body
04-16-2011, 09:29 AM
Sana, you can too look (but a lot after, because OpenGL is effectively "only" a rasterizer) at http://www.clockworkcoders.com/oglsl/rt/index.html (where the help of the GPU power included into recent OpenGL cards can make OpenGL a platform of choice for very fasts raytracers)