HP Workstation zx2000 HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 42

Alternatively, an implementation may choose to normalize the normal instead of rescaling - specs

Page 42 highlights

programming hints 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 choose to normalize the normal instead of rescaling the normal. Then: If normalization is disabled, then the square root in the previous fully transformed normal equation 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. 5-8 OpenGL implementation guide

  • 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

5–8
OpenGL implementation guide
programming hints
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 choose to normalize the normal instead of rescaling the
normal. Then:
If normalization is disabled, then the square root in the previous fully transformed normal
equation 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.