[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff-cvs] libvob/vob/paper papermill.py
From: |
Tuomas J. Lukka |
Subject: |
[ff-cvs] libvob/vob/paper papermill.py |
Date: |
Thu, 04 Sep 2003 08:32:32 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Tuomas J. Lukka <address@hidden> 03/09/04 08:32:32
Modified files:
vob/paper : papermill.py
Log message:
LOD kludge
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/paper/papermill.py.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
Patches:
Index: libvob/vob/paper/papermill.py
diff -u libvob/vob/paper/papermill.py:1.11 libvob/vob/paper/papermill.py:1.12
--- libvob/vob/paper/papermill.py:1.11 Tue Aug 26 06:19:26 2003
+++ libvob/vob/paper/papermill.py Thu Sep 4 08:32:32 2003
@@ -78,6 +78,7 @@
# The size of the texture for an optimized paper
optimizedPaperSize=256
+optimizedPaperMaxLevel=7
if not GL.workaroundStupidBuggyAtiDrivers:
# With ATI drivers, we won't even try to optimize papers.
# With others, create a stable offscreen surface on which
@@ -210,12 +211,21 @@
""" % locals())
- # Apparently, NV drivers 44.96 don't generate the last mipmap
- # level right when I just say "RGB" here...
tex.copyTexImage2D(optimizingWindow.getRenderingSurface(),
"FRONT", "TEXTURE_2D", 0,
"RGB5", 0, 0,
optimizedPaperSize, optimizedPaperSize, 0)
+
+ # Apparently, NV drivers 44.96 (maybe others) have some trouble
+ # with the 1x1 mipmap getting clobbered.
+ # Usually, that wouldn't be a problem, but papers will be viewed
+ # 1) at largely different scales
+ # 2) blurred for text background
+ # so this matters.
+ # We shall forbid the use of that mipmap
+ tex.setTexParameter("TEXTURE_2D",
+ "TEXTURE_MAX_LEVEL", optimizedPaperMaxLevel)
+
if dbg:
vob.putil.texture.printTex(tex.getTexId())
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ff-cvs] libvob/vob/paper papermill.py,
Tuomas J. Lukka <=