Sharp textures
Blitz3D Forums/Blitz3D Programming/Sharp textures
| ||
Is there a way to put a sharp texture on 3d? THe blurr on blitz3d is great, but sometimes i want sharpness.... |
| ||
Use a higher resolution texture. There is no way to remove the blur when a texture is scaled up. |
| ||
I already use high res textures!!! |
| ||
If you could control the way mipmapping in B3d worked....maybe.. |
| ||
try this, right after you use the graphics3d command: cleartexturefilters I find that sharpenes eveything upnicely - it sometimes has strange effects on some textures. IPete2. |
| ||
What you want to do is use the ClearTextureFilters command, but only on textures that you don't want the mipmapping applied to. If you apply it the everything then you can possibly have memory and rendering problems - try it on a Quake 3 BSP level and see what happens - on my system the response rate of the program drops to about 1 input per 3 or 4 seconds. So, layout your program like this - ClearTextureFilters TextureFilter "",1 ;load textures / models to have no mipmapping tex1 = loadtexture("whatever") model1 = loadmesh("whatevermesh") etc.. etc.. ClearTextureFilters TextureFilter "",1+8 ;load normally mipmapped textures / models here tex2 = loadtexture("whatever2") model2 = loadmesh("whatevermesh2") etc.. etc.. |
| ||
I wouldn't recomment using sharpness at brick and other kinds of textures with repeating lines and figures (quite obvious, eh, to avoid the flickering). On character textures, it's mostly nice though. |
| ||
Most are gui Images. |
| ||
gui, static images on -natural- size. and even so they're a bit blurres, even without mipmapping |
| ||
You need to take care with pixel / texel alignment to get pixel perfect quads: http://www.blitzbasic.com/codearcs/codearcs.php?code=773 |
| ||
wow that crrtianly sharpened certain areas, gotta see If bank writting is possibekl over unit writting... matter of speed (16 secs on a powerful machine to process 1 big bg image) |