gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] manuscripts/AniFont Makefile anifont.tex probe.mp


From: Tuomas J. Lukka
Subject: [Gzz-commits] manuscripts/AniFont Makefile anifont.tex probe.mp
Date: Tue, 30 Sep 2003 06:46:18 -0400

CVSROOT:        /cvsroot/gzz
Module name:    manuscripts
Branch:         
Changes by:     Tuomas J. Lukka <address@hidden>        03/09/30 06:46:18

Modified files:
        AniFont        : Makefile anifont.tex probe.mp 

Log message:
        Miplevel diag

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/manuscripts/AniFont/Makefile.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/manuscripts/AniFont/anifont.tex.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/manuscripts/AniFont/probe.mp.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: manuscripts/AniFont/Makefile
diff -u manuscripts/AniFont/Makefile:1.1 manuscripts/AniFont/Makefile:1.2
--- manuscripts/AniFont/Makefile:1.1    Tue Sep 30 06:37:37 2003
+++ manuscripts/AniFont/Makefile        Tue Sep 30 06:46:17 2003
@@ -1,7 +1,7 @@
 
-anifont.ps: probe.1 anifont.tex
+anifont.ps: probe.1 probe.2 anifont.tex
        latex anifont
        dvips anifont
 
-probe.1: probe.mp
+probe.1 probe.2: probe.mp
        mpost probe.mp
Index: manuscripts/AniFont/anifont.tex
diff -u manuscripts/AniFont/anifont.tex:1.3 manuscripts/AniFont/anifont.tex:1.4
--- manuscripts/AniFont/anifont.tex:1.3 Tue Sep 30 06:37:37 2003
+++ manuscripts/AniFont/anifont.tex     Tue Sep 30 06:46:18 2003
@@ -35,7 +35,8 @@
 Graphics companies unfortunately do not provide ...
 
 \begin{figure*}
-a) c)\\
+a) \includegraphics[width=5cm]{probe.2}
+c)\\
 b)\\\includegraphics[width=15cm]{probe.1}
 \caption{
 \label{figanisoprobe}
@@ -47,6 +48,8 @@
 samples the mipmap levels in XXX aniso XXX
 }
 \end{figure*}
+
+- ASSUMPTIONS: pixel/texel translation invariance, both in screen and 
texture-space
 
 
 - utility in our free software OpenGL libvob system
Index: manuscripts/AniFont/probe.mp
diff -u manuscripts/AniFont/probe.mp:1.1 manuscripts/AniFont/probe.mp:1.2
--- manuscripts/AniFont/probe.mp:1.1    Tue Sep 30 06:37:37 2003
+++ manuscripts/AniFont/probe.mp        Tue Sep 30 06:46:18 2003
@@ -81,5 +81,45 @@
 
 endfig;
 
+size = 100pt;
+
+def drawgrid(expr x, y, side, light) =
+
+    fill (x,y)--(x+side*size,y)--
+           (x+side*size,y+side*size)--(x,y+side*size)--cycle
+               withcolor 0.5 * white;
+
+    if light:
+       fill (x,y)--(x+size,y)--
+               (x+size,y+size)--(x,y+size)--cycle
+                   withcolor  white;
+    fi;
+    
+    for xi := 0 upto side:
+       draw (x+xi*size, y) -- (x+xi*size,y+side*size);
+    endfor;
+    for yi := 0 upto side:
+       draw (x, y+yi*size) -- (x+side*size, y+yi*size);
+    endfor;
+
+enddef;
+
+vardef drawmipmaps(expr x, y, lightlevel) =
+
+    drawgrid(x, y, 1, lightlevel=0);
+    drawgrid(x, y - 200, 2, lightlevel=1);
+    drawgrid(x, y - 500, 4, lightlevel=2);
+    
+enddef;
+
+beginfig(2);
+
+    drawmipmaps(0,0,0);
+    drawmipmaps(500,0,1);
+    drawmipmaps(1000,0,2);
+
+
+endfig;
+
 
 end




reply via email to

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