Project 6: Is it a dream, or just OpenGL?

Zijie(Jay) Wang

Camera X Camera Y
Speed Zoom
Day Time
Only show dice
Simulate Time Disco Effect


In case you don't know, many people have no idea they are just sleeping. Sometimes dream is so real that people think it's reality.

The movie "Inception" has a decent discussion about what dream is, but many silly people just think it is fictional!

In the movie, totems are used to determine whether you are in a dream or not.

Do you want to test your "reality"? I have made two totems for you. After 5 seconds, you should see the spinning top falls down and you get a "3" on the die. Otherwise, time to wake up!

Implementing comments

The tricky part of modeling is solved in my project4, the challenge of using WebGL is to communicate the shader and my host program. Compared to using painter's algorithm, z-buffer is really powerful. Interestingly, I have encountered z-fighting in this project.