Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,088 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
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
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

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
J
jane Offline
Member
jane  Offline
Member
J

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: jane] #342223
09/25/10 05:35
09/25/10 05:35
Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
sPlKe Offline OP
Expert
sPlKe  Offline OP
Expert

Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
there was an option long ago in A4 but i guess thats out of the equation.
i neither need lights nor do i want to use a shader. i have my textures, so thats not a problem. i just wanted to know if there is a way to switch this damn thing off. map entities are out of the question.

Re: Switch off Texture Filtering? [Re: sPlKe] #342233
09/25/10 10:22
09/25/10 10:22
Joined: Mar 2006
Posts: 2,252
Hummel Offline
Expert
Hummel  Offline
Expert

Joined: Mar 2006
Posts: 2,252
you can also scale up your bitmaps without a filter in f.i. gimp. This way the textures will be less blurry in-game. But itīs a waste of memory...

Re: Switch off Texture Filtering? [Re: Hummel] #342238
09/25/10 13:55
09/25/10 13:55
Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
sPlKe Offline OP
Expert
sPlKe  Offline OP
Expert

Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
yeah. and also, they still will be blurry.
the nofilter flag woudl be perfect, since i already use it for my sprites and models. but it cant be applied to level geometry.
ive tried to export the level and import it as map entity (at least the parts that should use the flag) but it slowed down everything to below 20fps!!!!! so its also not an option...

Re: Switch off Texture Filtering? [Re: sPlKe] #342246
09/25/10 15:59
09/25/10 15:59
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
You could use a view material like this:
Code:
MATERIAL* mat_old = {
	effect ="
	texture entSkin1;
	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;




www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Switch off Texture Filtering? [Re: ChrisB] #342268
09/25/10 23:59
09/25/10 23:59
Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria
sPlKe Offline OP
Expert
sPlKe  Offline OP
Expert

Joined: Jul 2004
Posts: 4,206
Innsbruck, Austria


Re: Switch off Texture Filtering? [Re: sPlKe] #342385
09/27/10 07:25
09/27/10 07:25
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Code:
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 Offline OP
Expert
sPlKe  Offline 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.
Re: Switch off Texture Filtering? [Re: sPlKe] #342394
09/27/10 10:47
09/27/10 10:47
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
maybe you had some fog effect / sprite on the floor.

Page 2 of 3 1 2 3

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1