The flexibility of being able to navigate anywhere has also created a new problem—the transparent cones that represent the light shafts from the streetlights will no longer be ordered furthest to closest. We can walk to the other side of the scene, turn around, and see the spotlight cones overlapping in the wrong order. We have to render the scene so that with each frame, we test the stacking order of the transparent objects. This is a tedious bit of coding, but it also demonstrates the issue. The following screenshot shows the same scene from the opposite side. Notice that the closest spotlight cone obscures the furthest cone where the two overlap. We cannot ignore the issue, so let's devise a program to fix this.
WebGL HOTSHOT
By :
WebGL HOTSHOT
By:
Overview of this book
Table of Contents (17 chapters)
WebGL HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Building Great Web3D
WebGL for E-Commerce
User Experience, Story, Character, Visual Design, and Interactivity
Mobile and Web3D Gaming
Social Media Meets Its Destiny
3D Reveals More Information
Adapting Architecture, Medical, and Mechanical Engineering to Web3D
3D Websites
Education in the Third Dimension
The New World of 3D Art
Index
Customer Reviews