frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Mipmap selection in too much detail

https://pema.dev/2025/05/09/mipmaps-too-much-detail/
51•luu•3d ago

Comments

pema99•2d ago
Author here - I imagine this is a bit too niche to get much traction on HN. There's a bit of discussion on bsky https://bsky.app/profile/pema99.bsky.social/post/3lotdtgowf2...
boulos•4h ago
Great writeup!

I can't tell from your GLSL if these would have forced FMAs for a lot of the intermediate product sums. That would probably be a non-trivial effect, particularly for your large anisotropy cases.

The Heckbert paper also describes the basic theory, but you would want to supplement with some of the offline rendering work that followed it. OpenImageIO (OIIO) is pretty widely used, and has gone through several iterations of bug fixing like https://github.com/AcademySoftwareFoundation/OpenImageIO/pul...

But for your purposes, you probably just need to find all the magic epsilons and sign checks to make it match.

PaulDavisThe1st•4h ago
Totally fantastic article. I don't do work that overlaps with this at all, but even after 37+ years as a C++ programmer, I found this enlightening, engaging and informative. Thank you very much.
Agentlien•4h ago
This was a wonderful article! I love this kind of exploration.
ImHereToVote•3h ago
This is very relevant to what I'm doing. I'm trying to reproduce the MIP pipeline to get anti-aliased procedural details in fragment. specifically converting high frequency details into roughness.
ImHereToVote•2h ago
Nvidia has a quite blocky MIP selection. Did an Nvidia engineer decide that consumers don't notice, and fixed functioned the hell out of it?
lloeki•1h ago
I for one liked the article! Great visualisations.

There's a bit of nostalgia ;) Brought me back to the days where GL display lists were the fancy thing to do and any kind of non-ff shader were but a wild dream.

AshleysBrain•1h ago
Perfect blog post for HN IMO - any blog title involving "in too much detail" will probably do well! Great job with the post, the visualizations are fantastic.
hmage•51m ago
I have a hunch nvidia's mipmapping algorithm changes if you open nvidia control panel and change texture filtering to "high performance" vs "high quality"
DDoSQc•37m ago
This is great! Would've been really useful a couple months ago when I was refactoring Lavapipe's texture filtering. I worked off the Vulkan spec, which doesn't mention the elliptical transformation. I did notice that the spec says:

> The minimum and maximum scale factors (ρmin, ρmax) should be the minor and major axes of this ellipse.

Where "should" probably means some transformation can be applied (would be "must" otherwise).

Now I'm tempted to implement your visualizations so I can compare my work to your hardware references, and spend more hours getting it closer to actual hardware.

aeonik•2d ago

    "You couldn’t implement these functions yourself - they are magic intrinsics which are implemented in hardware"
But why?
pema99•1d ago
There simply isn't another way to access registers from one 'thread' on another thread without using an intrinsic. You need that to calculate finite differences. For a long time, the only option was ddx()/ddy(). Now we also wave intrinsics, which you couldn't implement yourself either.
lifelesson701•20m ago
Ap Kon he

How to Build a Smartwatch: Picking a Chip

https://ericmigi.com/blog/how-to-build-a-smartwatch-picking-a-chip/
25•rcarmo•2h ago•2 comments

RPG in a Box

https://rpginabox.com/
149•skibz•4d ago•25 comments

Writing that changed how I think about programming languages

https://bernsteinbear.com/blog/pl-writing/
80•r4um•4h ago•5 comments

Ash Framework – Model your domain, derive the rest

https://ash-hq.org/
56•lawik•3d ago•8 comments

Flattening Rust’s learning curve

https://corrode.dev/blog/flattening-rusts-learning-curve/
242•birdculture•10h ago•171 comments

Type-constrained code generation with language models

https://arxiv.org/abs/2504.09246
195•tough•10h ago•75 comments

Bus stops here: Shanghai lets riders design their own routes

https://www.sixthtone.com/news/1017072
209•anigbrowl•4h ago•155 comments

