HP j6700 OpenGL Implementation Guide for HP-UX 11.x - Page 62

and column, denote the matrix element in row - specs

Page 62 highlights

programming hints OpenGL performance hints Therefore, if the modelview matrix is M, the transformed plane equation is: the rescaled normal is and the fully transformed normal is If rescaling is disabled, f is 1, otherwise f is computed as follows: Let mij denote the matrix element in row i and column j of M-1, numbering the topmost row of the matrix as row 1, and the left most column as column 1. Then Alternatively, an implementation may chose to normalize the normal instead of rescaling the normal. Then If normalization is disabled, then the square root in equation 2.1 is replaced with 1; otherwise, it is calculated as dictated by the OpenGL Spec. If both normalize and rescale are enabled, HP's implementation skips the rescale and does only the normalize. 60 Chapter 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

programming hints
OpenGL performance hints
Chapter 5
60
Therefore, if the modelview matrix is
M
, the transformed plane equation
is:
the rescaled normal is
and the fully transformed normal is
If rescaling is disabled, f is 1, otherwise f is computed as follows:
Let
m
ij
denote the matrix element in row
i
and column
j
of M
-1
,
numbering the topmost row of the matrix as row 1, and the left most
column as column 1. Then
Alternatively, an implementation may chose to normalize the normal
instead of rescaling the normal. Then
If normalization is disabled, then the square root in equation 2.1 is
replaced with 1; otherwise, it is calculated as dictated by the OpenGL
Spec. If both normalize and rescale are enabled, HP’s implementation
skips the rescale and does only the normalize.