gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz ./TODO gfx/librenderables/renderables.py gf...


From: Janne V. Kujala
Subject: [Gzz-commits] gzz ./TODO gfx/librenderables/renderables.py gf...
Date: Fri, 27 Sep 2002 11:56:43 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        02/09/27 11:56:43

Modified files:
        .              : TODO 
        gfx/librenderables: renderables.py 
        gfx/libtexture : fnoise.texture 

Log message:
        Draw the inside of IrregularQuad as TRIANGE_FAN rather than POLYGON, 
because distortion can make it non-convex

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.162&tr2=1.163&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/librenderables/renderables.py.diff?tr1=1.71&tr2=1.72&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libtexture/fnoise.texture.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gzz/TODO
diff -c gzz/TODO:1.162 gzz/TODO:1.163
*** gzz/TODO:1.162      Fri Sep 27 11:45:02 2002
--- gzz/TODO    Fri Sep 27 11:56:42 2002
***************
*** 60,68 ****
          Check by setting polygonmode to lines in xupdf
          (by a key) and seeing that the non-distorted 
          polygons are diced less.
-     jvk:
-       - fix irregularquad to work with new coordsys stuff
-           - *1: use nonlinearity() !!!
      tjl:
        - distorted multi-page PDF view with xu links
            - make it work again, distorted paper, irregular quad.
--- 60,65 ----
Index: gzz/gfx/librenderables/renderables.py
diff -c gzz/gfx/librenderables/renderables.py:1.71 
gzz/gfx/librenderables/renderables.py:1.72
*** gzz/gfx/librenderables/renderables.py:1.71  Fri Sep 27 07:55:27 2002
--- gzz/gfx/librenderables/renderables.py       Fri Sep 27 11:56:42 2002
***************
*** 695,701 ****
                         ZPt(+x2,-y1,0), ZPt(+x1,-y2,0), ZPt(+x1,+y2,0) };
          int dice[] = { diceb, dicex, diceb, dicey, diceb, dicex, diceb, dicey 
};
  
!         glBegin(GL_POLYGON);
          for (int i = 0; i < 8; i++) {
              for (int d = 0; d <= dice[i]; d++) {
                  float t = (float)d / dice[i];
--- 695,702 ----
                         ZPt(+x2,-y1,0), ZPt(+x1,-y2,0), ZPt(+x1,+y2,0) };
          int dice[] = { diceb, dicex, diceb, dicey, diceb, dicex, diceb, dicey 
};
  
!         glBegin(GL_TRIANGLE_FAN);
!         vert(coords1, coords2, ZPt(0,0,0));
          for (int i = 0; i < 8; i++) {
              for (int d = 0; d <= dice[i]; d++) {
                  float t = (float)d / dice[i];
Index: gzz/gfx/libtexture/fnoise.texture
diff -c gzz/gfx/libtexture/fnoise.texture:1.2 
gzz/gfx/libtexture/fnoise.texture:1.3
*** gzz/gfx/libtexture/fnoise.texture:1.2       Tue Sep  3 09:48:52 2002
--- gzz/gfx/libtexture/fnoise.texture   Fri Sep 27 11:56:42 2002
***************
*** 62,67 ****
--- 62,69 ----
      FPARAM(scale, 1);
      FPARAM(freq, 5);
      FPARAM(df, 2);
+     FPARAM(seed, 0);
+     if (seed) srandom((long)seed);
  
      int d = (depth==0 ? 1 : depth);
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]