Clearwater

joined 2 years ago
[–] Clearwater 10 points 2 days ago* (last edited 2 days ago)

Reference: https://developer.valvesoftware.com/wiki/Lightmap

Skipping over some details and simplifying this to (hopefully) make it something anyone can reasonably understand: For Source in particular (as other engines may do things differently), maps start out as being fully bright without shadows. Here is an image I stole off a google search showing what that looks like:

When the map is being compiled (or exported or whatever term resonates with you the best), the lights placed within the map (and probably sky information too) are used to determine what parts should be covered in shadow and what should be brightly lit. The result is called the lightmap. (The lightmap itself doesn't have any texture of, say concrete. It only stores data along the lines of "this light brightness here is 50%"). By taking the texture of the surface (concrete, asphalt, stucco) and darkening / lightening it according to the lightmap, you then end up with a lit version of the map which does have shadows.

Now on to the bicubic part: To keep the size of map files down, and reduce the resources required to load it, lightmaps by default render at a resolution of one pixel per (approximately) 40 cm or roughly one pixel per 1.5 ft. This low resolution is perfectly fine since the shadow of a building or highway overpass doesn't need to be especially detailed beyond just "it's dark over there". Where required, the map author can increase the resolution in the spots that require additional detail. However, there is still one problem: When rendering a frame for you to view, the low resolution lightmap is "scaled up" to cover the entire surface, and you don't want pixelated shadows. The fast way of handling this is linear scaling, where to find the value of a "scaled up" pixel, you just take the values of the nearest "original pixels" and simply average them (with more weight given toward nearer "original pixels" than farther). While extremely fast, this leads to stair-stepping as shown in the top-left panel:

Bicubic is just a fancier method of finding the value of that "scaled up" pixel. It's a slower method than linear, but it resolves the stair-stepping problem.

[–] Clearwater 2 points 2 days ago* (last edited 2 days ago)

You don't need schools when you can get AI to write the code for you!

This is exhausting.

[–] Clearwater 4 points 1 week ago

The earliest thing I remember with certainty it's correct was my friend across the street, who was older than me, asking me to look up "naked girls" for him.

[–] Clearwater 25 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I have an old tractor, and the manuals for it were unavailable except for one company which scanned them, put their own cover on it, and demanded $20 for access to the PDF (over $60 for printed).

Rather than give them a dime, I located original copies of each and every book associated, purchased them (only around $25 each), scanned them myself, and uploaded my versions to Archive. Now my copies are the top result when you search the names of the manuals.

Fuck those guys.

[–] Clearwater 3 points 2 weeks ago

To be real, the fact that refrigeration only moves heat is a rather weird concept, and you generally don't notice the heat from a fridge under normal operation.

If she had the compressor running continuously, she might noticed the kitchen being warmer than other rooms but probably would have almost certainly assumed something else was the cause.

[–] Clearwater 6 points 2 weeks ago (1 children)

I have one hen who is a cross of buff orpington, barred rock, and various random breeds. She is a pretty bird but that is a gorgeous one.

[–] Clearwater 6 points 2 weeks ago

Ah, that's a problem. I use the Eternity client and while previews are compressed to oblivion while scrolling, I simply tap to view the full resolution.

[–] Clearwater 8 points 2 weeks ago (2 children)

Works, but I prefer a single image since I can more easily tap > share once and be done rather than repeating for multiple images.

[–] Clearwater 3 points 3 weeks ago (2 children)

I love you because one day you walked into my house, wouldn't leave despite repeatedly being told to, and then I eventually gave up and let you sleep in my bed.

[–] Clearwater 2 points 1 month ago

There are some traps I'll consider a calculated risk.

[–] Clearwater 22 points 1 month ago (2 children)

I'm just going to leave this discovery here.

https://arbutusmedical.com/drillcover-hex/

[–] Clearwater 1 points 2 months ago

I currently (until I eventually get around to setting up a jump sever) use this exact setup. This is because CF tunnel is free, easy, and bypasses any ISP-level tomfoolery that blocks port forwarding, which the last being the most crucial to me.

I will eventually get around to setting up my own equivalent tunnel, however that's not free and not as easy as CF tunnel.

view more: next ›