Sharp textures

Blitz3D Forums/Blitz3D Programming/Sharp textures

kalimon(Posted 2004) [#1]
Is there a way to put a sharp texture on 3d?

THe blurr on blitz3d is great, but sometimes i want sharpness....


sswift(Posted 2004) [#2]
Use a higher resolution texture. There is no way to remove the blur when a texture is scaled up.


kalimon(Posted 2004) [#3]
I already use high res textures!!!


Genexi2(Posted 2004) [#4]
If you could control the way mipmapping in B3d worked....maybe..


IPete2(Posted 2004) [#5]
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.


Vorderman(Posted 2004) [#6]
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..



ChrML(Posted 2004) [#7]
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.


kalimon(Posted 2004) [#8]
Most are gui Images.


kalimon(Posted 2004) [#9]
gui, static images on -natural- size.

and even so they're a bit blurres, even without mipmapping


skidracer(Posted 2004) [#10]
You need to take care with pixel / texel alignment to get pixel perfect quads:

http://www.blitzbasic.com/codearcs/codearcs.php?code=773


kalimon(Posted 2004) [#11]
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)