🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Untitled

posted in DruinkJournal
Published November 30, 2007
Advertisement
I was playing with my refraction code a little (nothing spectacular), and I found myself doing things like changing the refractive index of a material, then rendering, then changing again, then rendering, etc. So I'm going to make the whole thing scripted properly, so you can generate multiple output images. All that really needs is me to make a raytrace() function that the script can call, and reset_scene() and reset_lights() commands. Or I could be "clever" and give objects and lights handles that you can use to delete them with.

After that, it's just a case of scripting a loop to change some params slightly and raytrace.

Random picture from setting the refractive index of a sphere to 1.25, with 4 smaller spheres behind it:
Previous Entry Untitled
Next Entry Untitled
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement