Removing texture blur
Blitz3D Forums/Blitz3D Programming/Removing texture blur
| ||
Hi, I read in an old thread it isn't easy to remove blitz3d standard texture blur, any idea if that's true and if so what the methods are to load textures in and keep 'em nice and pixelated? There was a 'fix by Si' mentioned and a 'DLL by Tom' but haven't quite located them yet! Cheers, LW. |
| ||
I suppose that would be mipmapping ? It is part of the texture filters (no 8). I think you can remove it with this before loading/creating textures:ClearTextureFilters TextureFilter "", 1 or create the texture with the app. flags set: tex1= LoadTexture("test.bmp", 1) tex2= CreateTexture(64,64,1) |
| ||
I'm not sure it is that, looking at some similar posts, as removing mipmapping from a textured sprite doesn't leave a nice sharp pixel image on the sprite I'm afraid. Also I seem to get an outline on the sprite which is also a bit strage! The outline colour appears to be my png alpha colour.. but only 1 pixel thick around the player, the rest of the image isn't drawn, as expected. Cheers, LW. |
| ||
Do you mean this thread ? http://www.blitzbasic.com/Community/posts.php?topic=40848 The commands that are in that .dll are also present in Devils shadow system. Maybe you'll have more luck downloading that instead. http://www.blitzbasic.com/Community/posts.php?topic=64142 |
| ||
Thanks Warner, I'll take a look. Cheers, LW. |
| ||
I've found that if you don't set the flags 16+32 to clamp the U and the V, then some of the texture pattern seeps through. |
| ||
Anyone still got a working version of the DX7 dll? |
| ||
Never mind, just bought the complete Fastlibs package instead. |
| ||
...so using fastlibs it is easy enough to switch off filtering and get nice sharp pixely sprites? Cheers! LW. |
| ||
Hi, I have the fastlibs demo, but it appears you can't use it to make the texture on a sprite pixel perfect? Perhaps it is user error :) Also the outline of my sprite has an outline that I can't shift (I tried the clamp params but no joy), any ideas? (snapshot here - ![]() Cheers, LW. |
| ||
Looks like your alpha channel or mask is not perfectly correct - is it filtered or is it pixel-sharp? |
| ||
Hi, I'd like it to be pixel sharp, but I don't know how to achieve that.. so by default it is filtered (blitz3d sprite), afaik? The images are .png exported from sprite forge, painted onto b3d sprites btw. Cheers! LW. |
| ||
I`ve been hoping that this would be added for years, I even emailed Mark about it once but sadly I did not recieve a reply :( If it was left out of B3D for a valid reason then fair enough but it would be nice to hear from the man himself. Maybe Mark will see this thread and give us an answer. Jason. |
| ||
To have pixelperfect sprites in fastlibs you have to use right texture sizes. 64x64,128x128,256x256,512x512 and so on. |
| ||
Ah, thanks I'll try that. |
| ||
Yeah, reason being blitz (gfx card?) will try to resize them if there aren't. |