Tuesday, 8 March 2016

Trying out perspective

After I had my cube going I decided to see if I get the Perspective to change as the mouse moves. I initially had a little trouble finding the help i needed but I stumbled upon https://webkit.org/blog-files/3d-transforms/perspective-by-example.html and was able to copy to code and thin it out until i had it working. Sadly i have no screens because it has since stopped working.

I Animated the cube to appear in the distance and travel closer to the viewer and eventually pass"through" them. When the mouse moved the path of the cube changed as though the viewer was moving side to side - Success!! Now i have to make sure I understand how it works so I can re-implement this another time.









No comments:

Post a Comment