frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Precomputing Transparency Order in 3D

https://jacobdoescode.com/2025/05/18/precomputing-transparency-order-in-3d
14•jacobp100•1y ago

Comments

bschwindHN•1y ago
> Today, getting the correct order for translucent faces typically involves sorting the faces by their distance to the camera on the CPU, then sending the sorted faces to the GPU. This means every time the camera moves, you need to re-sort the translucent faces.

Don't most games and rendering engines these days use order-independent transparency if they care about these problems?

https://osor.io/OIT

How does the method in the OP article work if you're rendering meshes instead of planar objects? Sure, a mesh is just composed of planar triangles, but that's a _lot_ of triangles to sort, and with an O(n^2) algorithm, it's going to be painful.

user____name•1y ago
A big problem with OIT techniques is that it presumes all see-trough surfaces use alpha blending. In reality other blending modes can be used, most notably additive blending. Additive blending is very useful because it ensures the surface will always be brighter than the background, which is important for things like fire, which look strange when the background is actually brighter than the blended surface, this is quite common.

Another issue is that OIT techniques usually have a breaking point where drawing too many layers will start showing artefacts.

So in order for OIT to work correctly you have to enforce all surfaces to be either opaque or use alpha blending and also avoid drawing too many layers. This is more limiting than sorting based approaches for the average usecase, even if it does end up fixing cases that aren't easily fixed via sorting. Besides that, people working in games and realtime rendering have simply gotten accustomed to designing around alpha blending issues.

bschwindHN•1y ago
What's the granularity of sorting, for most modern games? I'm guessing just sorting by an object or mesh center, instead of sorting each triangle, but are there are methods I'm unaware of?

Turbovec – Google's TurboQuant for vector search in Rust

https://github.com/RyanCodrai/turbovec
31•fittingopposite•45m ago•2 comments

Data centers raise nearby temperatures by up to 4 degrees in Phoenix

https://asmedigitalcollection.asme.org/sustainablebuildings/article/7/2/024501/1233035/Data-Cente...
132•cwwc•1h ago•130 comments

Using the railway network as a flatbed scanner

https://philo.gay/linecam/
302•otherayden•6h ago•52 comments

Fixing a bricked Framework laptop

https://quantum5.ca/2026/08/16/fixing-bricked-amd-7040-series-framework-13-laptop-with-20-tools/
250•jp_sc•5h ago•159 comments

The Amazon tax

https://seths.blog/2026/08/the-amazon-tax/
558•herbertl•5h ago•385 comments

How does IKEA come up with names for its products?

https://www.ikea.com/se/en/customer-service/knowledge/articles/6f564c4d-2ccc-46de-b643-545a3948dc...
37•NaOH•41m ago•11 comments

Cursor launches Origin, GitHub alternative

https://cursor.com/changelog/origin-code-hosting
266•tomasreimers•1d ago•209 comments

We've flown a radiation-blocking vest to the Moon and back, and it worked

https://arstechnica.com/science/2026/08/weve-flown-a-radiation-blocking-vest-to-the-moon-and-back...
32•rbanffy•4d ago•11 comments

Linux 7.3 improves performance when running out of vRAM

https://pixelcluster.dev/VRAM-Overcommit/
440•flaburgan•11h ago•196 comments

Launch HN: machine0 (YC S26) – Persistent CPU and GPU VMs from the CLI

https://machine0.io
26•bwm•2h ago•22 comments

Superpowers, Not Superintelligence

https://bond.now/news/superpowers-not-superintelligence
24•edbernays•2h ago•25 comments

Python Polars Cheatsheet (based on our O'Reilly book)

https://opensource.posit.co/resources/cheatsheets/polars/
110•jeroenjanssens•5h ago•16 comments

Claude Code May–August 2026 weekly limits promotion

https://support.claude.com/en/articles/15910845-claude-code-may-august-2026-weekly-limits-promotion
211•tyre•1h ago•156 comments

Splitting a Git Commit

https://blog.gnoack.org/post/git-history-split
83•signa11•3d ago•38 comments

Teaching my kid to code with a modern MUD

https://tau.dev/2026/08/07/canon
180•andrewjanke•6d ago•50 comments

Evolve: An incremental game about evolving a civilization

https://pmotschmann.github.io/Evolve/
13•frozenseven•3d ago•4 comments

Memory prices climb 500% in 12 months

https://www.tomshardware.com/pc-components/ram/memory-prices-climb-500-percent-in-12-months-up-to...
233•haunter•1d ago•175 comments

Show HN: macOS data protection keychain for Electron apps

https://github.com/biw/keychain-store
8•biwills•1h ago•0 comments

Babies born under sugar rationing grew into adults with lower cancer risk

https://theconversation.com/babies-born-under-sugar-rationing-grew-into-adults-with-lower-cancer-...
174•zeristor•4h ago•37 comments

Show HN: Openleetcode – local LeetCode runner where tests live in the repo

https://github.com/therepanic/openleetcode
23•therepanic•3h ago•9 comments

Fairphone is now officially available in the United States

https://www.fairphone.com/nl/stories/the-fairphone-gen-6-is-all-about-giving-you-more
288•Vinnl•6h ago•140 comments

And then the men with guns tell you to do it anyway

https://shkspr.mobi/blog/2026/08/and-then-the-men-with-guns-tell-you-to-do-it-anyway/
10•_djo_•1h ago•0 comments

Universal health coverage could save $1T and 114k lives a year: study

https://ysph.yale.edu/news-article/universal-health-coverage-could-save-one-trillion-dollars-and-...
500•karakoram•1d ago•598 comments

California's new tire efficiency rules could save drivers $1B a year

https://grist.org/transportation/californias-new-tire-efficiency-rules-could-save-drivers-1b-a-year/
85•littlexsparkee•15h ago•113 comments

Code-native generation of highly programmable 3D assets (2026)

https://arxiv.org/abs/2607.22738
36•baigy•3h ago•34 comments

Google has acquired the data of failed US airline Spirit

https://www.theregister.com/ai-and-ml/2026/08/18/google-buys-crashed-airline-spirits-data-at-auct...
505•pseudolus•8h ago•352 comments

Rethinking Database Programming

https://acadia.engineering/blog/rethinking-database-programming
203•honungsburk•11h ago•103 comments

Diesel Margins Top $100 a Barrel to Reach Record High as Supply Crunch Grows

https://www.bloomberg.com/news/articles/2026-08-18/diesel-margins-top-100-a-barrel-to-reach-recor...
44•toomuchtodo•2h ago•14 comments

Ask HN: GitHub employees what's going on? Why?

155•sharts•1d ago•115 comments

Why your Amazon order confirmation emails have become so unhelpful

https://www.theverge.com/ai-artificial-intelligence/977733/amazon-order-emails-google-gmail-ai-ag...
42•Macha•1h ago•14 comments