gzz-commits
[Top][All Lists]
Advanced

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

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


From: Tuomas J. Lukka
Subject: [Gzz-commits] manuscripts/AniFont anifont.tex footprint.mp
Date: Fri, 17 Oct 2003 13:57:40 -0400

CVSROOT:        /cvsroot/gzz
Module name:    manuscripts
Branch:         
Changes by:     Tuomas J. Lukka <address@hidden>        03/10/17 13:57:40

Modified files:
        AniFont        : anifont.tex footprint.mp 

Log message:
        EWA filter mockup

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

Patches:
Index: manuscripts/AniFont/anifont.tex
diff -u manuscripts/AniFont/anifont.tex:1.12 
manuscripts/AniFont/anifont.tex:1.13
--- manuscripts/AniFont/anifont.tex:1.12        Fri Oct 17 05:15:22 2003
+++ manuscripts/AniFont/anifont.tex     Fri Oct 17 13:57:40 2003
@@ -75,11 +75,12 @@
 \label{secrelated}
 
 
-\subsection{The texture mapping primitive}
+% \subsection{The texture mapping primitive}
 
-Texture mapping is a ubiquitous ... \cite{haeberli93texture}
+Texture mapping is a ubiquitous ... \cite{heckbert86survey,haeberli93texture}
 originally introduced introduced by Catmull\cite{catmull74}.
 
+In off-line rendering, off
 
 - off-line rendering: EWA XXXREF
 
@@ -106,7 +107,7 @@
 }
 \end{figure}
 
-\subsection{Mipmapping: bi- and trilinear filtering}
+% \subsection{Mipmapping: bi- and trilinear filtering}
 
 - Trilinear/bilinear (mipmap) filtering was designed to avoid temporal and 
spatial aliasing\cite{williams83pyramidal}
 
@@ -134,7 +135,7 @@
 \end{figure}
 
 
-\subsection{Anisotropic texture filtering}
+% \subsection{Anisotropic texture filtering}
 
 - basic anisotropic solution: more samples from the mipmaps than the 8 used for
   trilinear - better approximation of EWA. Modern graphics cards support up to 
XXX samples
@@ -172,7 +173,7 @@
 c)\\
 \caption{
 \label{figaniso}
-Anisotropic filtering. 
+Hardware anisotropic filtering. 
 On the same card and same texture coordinates as
 Fig.~\ref{figbitrilinear} c), but with anisotropic
 filtering enabled, the PFSS diagram shows a much better (smaller)
Index: manuscripts/AniFont/footprint.mp
diff -u manuscripts/AniFont/footprint.mp:1.1 
manuscripts/AniFont/footprint.mp:1.2
--- manuscripts/AniFont/footprint.mp:1.1        Fri Oct 17 05:15:22 2003
+++ manuscripts/AniFont/footprint.mp    Fri Oct 17 13:57:40 2003
@@ -16,6 +16,11 @@
 
 beginfig(1);
 
+x0 = -5;
+x1 = 16;
+y0 = -5; 
+y1 = 20;
+
     drawarrow ((0,0) -- (3,0)) transformed xytrans withpen xypen;
     drawarrow ((0,0) -- (0,3)) transformed xytrans withpen xypen;
 
@@ -24,11 +29,6 @@
 
     draw ((1,1)--(2,1)--(2,2)--(1,2)--cycle) transformed xytrans withpen 
pixelpen;
 
-    x0 = -5;
-    x1 = 16;
-    y0 = -5; 
-    y1 = 20;
-
     for x := x0 upto x1:
        draw ((x, y0)--(x,y1)) transformed sttrans withpen stgridpen;
     endfor;
@@ -55,6 +55,31 @@
     draw z44{0,1}.. ((10.5,0) transformed sttrans) withpen legendpen;
 
 
+endfig;
+
+beginfig(2);
+
+
+    numeric s,t;
+
+    dif = 1.03;
+
+    for s := -20 upto 20:
+       for t := -20 upto 30:
+           dist := abs(((s+.5,t+.5) transformed sttrans) transformed
+                       inverse(xytrans) - ((1.5,1.5)));
+           col := mexp(-(5*dist*dist)*256);
+           if col < 0.03: col := 0; fi
+           fill (((s,t)--(s,t+dif)--(s+dif,t+dif)--(s+dif,t)--cycle) 
transformed
+               sttrans) withcolor (col*white);
+       endfor;
+    endfor;
+
+    draw ((1,1)--(2,1)--(2,2)--(1,2)--cycle) transformed xytrans withpen 
pixelpen;
+
+    clip currentpicture to 
+       (((0,0)--(3,0)--(3,3)--(0,3)--cycle) transformed xytrans);
+    
 endfig;
 
 end




reply via email to

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