1 registered members (Ayumi),
1,088
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Switch off Texture Filtering?
[Re: sPlKe]
#342179
09/24/10 12:53
09/24/10 12:53
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Bugger. Well in that case I would personally use a shader that has disabled bilinear filtering in the texture sampler.
Using a shader might be a great way to get a better effect anyway, like if you want a similarly pixelated lightmap, or want to quantize the dynamic lighting to get a deliberate banding effect.
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: Switch off Texture Filtering?
[Re: sPlKe]
#342183
09/24/10 13:49
09/24/10 13:49
|
Joined: Nov 2008
Posts: 216
jane
Member
|
Member
Joined: Nov 2008
Posts: 216
|
Import the level.wmb as Mapentity and the NOFILTER Flag is available. to the textueres use a filter in your paintprogramm (mosaik or Facettes), this make a pixeleffect on textures.
Last edited by jane; 09/24/10 13:51.
|
|
|
Re: Switch off Texture Filtering?
[Re: sPlKe]
#342385
09/27/10 07:25
09/27/10 07:25
|
Joined: Aug 2008
Posts: 482
bart_the_13th
Senior Member
|
Senior Member
Joined: Aug 2008
Posts: 482
|
MATERIAL* mat_old = {
effect ="
texture entSkin1;
texture entSkin2;//you forgot this one
technique old_school
{
pass p0 {
Texture[0] = <entSkin1>;
MinFilter[0] = POINT;
MagFilter[0] = POINT;
MipFilter[0] = POINT;
Texture[1] = <entSkin2>;
MinFilter[1] = POINT;
MagFilter[1] = POINT;
MipFilter[1] = POINT;
TexCoordIndex[0] = 0;
ColorArg1[0] = Texture;
ColorArg2[0] = Diffuse;
ColorOp[0] = Modulate2x;
}
}
";
}
...
camera.material = mat_old;
|
|
|
Re: Switch off Texture Filtering?
[Re: bart_the_13th]
#342392
09/27/10 10:21
09/27/10 10:21
|
Joined: Jul 2004
Posts: 4,206 Innsbruck, Austria
sPlKe
OP
Expert
|
OP
Expert
Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
|
ahjhhhhhhhhhhhhhhh that works.
but the problem i have now is that my floor just appears out of nothing before my eyes. walls and everything is fine, but the floor texture seems to materalize out of nothing. the whole floor is white and it just pops in, like a very close draw distance. funny enough, walls and everything are alright.
edit: forget the FPS part. error on my end.
Last edited by sPlKe; 09/27/10 10:29.
|
|
|
|