Difference between revisions of "Math and algorithms"

From OpenGL.org
Jump to: navigation, search
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== [[Calculating a Surface Normal]] ==
+
; [[Compute eye space from window space]]: Algorithm and shader code for taking window space positions and computing eye space positions from them.
  
Required for OpenGL lighting.
+
; [[Calculating a Surface Normal]] : Required from the application by OpenGL for lighting calculations.
  
== [[Vector Dot Product]] ==
+
; [[ID-Buffer]] : A way to get the selection of the objects.
  
Useful in lighting calculations.
+
; [[Trackball]] : Object rotation via a virtual trackball.

Latest revision as of 19:48, 24 February 2012

Compute eye space from window space
Algorithm and shader code for taking window space positions and computing eye space positions from them.
Calculating a Surface Normal 
Required from the application by OpenGL for lighting calculations.
ID-Buffer 
A way to get the selection of the objects.
Trackball 
Object rotation via a virtual trackball.