Clearwater
@Clearwater@lemmy.world
- Comment on Valve pinch a little code from Godot for Half-Life 2, Counter-Strike: Source, Day of Defeat: Source, Team Fortress 2 3 days ago:
Reference: 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 as well (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 texture 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” value. It’s a slower method than linear, but it resolves the stair-stepping problem.
- Comment on See something you like? 2 weeks ago:
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.
- Comment on USA | Bird flu detected in raw milk sold in California as fears rise of virus spreading 2 months ago:
Several years ago I had raw milk on a farm and it tasted incredible. I imagine that has more to do with the fact that that it gone from cow to mouth in about 30 second than with pasturization, right?
- Comment on I'm so sorry 5 months ago:
This is literally the first post I saw when opening the app. Guess I’ll do something else.
- Comment on Checkmate, Atheists 6 months ago:
Quick search to verify…
So this is how I learn. Wouldn’t have it any other way.
- Comment on What is the most efficient method to set up a home server? 1 year ago:
Since you’re new, I’d recommend just using the old PC to start and get comfortable. Once you’re sure you want to invest some money, you can either build it buy yourself something more energy efficient if you’re super concerned about that.
As for the best OS, just any server OS will do. I run Rocky Linux which is a RHEL derivative, but you can also try TrueNas or anything else you want. Even Windows Server would work if you wanted to go that path.
There are many paths you can take, and which you go down depends heavily on personal preference and the desired use of your system.
- Comment on My new favourite password manager 1 year ago:
I use KeePassXC, but am assuming KeePass is very similar.
You’ll have a single file on your machine that is your encrypted password database. Syncing is not handled by the app and is your responsibility.
If you want to sync only when you get home, as long as your app to manage that is fine with it, KeePass won’t know or care.
Keep in mind if you make changes on two devices without keeping them in sync, one will probably get overwritten unless you take special care to handle it. (My sync app warns me, then I take both conflicting files and in the KeePass app, I can merge them to solve the conflict without data loss.)
- Comment on Rechargeable Water Dispensers: A Modern Hydration Solution 1 year ago:
Excuse me what the fuck?
- Comment on Any domain registrar/hosting provider that does not require propietary software to run? 1 year ago:
No reputable registrar requires you to run an executable on your machine. JavaScript is as far as it’ll get.
I’m sure many registrars work without JS, but if I had to be sure of any one in particular, it’d be Njalla. They even have an onion site and accept monero, so they almost certainly function without JS.
- Comment on Plagiarism and Self-Plagiarism: What’s the Difference? 1 year ago:
At least be honest and say this post is an ad.