Some people are remarkably picky. They actually want to see reflections in a ray tracer. Can you believe that? Here you go then!
This is unhidden picture of Mickey Mouse!
A follow-up on your tutorial explaining how to add reflections would be fantastic!
I’ve been meaning to write a ray tracer for a very long time, and now you’ve helped me immensely in starting this project!
Ayman, reflections are in the original code. You just have to add objects with their “shine” set to higher numbers.
The objects I’ve added there are 50% reflective (shine = 0.5), which is about what you got from mirrors as of about 200 years ago. Today, the really expensive manufacturing processes used in reflective telescopes and the like give you about 90% reflectivity, so I wouldn’t go higher than that. If you make something 100% reflective, the result looks unrealistic, for good reason!
I see. Thanks!
It’s OT – sorry!
But http://cdsmith.twu.net/types.html is gone. Please publich it somewhere or send me an email.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Blog at WordPress.com. The Paperpunch Theme.
Get every new post delivered to your Inbox.
Join 80 other followers