Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMachine02 committed Sep 25, 2017
1 parent 32c4eea commit 73c01f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example.ez80
Expand Up @@ -26,9 +26,13 @@
ld de, $D30000-2
call vxZX7Uncompress ; uncompress the texture generated by convpng

; about vertex coordinate :
; the format inputed in glib is pure integer 16 bits coordinates, ]-32768,32768[
; A 1.0 coordinate in blender is equivalent to 256 in glib

; setup global variable for rendering, euler angle and the translation of WorldMatrix

; about translation : the format inputed in glib is pure integer 16 bits coordinates. On blender the conversion is made like this : 1.0=256
; about translation :
; translation are added post transformation. So they carry the multiplication with the matrice, which aren't divided by the fixed point value of 1.0 (the matrix equivalent or 64). To have a translation of 1.0 in worldview matrix, the translation need to be 256*64 = 16384.
; However, there is two type of matrix in glib : the model matrix, which is in MODELSPACE and the world type matrix in WORLDSPACE. Modelspace matrix have only a 16 bits translation and doesn't have the 64 factor described previously.

Expand Down

0 comments on commit 73c01f8

Please sign in to comment.