Tested The October 2014 Build
#597 posted by adib on 2015/04/04 06:04:45
Just to keep track, I posted my test with October 2014 build at Quakeone. No fullbrights showing. Here is the test:
https://drive.google.com/open?id=0B3Ww0W8WFfq7SDdxMmxweVotRUU&authuser=0
#598 posted by Baker on 2015/04/04 19:43:38
@adib
Assume the problem is solved for the moment.
I have been procrastinating on polishing up the Mark V beta mostly because there are 4 or 5 tedious issues that are unrewarding to work through.
But I think I've waiting long enough.
Within a week, there will be a polished Mark V non-beta I will ensure this inconsistency is gone.
Fullbrights
#599 posted by mh on 2015/04/04 20:03:14
I'm of the opinion that the equivalent of glBlendEquation (GL_MAX) and glBlendFunc (GL_ONE, GL_ONE) is the most appropriate way of handling fullbrights.
The reason why is that there are areas in maps where (diffuse * light * 2) is actually brighter than the fullbright on it's own. This shouldn't be too hard to conceptualize; it's going to happen if the light is brighter than 0.5 (or 128 on a 0 to 255 scale).
The result is that you get a weird transition between normally lit texels and fullbright texels (and the brighter the light the weirder the transition).
This is easily visible on e.g the right-hand lit arrow leading into the e1 entrance in the Start map, and while using a GL_MAX blend doesn't replicate software Quake with precise fidelity, it is much more visually pleasing. (Other examples of the same concept include some lights in Quake which saturate even with 2x overbrighting, particularly if you add dynamics (although some even rarer areas don't even need that); not such a big problem for FQ as it doesn't create coloured dynamics, but very observable if you add them to it).
As a bonus you don't have to remove the fullbright texels from the source image using this method.
Unfortunately neither GL_COMBINE modes nor D3D SetTextureStageState support a maximum blend, so the only ways to do it are to multipass it or do it in a shader.
@Baker
#600 posted by adib on 2015/04/04 20:47:50
I asked you so many questions and forgot to thank you for this awesome work. Hope I could help someway.
Here is another one: does Mark V load external sky textures? There is a sky_mb1.pcx (already tried TGA and PNG as well) in my textures folder, but the engine goes on loading the internal BSP texture. How can I make it load the external one?
#601 posted by Baker on 2015/04/05 01:10:03
Just skybox support.
None of the FitzQuake/Quakespasm family of engines loads actual replacements for the 256x128 scrolling sky textures. DarkPlaces is the only engine I know offering the ability to replace the scrolling sky with a hi-res version.
[FitzQuake/Quakespasm don't + won't support PNG, just like Q3 doesn't support PNG.]
#602 posted by Baker on 2015/04/05 01:17:38
Extra info: PNG serves no purpose for replacement textures because when the set is compressed into a .zip file, it gets compressed. The only thing PNG does is require the engine to increase map load times by decompressing the textures every single time.
#603 posted by adib on 2015/04/05 01:47:47
TGA already have alpha channel, so screw PNG :)
Your skybox works neat, just tested it. So, screw iD's moving PCX.
Regarding My Issue (posts #514/533)
#604 posted by NightFright on 2015/04/10 16:02:26
I checked the vs2008 build in the 20141010 package again and noticed that liquids look fine again on my nvidia card if you use r_oldwater "1".
Dunno if that helps with solving the problem - still waiting and hoping for a fixed release.
#605 posted by Baker on 2015/04/10 23:22:38
Interesting, thanks for info. Could be involved in this somehow.
Mark V Beta 2
#606 posted by Baker on 2015/04/10 23:28:25
Anyone with sky issue (NVidia only) will still have sky issue. Still working on that as I do not have a Nvidia card available. And does not yet have the DX improvements.
http://quakeone.com/proquake/interims/mark_v_20150410.zip
This is a much nicer release than the previous one, but more to go.
The WinQuake version should work and these are proper builds. The glow textures should work.
New feature: Select text using SHIFT in the console and copy, cut and paste with CTRL+X, CTRL+V, CTRL+C, SHIFT+INS, SHIFT+DEL
More versions will follow as I eliminate the known issues. Next one might not be until Monday or Tuesday.
@NightFright Re:nvidia
#607 posted by Baker on 2015/04/11 00:02:04
How does the sky look with r_oldwater 0 and r_oldwater 1?
Does the sky look correct with r_oldwater 1?
Does the sky look wrong with r_oldwater 0?
Nightfright
#608 posted by ericw on 2015/04/11 00:48:41
also do you get any issues with "r_oldwater 0" with Fiitzquake 0.85 or Quakespasm?
#609 posted by Baker on 2015/04/11 08:37:10
@ericw -- any oldwater problems in Mark V wouldn't be inherited from Fitz, but something I introduced.
r_oldwater 0 as you no doubt know requires a bit of hand-holding (in the code) because it is ingenious evil render-to-texture trick. Likely, video mode change isn't updating it or I'm clearing (or not clearing) a buffer at the wrong time or not updating the texture at the right time.
Probably a simple oversight on my part.
Source for Beta 2 which is easy to build (compiles out of the box with a key press) for Visual Studio 2008 or CodeBlocks (or Visual Studio 6 with service packs). The WinQuake build does use assembly language for speed and the project files compile those easy.
(The structure of the source is a bit more complex than I prefer, partially due to Nehahra support and Direct3D support.)
#610 posted by Baker on 2015/04/11 08:37:16
@ericw -- any oldwater problems in Mark V wouldn't be inherited from Fitz, but something I introduced.
r_oldwater 0 as you no doubt know requires a bit of hand-holding (in the code) because it is ingenious evil render-to-texture trick. Likely, video mode change isn't updating it or I'm clearing (or not clearing) a buffer at the wrong time or not updating the texture at the right time.
Probably a simple oversight on my part.
Source for Beta 2 which is easy to build (compiles out of the box with a key press) for Visual Studio 2008 or CodeBlocks (or Visual Studio 6 with service packs). The WinQuake build does use assembly language for speed and the project files compile those easy.
(The structure of the source is a bit more complex than I prefer, partially due to Nehahra support and Direct3D support.)
Nvidia GF GTX 770 And New Build
#611 posted by NightFright on 2015/04/11 09:21:35
With the new build (using mark_v.exe), behavior is exactly the same as with the previous version.
Using r_oldwater "1" only fixes liquids and teleporters, but NOT skies. Setting the variable to 0 breaks liquids, too (white surfaces).
Nothing has changed about my hardware setup since post #514, just using newer nvidia driver (v347.52). I have another system with an older nvidia card running on Windows 7 x64 (4GB RAM) which doesn't have show any issues at all, btw.
Config.cfg File
#612 posted by NightFright on 2015/04/11 09:31:58
If it helps, here is my current config.cfg. Maybe there is another variable in it which I might try changing.
Config.cfg (3KB)
#613 posted by Baker on 2015/04/11 09:46:20
I'd bet the farm on this being the graphics driver.
And since you provided the version #, maybe I have a shot in addressing it.
(I've seen DarkPlaces users mention certain driver #s being bad several times. I didn't expect this kind of thing to enter my world of "classic Quake appearance engines" but if this driver # can cause the problem, maybe I can target it. Nvidia used to have the reputation of providing stability and ATI was the shoddy/incompatible vendor. I don't claim to know much about graphics card drivers but things I have read makes it sound like they traded places.)
@NightFright
#614 posted by Baker on 2015/04/11 09:53:16
In the gl version, type gl_clear 1
Does this fix the sky issue?
[The r_oldwater 0 issue is separate deal, I have plan to fix.]
Gl_clear
#615 posted by NightFright on 2015/04/11 11:56:52
Setting this through console unfortunately doesn't have any visible effect, sky on start map still looks like in post #533.
My driver settings in nvidia control panel:
Anisotropic Filtering: Application-controlled
Antialiasing - FXAA: Off
Antialiasing - Setting: Application-controlled
Antialiasiang - Gamma correction: On
Antialiasing Mode: Application-controlled
Antialiasing Transparency: Off
Refresh Rate: Application-controlled
CUDA-GPUs: All
DSR Factors: Off
DSR Smoothing: Off
Triple Buffering: Off
Energy Saving Mode: Adaptive
Max amount of prerendered frames: Use settings of 3D application
Shader cache: On
Texture Filtering: Anisotropic Pattern Optimization: Off
Texture Filtering - Negative LOD Bias: Allow
Texture Filtering Quality: High Quality
Texture Filtering - Trilinear Optimization: On
Threaded Optimization: Auto
SSAO: Off
Vertical Sync: Use settings of 3D application
Prerendered VR frames: 1
My monitor refresh rate is at 120 Hz, if that matters at all.
#616 posted by Baker on 2015/04/11 20:48:07
Mark V Beta 3
r_oldwater 0 issue gone. Was trying to resize warp image buffer before valid screen width/height determined.
One Problem Less!
#617 posted by NightFright on 2015/04/12 00:18:13
Fix confirmed, works. ^^ Now all that's left to do is looking up to the sky!
Btw, before you release the final version, is there any chance to add a menu toggle between gl_nearest_mipmap_linear ("classic") and gl_linear_mipmap_linear ("smooth") texture filtering? Currently, you still need to put this into autoexec.cfg if you prefer the "pixel look".
My pc is saying it's a virus. :D
I just turned off the virus protection to download it. When I turned the virus protection on again the files were deleted.
Windows 8 doesn't like your program there Baker!
If It's A Virus, Then A Good One :P
#620 posted by NightFright on 2015/04/12 00:45:48
I think that's rather an issue with your AV. :P I am using Panda Free AV on Win 8.1 here without issues.
#621 posted by Baker on 2015/04/12 01:51:01
http://quakeone.com/proquake/interims/mark_v_20150410_without_dx8.zip
The DX8 version (but not the GL version and not the WinQuake version)) somehow triggers Microsoft (and only Microsoft's) malware detection as some old Trojan from 2006.
61 other virus scanners say the dx8 version is not malware.
Go figure ...
https://www.virustotal.com/en/url/b4f88f7ed8a4eac7b57dc4804229437d9a8a4de6dbd75e4b80ee6f853f399fcf/analysis/1428796006/
|