News for hackers. Stuff that matters.
Re:Byte Ordering: On Holy Wars and a Plea for Peace (1980) by 1000100_1000101 on Monday September 16, 2024 @09:38AM (#41555948)
Direct3D made this a thing. Trying to draw unscaled 2D elements you often end up with blurry images as it bilinearly filters with the neighbouring pixels.

This is because of a mess with where it considered pixels located, where texture samples are considered located, and where, when rasterizing an included pixel, the texture coordinates sampled. See detail at [0].

If your graphics API was blurring all your images, you'd be passionate about that half-pixel offset too.

[0] https://www.gamedev.net/blogs/entry/1848486-understanding-ha...

Re:Byte Ordering: On Holy Wars and a Plea for Peace (1980) by bonoboTP on Monday September 16, 2024 @02:54PM (#41559274)
I can relate. Spent countless hours on this stuff with computer vision and convnets. The intricacies of align_corners, implementation differences between deep learning frameworks, striding and pooling when numbers aren't neatly divisible, uuh.