Minor request.

Minor request.

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Minor request.

Post by smoth »

Can we get a command /mipmap to disable/enable mips? so we can disable them if we want?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Minor request.

Post by Peet »

smoth wrote:Can we get a command /mipmap to disable/enable mips? so we can disable them if we want?
Nvidia cp allows you to force them off iirc.

e: ah, you can force them on but not off >:(
Last edited by Peet on 18 Nov 2007, 08:00, edited 1 time in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

nope.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Only ATI cards can turn their off through the driver.

Personally I use the PS DDS plugin to see what the mipmaps look like and if they break transparency maps for example, if this is it what you're on about.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

nope, I hate mipmaping. Something is wrong with the way spring is showing unit and map textures and I want to find out what.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

I think it's the way that Spring is handling them, Smoth, as well. It seems to be making mipmap determinations per polygon, instead of per model within the rendering space. This is probably a cause of a fair amount of rendering inefficiency, having to test per triangle.

Spring devs, I can go fetch some screens showing objects with two levels of mip shown in the same frame, if this is unclear.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Mipmaps are handled by OpenGL, it's always determined per fragment (pixel) which mipmap(s) to apply. I think there isn't even a way to change this using OpenGL.

AFAIK, the only things that can be wrong are:
  1. mipmapping isn't enabled
  2. incorrectly downsampled mipmaps are uploaded to your card if it doesn't support hardware generated mipmaps (any modern one does AFAIK)
  3. a lower then maximum quality mipmapping setting is used, ie. NEAREST_MIPMAP_LINEAR instead of LINEAR_MIPMAP_LINEAR.
  4. mipmaps of atlased textures (projectile sprites, 3do units) are calculated wrong
Last edited by Tobi on 18 Nov 2007, 22:20, edited 2 times in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

I know if I turn on AA I get ugly lines on particles and I am not the only one.

it just seems to me something is wrong with the texturing things get blurry fast and why are we using mips? I didn't think they were needed any more?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

I've never heard of mipmapping being replaced by a superior technique.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

No, Smoth- mips help performance a lot. If OpenGL is doing this per-fragment, it explains some of the things I've seen- I assumed that this was the case.

Freelancer handled mips the same way LOD was handled- by a distance from the camera function, so that mips were handled per-object, instead of per fragment. It looked better. However, most of the time, tbh, it's really not a problem, at least in PURE- I'm just being picky.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Mips are for visual quality too, there's a lot more Moir├â┬® patterns to be seen without mipmapping because mipmapping = better downsampling when viewing textures at a lower resolution.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

we also lose quality in the texture detail as we go to a lower resolution image. For me that is vexing. I have disabled bilinear and trilinear before in options to get all my sharp jaggies. When I look at spring textures I see heavily blurred images. I do not see this in other games and I thought I did not see it when I worked in the ogre engine but sure enough it is there.

*sighs* I really want some sm3 :(. Oh well. I have no idea what to think, maybe there is no way to improve render quality. It just seems like spring has muddy over all graphics. I know that DDS is killing the detail on my textures for my maps. They come off blurry and they lose contrast in a big way. I can have a beautiful map texture and it looks like arse in game.

I am asking all of this random crap because I am largely ignorant on how this stuff works and wanted to see if there was something that maybe was over looked. I suppose the only way to really test any of this is to go in and redefine parts of the engine to look into it. Sorry for wasting time. Feel free to lock the thread.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Modern cards love mipping too early to preserve fillrate. I guess you could try enabling aniso filtering.

I think modern cards no longer blur only within the 4 texel blocks or whatever, I've had texels on my models disappear at higher MIPs because the UVs were too close to the edge, suggesting that the algorithm did blend even across the texture's edge. The texture was power-of-two, of course.
Post Reply

Return to “Feature Requests”