Texture Loading
#249 posted by mh on 2018/03/06 04:53:23
You can enumerate paths one time only at startup then only search the paths that actually exist when loading textures. Sort a PAK file directory and binary-search it. Use the native API which has faster calls for determining if a file exists rather than putting everything through stdio.
The point is, you can be a little intelligent about how you approach problems and it doesn't require creating hugely complex code.
#250 posted by mankrip on 2018/03/06 06:54:30
It's better to do the path enumeration at the beginning of map loading, in case the user alt-tabs to add more assets without closing the engine.
I often add more external textures and reload the map in-game when mapping.
#251 posted by mh on 2018/03/06 08:51:24
Yeah, that would work better.
I Want To See...
#252 posted by Shambler on 2018/03/07 10:00:59
...TB including a GL-filter mode as default so when we're watching streams of people making otherwise awesome looking maps, we don't have to have them ruined by shitty square pixels everywhere when the mapper is zooming around in and out of brushes.
Also I want to see the return of Baker once his hangover finishes.
Shambler
#253 posted by Kinn on 2018/03/07 10:17:11
Just smear some Vaseline on your screen. I'm sure you must keep a jar of the stuff near your computer.
Bler
Unfiltered textures in TB are very helpful for when I'm doing some complicated (i.e. everything on a 45 angle) texture alignment.
Shambler
#255 posted by bal on 2018/03/07 11:06:25
TB already has a GL-filter mode, just no one uses it (for the reasons you already know... :D )
Sigh. Quake Ruined.
#256 posted by Shambler on 2018/03/07 11:30:05
[10:23] Kinn: @Shambler - are you sure that your blurry vision quake mode doesn't just make the surfaces of the world just appear all smooth and sterile and devoid of life?
[10:25] Shambler: i don't have blurry vision quake mode, i have smooth vision quake mode
[10:25] Shambler: and generally to avoid "sterility and devoidness of life" in any imaging situation, my first thought isn't "add lots of little squares like a mosaic"
[10:25] Shambler: unless, of course, i wanted a mosaic
[10:25] Shambler: which i don't
Shambler Needs More Pixels Not Less
#257 posted by Qmaster on 2018/03/07 13:16:49
#258 posted by eukara on 2018/03/07 16:40:15
Texture filtering in Quake was a mistake.
#259 posted by Shambler on 2018/03/07 16:42:41
Your conception was a mistake. Your mom told me as much.
#260 posted by mankrip on 2018/03/07 16:57:41
Quake with unfiltered textures looks great, if you play it in the originally intended resolutions. In 1996, 640*480 was the highest resolution that achieved playable framerates in most high-end machines.
I used to play it at 512*384 in a Cyrix MII-300 in the early 2000s. Had a solid 12 fps which was surprisingly enjoyable, and looked pretty good to me.
Nowadays, its texel-to-pixel ratio at the highest playable resolutions is poor.
Mankrip Knows What I'm Talking About
#261 posted by Qmaster on 2018/03/07 18:53:21
We don't need filtering, just higher texel density. Love my crisp edges!
I wouldn't mind seeing a coop episode in AD. Something that detects coop and requires two people to progress if coop is on. E.g. two pressure plates require both players on them to open a door...one player stand on a pressure plate while another shoots an exposed button juuust out of view of the player on the pressure plate. You could use the dual pressure plate idea to split players up across two sides of a room, Portal 2 style, and have them fighting and helping by shooting across the gap.
#262 posted by mh on 2018/03/07 19:13:47
Unfiltered Quake looks fantastic.
Aside from the sharper edges on things, textures just pop with detail compared to the filtered versions.
Compare:
http://www.quaketastic.com/files/screen_shots/Q1-Unfiltered.jpg
http://www.quaketastic.com/files/screen_shots/Q1-Filtered.jpg
More than just fullbrights and overbrights was lost in the initial SQUEEEEEEE-fest over GLQuake.
Actually
#263 posted by bal on 2018/03/07 19:17:46
Good filtering is much more important with high resolution images than it is with low res stuff (where it just makes them blurry).
#264 posted by metlslime on 2018/03/07 20:58:55
One thing i like about filtering is that how smooth it looks in motion, in unfiltered mode is the scene is very noisy/sparkly as you move the camera.
However, filtered mode makes each pixel less vibrant/contrasty, everything gets a little bit more gray and colors shift towards the local average. For example that wall texture in e1m6 has lots of little single pixels of green and blue that pop really nicely in gl_nearest, but in gl_linear they are dulled and dim, and blend into more of an average grey. I feel that's one of the main reasons quake world textures look better unfiltered, it's the pixel art precision of some details that get desaturated and dulled in filtered mode.
Agreed!
#265 posted by Qmaster on 2018/03/07 22:35:56
Ok, since metl mentioned it, the sparkly pixel movement phenomena is temporal aliasing. I want temporal antialiasing in Quake.
Get Him!!! (Yells The Engine Coders)
#266 posted by Qmaster on 2018/03/07 22:36:28
#267 posted by mh on 2018/03/07 23:47:00
GL_NEAREST_MIPMAP_LINEAR is the best compromise IMO. Sparkles are caused more by not using mipmaps than by using nearest filtering, and linear sampling between miplevels eases miplevel transition artefacts. The other improvement is to use screen-space derivitaves from unwarped texcoords when sampling warped textures, otherwise they shift between miplevels as they warp. One of those things you normally don't notice until it's pointed out to you, then you can't stop noticing it.
#268 posted by metlslime on 2018/03/08 00:08:24
yeah my settings are GL_NEAREST_MIPMAP_LINEAR + anisotropic set to the max. The thing i don't like about mipmapping in hardware rendering is how floors (and other edge-on polygons) blur into a solid color, and anisotropic reduces that problem quite a bit.
#269 posted by mh on 2018/03/08 00:15:30
Agreed, anisotropic is essential. Different people are different, so I tend to find anything beyond 4x is not that big a deal, but I won't go below 4x.
Edged Mipmapping Artifacts
#270 posted by Qmaster on 2018/03/08 00:29:45
It would be nice if there was a way to detect the edge of a face that also corresponds to the edge of a texture and clamp the texture so that it doesn't bleed the color from the opposite side of the texture over.
What I Would Like To See!..?
#271 posted by Redfield on 2018/03/08 05:54:48
I want to see all of the models from Banjo Kazooie converted to mdl, with all of the animations kept intact. The Quake marine's model should be altered to have a backpack on his back that Kazooie occasionally pops out of. Also, the Quake marine can now double jump, and on the second jump the player can see Kazooie pop out of the backpack and flap her wings. Also, I would like to see a map that completely re-creates Gruntilda's lair and... Ahh f*ck it, I'm just going to go play Banjo Kazooie...
Seriously, I would love to see some kind of volumetric fog implementation similar to what is seen in Quake 3.
#271
#272 posted by mjb on 2018/03/08 06:12:36
Centerprint with constant cheesey rhymes
Gruntilda Says:
#273 posted by Redfield on 2018/03/08 06:24:02
Ranger will end up slobbering,
after the Shambler gives him a clobbering.
And so forth.
|