Omnipresent Bmodels
#2796 posted by negke on 2017/06/03 14:29:56
What is it with Quakespasm that makes it draw certain brush models regardless of their actual visibility - always and on the other side of the map, even from the outside. Unnecessary triple digit epoly boost.
What's going on and how can I work around the system? Check detail1.jpg from my post in the Tyrutils_ericw thread as an example: the square things in the bottom right corner. Originally, there were some columns in the back of the map as well, but I had returned them to world geometry already.
BModels
#2797 posted by mh on 2017/06/03 15:01:47
Sounds like it's just the "brush model in too many leafs" fix.
Note that because QS uses VBO drawing and draw call batching poly counts aren't as relevant.
Yeah
#2798 posted by ericw on 2017/06/03 19:49:28
that's the "flicker fix" we implemented. QS's MAX_ENT_LEAFS is 32, so I think the way it works is if an entity bbox spans more than 32 leafs, the server will make it always visible rather than potentially flicker.
Workarounds would be simplifying world geometry where the bmodel is or shrinking the bmodel.
Or Splitting It Up Into Multiple Bmodels
#2799 posted by Qmaster on 2017/06/05 02:09:18
#2800 posted by mh on 2017/06/05 11:53:16
When this problem really came forward in community consciousness (http://forums.insideqc.com/viewtopic.php?p=26885#p26885) I had just recently fixed it by dynamically recalculating visibility for each client, for each entity, each frame. That was effective (it wouldn't have pulled large bmodels into the PVS all the time) but caused hugely excessive CPU load.
It turns out that in this case just drawing it anyway is a more efficient approach, at least for hardware-accelerated engines (the point I made above about r_speeds counts not being so relevant to a properly-optimized renderer can't be overstated enough).
Jpg Screenshots?
#2801 posted by megaman on 2017/06/13 12:42:26
Might be a good feature? It's really annoying to convert from tga...
Though Png Might Be Good As Well...
#2802 posted by brassbite on 2017/06/13 12:59:38
+1 For PNG Screenshots
Yeah Agreed
#2804 posted by ericw on 2017/06/13 20:29:28
I am always installing GIMP or using imagemagick to convert to png, it's a pain.
@Fifth
I'll try to look into a cvar for the classic behaviour of "always run" before the next release.
@boristhesp1der (late reply!) glad you liked tfuma, Fifth built the majority of the map and I took over finishing gameplay and routes, w/ contributions from sock. I did set up that slime pit fight :)
Ideally PNG & JPG
#2805 posted by megaman on 2017/06/14 15:36:25
But for most web stuff you need JPG-compression, and for the rest TGA is mostly not a problem.
#2806 posted by Rick on 2017/06/14 16:38:46
JPG is not really "needed" for web use, it just the most common. Many times it gets used when PNG would be the better choice.
I always wondered why Quake used TGA, which is an obscure format and pretty much obsolete now.
Even if its improved capabilities aren't used, I think PNG is the best choice, but for in-game screenshots JPG is probably fine as long as the compression is low.
#2807 posted by metlslime on 2017/06/14 17:43:56
The code to write TGA is pretty simple, that might be why. Or maybe it was compatible with other software they used at id at the time.
#2808 posted by khreathor on 2017/06/14 18:48:12
Simple and fast. PNG with compression will take longer. It will freeze game for a second.
Of course I'm just speculating.
I Prefer TGA Actually
I prefer to start with uncompressed images. It's easy enough to convert quickly with any number of apps. I use something similar to this: https://www.imageconverterplus.com/features/right-click-menu/
@metlslime id was most likely was using Truevision video accelerators in their Windows machines back then. TGA was originally from Truevision.
PNG Is Lossless
#2811 posted by mh on 2017/06/14 20:41:27
Software Quake used PCX. Because that was an 8-bit renderer it was also just a simple matter of "dump the pixels".
According to Carmack's .plan file ID were using Intergraph accelerators on NT as their graphics workstation platform of choice at the time GLQuake was written.
PNG format didn't even exist when Quake was released. First release of PNG was October 1996.
TGA offers simplicity and speed, although nowadays with disk IO being the primary bottleneck for many operations a compressed format may well be the faster option, at least until SSDs go cheaper than spinning plates of rust.
#2809
#2812 posted by khreathor on 2017/06/14 20:57:01
I prefer to start with uncompressed images. It's easy enough to convert quickly with any number of apps. PNG has lossless compression. It's like ZIPping TGA, but in one operation. It is easier to preview and maintain.
@khreathor
Got it. Obviously PNG would be the most handy format at the moment especially for immediate sharing. I take the previewing aspect for granted as I have the aforementioned shell viewer/converter and Photoshop.
Rick
#2814 posted by megaman on 2017/06/15 00:50:01
JPG is not really "needed" for web use, it just the most common. Many times it gets used when PNG would be the better choice.
Read about how those compression algorithms work and when they're appropriate to use.
I.e.
#2815 posted by megaman on 2017/06/15 00:51:06
Quake screenshots are not a good case for png, but are OK for jpg.
#2816 posted by ericw on 2017/06/15 01:30:35
Quake with texture filtering off is a bad case for JPEG, though. JPEG is also a bad choice if you want to make brightness adjustments afterwards, especially extreme changes (something I often do when I get screenshots of lighting bugs.)
Ideally JPG, PNG, TGA would be available. I think MarkV can do those and has a cvar to pick the format.
#2817 posted by Spike on 2017/06/15 03:02:34
aye, jpeg sucks. you can reduce the compression to get something close to png, but doing so just increases the filesize too. if you've got high res textures (which frankly just look like noise in the first place) etc then jpeg can't make it any worse, but otherwise imho png is a better choice than jpeg at least for a default setting.
(windows) bmp might work if you want something more equivalent to tga, its basically just a different header but much better supported (at least on windows and except by quake engines). it can also be paletted, and doesn't need extra libraries.
but png is best if you're going to shove it on a website (and why take screenshots if not to share them).
#2818 posted by mh on 2017/06/15 06:22:03
The problem with BMP is that each row must be a multiple of 4 bytes, so for odd resolutions like 1366x768 or if you want 24-bit data you can't just fwrite the output from a glReadPixels.
#2819 posted by Baker on 2017/06/15 07:51:22
Open the source code for JoeQuake. There are 3-5 headers. 1 cvar. Link libpng and libjpeg. Call the appropriate function to write a png or jpeg. 30 minutes tops.
Guyz, Check Out This 8mb PNG Shot Of Some Nondescript Area In My Map!!
#2820 posted by negke on 2017/06/15 09:25:15
Well okay, TGA isn't particularly small, either...
|