Branch Privilege Injection: Exploiting branch predictor race conditions

https://comsec.ethz.ch/research/microarch/branch-privilege-injection/
374•alberto-m•16h ago•154 comments

Replicube: A puzzle game about writing code to create shapes

https://store.steampowered.com/app/3401490/Replicube/
57•poetril•7h ago•15 comments

The recently lost file upload feature in the Nextcloud app for Android

https://nextcloud.com/blog/nextcloud-android-file-upload-issue-google/
19•morsch•3h ago•3 comments

Google is building its own DeX: First look at Android's Desktop Mode

https://www.androidauthority.com/android-desktop-mode-leak-3550321/
323•logic_node•18h ago•246 comments

Show HN: HelixDB – Open-source vector-graph database for AI applications (Rust)

https://github.com/HelixDB/helix-db/
167•GeorgeCurtis•15h ago•74 comments

Launch HN: Miyagi (YC W25) turns YouTube videos into online, interactive courses

177•bestwillcui•20h ago•99 comments

Mipmap selection in too much detail

https://pema.dev/2025/05/09/mipmaps-too-much-detail/
51•luu•3d ago•13 comments

Build real-time knowledge graph for documents with LLM

https://cocoindex.io/blogs/knowledge-graph-for-docs/
132•badmonster•13h ago•22 comments

Failed Soviet Venus lander Kosmos 482 crashes to Earth after 53 years in orbit

https://www.space.com/space-exploration/launches-spacecraft/failed-soviet-venus-lander-kosmos-482-crashes-to-earth-after-53-years-in-orbit
144•taubek•3d ago•100 comments

Multiple security issues in GNU Screen

https://www.openwall.com/lists/oss-security/2025/05/12/1
375•st_goliath•21h ago•227 comments

EM-LLM: Human-Inspired Episodic Memory for Infinite Context LLMs

https://github.com/em-llm/EM-LLM-model
58•jbotz•4d ago•7 comments

PDF to Text, a challenging problem

https://www.marginalia.nu/log/a_119_pdf/
286•ingve•18h ago•159 comments

Airbnb is in midlife crisis mode

https://www.wired.com/story/airbnb-is-in-midlife-crisis-mode-reinvention-app-services/
154•thomasjudge•13h ago•278 comments

Fingers wrinkle the same way every time they’re in the water too long

https://www.binghamton.edu/news/story/5547/do-your-fingers-wrinkle-the-same-way-every-time-youre-in-the-water-too-long-new-research-says-yes
128•gnabgib•9h ago•53 comments

It Awaits Your Experiments

https://www.rifters.com/crawl/?p=11511
165•pavel_lishin•17h ago•58 comments

Using obscure graph theory to solve programming languages problems

https://reasonablypolymorphic.com/blog/solving-lcsa/
63•matt_d•12h ago•10 comments

The world could run on older hardware if software optimization was a priority

https://twitter.com/ID_AA_Carmack/status/1922100771392520710
693•turrini•22h ago•629 comments

Garbage collection of object storage at scale

https://www.warpstream.com/blog/taking-out-the-trash-garbage-collection-of-object-storage-at-massive-scale
76•ko_pivot•3d ago•9 comments

A tool to verify estimates, II: a flexible proof assistant

https://terrytao.wordpress.com/2025/05/09/a-tool-to-verify-estimates-ii-a-flexible-proof-assistant/
48•jjgreen•3d ago•0 comments

OpenTelemetry protocol with Apache Arrow

https://opentelemetry.io/blog/2025/otel-arrow-phase-2/
92•tanelpoder•15h ago•16 comments

I learned Snobol and then wrote a toy Forth

https://ratfactor.com/snobol/
130•ingve•3d ago•34 comments

The great displacement is already well underway?

https://shawnfromportland.substack.com/p/the-great-displacement-is-already
356•JSLegendDev•1d ago•356 comments

A visual history of the safety pin

https://museumofeverydaylife.org/current-exhibitions/a-visual-history-of-the-safety-pin
25•andsoitis•2d ago•5 comments