85 |
private void pa(String s) { System.out.println("Foo::"+s); |
private void pa(String s) { System.out.println("Foo::"+s); |
86 |
|
|
87 |
|
|
88 |
public void example() { |
public void example(int i) { |
89 |
p("Just a test") |
p("Just a test " + i) |
90 |
} |
} |
91 |
} |
} |
92 |
|
|
93 |
If you use this, debug string is always created and that isn't very efficient in java. |
If you use this, debug string is always created using immutable string concatenation |
94 |
|
and that isn't very efficient in java. |
95 |
Well, instead of previous example, write a bit longer but more efficient: :: |
Well, instead of previous example, write a bit longer but more efficient: :: |
96 |
|
|
97 |
class Foo { |
class Foo { |
99 |
private void pa(String s) { System.out.println("Foo::"+s); |
private void pa(String s) { System.out.println("Foo::"+s); |
100 |
|
|
101 |
|
|
102 |
public void example() { |
public void example(int i) { |
103 |
if (dbg) pa("Just a test") |
if (dbg) pa("Just a test " + i) |
104 |
} |
} |
105 |
} |
} |
106 |
|
|
126 |
|
|
127 |
Bilinear and Trilinear |
Bilinear and Trilinear |
128 |
|
|
129 |
- Close temrs to mipmapping. Trilinear sums 8 texels and counts |
- Close temrs to mipmapping. Trilinear reads 8 texels from two mipmap levels. |
130 |
weighted average factor from two mipmap levels. |
and calculates a weighted average |
131 |
Bilinear is same with 4 texels from one mipmap level. |
Bilinear is same with 4 texels from one mipmap level. |
132 |
Of course trilinear looks much better - it doesn't jump around. |
Of course trilinear looks much better - it doesn't jump around. |
133 |
|
|
|
|
|
|
How to use mediaserver, mstmpimg and texpacker for mipzips? |
|
|
=========================================================== |
|
|
|
|
|
0) cd gzz dir =) |
|
|
|
|
|
1) CLASSPATH=./CLASSES java gzz.mediaserver.AddToMediaserver -c ../Z-private guess ../pdfs/<article> |
|
|
|
|
|
2) make sync-private |
|
|
|
|
|
3) perl genimages.pl |
|
|
|
|
|
4) get someone with fast cpu (and harddisk io) to generate the mipzips with following script: |
|
|
|
|
|
5) make runjython DBG="gfx/util/texpacker.py ../mstmpimg/*-170-*[0-9]" |
|
|
|
|