I warned you all this might happen...
I've gone back and worked more on my torch coronas/depth testing code. Identified a few bugs in it, cleaned up some items, and made it more compatible with variable resolution and FOV settings. I'm fairly satisfied that the implementation I have is quite solid now, the sole remaining item being to fade out coronas as they become occluded, rather than suddenly making them invisible. This will handle cases where a corona would otherwise pop in and out of visibility. It's a tradeoff between a corona fading when it would otherwise be occluded (which I can explain away as "afterglow" anyway) versus major ugliness.
While working on this, I discovered an interesting "feature" of glDrawPixels. The spec allows for any size, but (at least on my GeForce) it barfs badly if you don't use a size that's a multiple of 8.
One more not-so-nice thing is that ATI's drivers seem to be unhappy reading GL_DEPTH_COMPONENT data with a format of GL_FLOAT. Just Google it for many tales of woe. Unfortunately I'm using GL_FLOAT, so my options are:
- Switch to a format that ATI supports.
- Switch to Direct 3D and get rid of all ATI weirdness once and for all.
- Include an "ATI compatibility mode" which hard-disables anything ATI has trouble with (overrideable on the command line, in case they ever fix their rubbish drivers).
Anyway, moving on...
I've also added some motion blur, occurring when you're damaged (like on Doom 3), dead (I want death to look like it's something truly awful in the Quake world) or underwater (looks nifty and is a good replacement for underwater warping).
I need to make all these effects cvar controllable and add menu options for them, by the way. I also want to add a menu option for reverting to the classic HUD and particles, for all the arch-traditionalists out there.
Did I mention that I removed the BSP texture mipmap level 0-3 reading? It turned out that it had an abnormally high level of isotropy - so high as to be unacceptable.
A bug in the surface refresh has popped up, so I need to revisit that - again!
Hey, you can have this engine now or you can have it the right way......
1 comments:
I apologize for a question... Where it is possible to see or downloads this engine MHQuake?...^_^
Post a Comment