Reader small image

You're reading from  WebGL HOTSHOT

Product typeBook
Published inMay 2014
Publisher
ISBN-139781783280919
Edition1st Edition
Concepts
Right arrow
Author (1)
Mitch Williams
Mitch Williams
author image
Mitch Williams

Mitch Williams has been involved with 3D graphics programming and Web3D development since its creation in the mid 1990s. He began his career writing software for digital imaging products before moving on as Manager of Software for Vivendi Universal Games. In the late 1990s, he started 3D-Online, his own company, where he created "Dynamic-3D", a Web3D graphics engine. He has worked on various projects ranging from interactive 3D medical procedures, online 3D training for the Department of Defense, creating one of the first 3D mobile games prior to the launch of the iPhone, and graphics card shader language programming. He has been teaching Interactive 3D Media at various universities including UC Berkeley, UC Irvine, and UCLA Extension.
Read more about Mitch Williams

Right arrow

Bending of light – calculating refraction for surfaces such as water


A variation on reflection is refraction, the bending of light as it passes through a surface, or more accurately, light passing through air into another surface. We see refraction when we observe a straw in a glass of water or view the bottom of a pool. Have a look at the following screenshot:

Refraction as the image of the pen is bent and broken

Prepare for lift off

This won't become a class in physics, I promise. But we cannot ignore it either, and besides, a little physics never hurt anyone (just continue to stay out of the way of falling objects). We need to take a moment and introduce refractive index, which describes how light moves through a surface. Refractive index is the ratio of light moving in a vacuum (which, for our purposes, is air) versus light moving through a substance such as glass or water. In water, the refractive index is 1.33, whereas the refractive index for diamond is 2.42. Types of glass and liquids...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
WebGL HOTSHOT
Published in: May 2014Publisher: ISBN-13: 9781783280919

Author (1)

author image
Mitch Williams

Mitch Williams has been involved with 3D graphics programming and Web3D development since its creation in the mid 1990s. He began his career writing software for digital imaging products before moving on as Manager of Software for Vivendi Universal Games. In the late 1990s, he started 3D-Online, his own company, where he created "Dynamic-3D", a Web3D graphics engine. He has worked on various projects ranging from interactive 3D medical procedures, online 3D training for the Department of Defense, creating one of the first 3D mobile games prior to the launch of the iPhone, and graphics card shader language programming. He has been teaching Interactive 3D Media at various universities including UC Berkeley, UC Irvine, and UCLA Extension.
Read more about Mitch Williams