frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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?

It's time to talk about my writerdeck

https://veronicaexplains.net/my-first-writerdeck/
147•hggh•2h ago•92 comments

dotNET (OK, C#) gets union types

https://andrewlock.net/exploring-the-dotnet-11-preview-2-dotnet-gets-union-types/
53•ingve•1d ago•29 comments

On The <dl> (2021)

https://benmyers.dev/blog/on-the-dl/
314•ravenical•8h ago•100 comments

Texas woman arrested for Facebook post about town water quality

https://reclaimthenet.org/texas-woman-arrested-for-facebook-post-about-town-water-quality
465•abawany•3h ago•214 comments

Pardon MIE?

https://ironpeak.be/blog/bypassing-apple-mie/
11•jiveturkey•1h ago•2 comments

Hengefinder: Finding When the Sun Aligns with Your Street

https://victoriaritvo.com/blog/hengefinder/
73•evakhoury•1d ago•17 comments

Green card seekers must leave U.S. to apply, Trump administration says

https://www.nytimes.com/2026/05/22/us/politics/green-card-changes-trump.html
299•tlhunter•1d ago•620 comments

Reverse engineering circuitry in a Spacelab computer from 1980

https://www.righto.com/2026/05/reverse-engineering-spacelab-computer.html
69•elpocko•5h ago•5 comments

z386: An Open-Source 80386 Built Around Original Microcode

https://nand2mario.github.io/posts/2026/z386/
99•wicket•7h ago•20 comments

80386 Microcode Disassembled

https://www.reenigne.org/blog/80386-microcode-disassembled/
197•nand2mario•9h ago•39 comments

SpaceX launches Starship v3 rocket

https://www.space.com/space-exploration/launches-spacecraft/spacex-starship-v3-megarocket-first-t...
298•busymom0•22h ago•213 comments

PHP's Oddities

https://flowtwo.io/post/php%27s-oddities
80•thejoeflow•4d ago•85 comments

My two-part desk setup

https://arslan.io/2025/11/18/my-two-part-desk-setup/
147•James72689•3d ago•97 comments

The Art of Money Getting

https://kk.org/cooltools/book-freak-210-the-art-of-money-getting/
151•dxs•8h ago•103 comments

Making Deep Learning Go Brrrr from First Principles (2022)

https://horace.io/brrr_intro.html
132•tosh•9h ago•50 comments

Italy Cancels Boeing Pegasus Order, Shifting to Airbus A330 MRTT

https://www.euronews.com/my-europe/2026/05/21/italy-moves-to-airbus-a330-tankers-in-major-nato-al...
203•embedding-shape•5h ago•65 comments

- -dangerously-skip-reading-code

https://olano.dev/blog/dangerously-skip/
67•fagnerbrack•12h ago•80 comments

Kindle loyalists scramble as Amazon turns page on old e-readers

https://www.reuters.com/business/retail-consumer/kindle-loyalists-scramble-amazon-turns-page-old-...
88•cf100clunk•4d ago•85 comments

sp.h: Fixing C by giving it a high quality, ultra portable standard library

https://spader.zone/sp/
161•dboon•3d ago•151 comments

Shipping a laptop to a refugee camp in Uganda

https://notesbylex.com/shipping-a-laptop-to-a-refugee-camp-in-uganda
651•lexandstuff•1d ago•230 comments

Rubish: A Unix shell written in pure Ruby

https://github.com/amatsuda/rubish
158•winebarrel•15h ago•95 comments

Oura says it gets government demands for user data

https://this.weekinsecurity.com/oura-says-it-gets-government-demands-for-user-data-will-it-share-...
228•donohoe•7h ago•135 comments

Highest Random Weight in Elixir

https://jola.dev/posts/highest-random-weight-in-elixir
53•shintoist•2d ago•2 comments

Lisp in Vim (2019)

https://susam.net/lisp-in-vim.html
41•whent•6h ago•6 comments

Evaluating Spec CPU2026

https://chipsandcheese.com/p/evaluating-spec-cpu2026
18•zdw•5h ago•3 comments

Electrobun 2.0 will be decoupled from Bun due to the Rust rewrite

https://twitter.com/i/status/2058064720553222567
101•bundie•9h ago•104 comments

Solving the “Zork” Mystery

https://www.dpolakovic.space/blogs/zork-part2
49•dpola•4d ago•18 comments

Reflections on Building Forum Software

https://www.counting-stuff.com/reflections-on-building-forum-software/
11•sebg•2d ago•2 comments

Improving C# Memory Safety

https://devblogs.microsoft.com/dotnet/improving-csharp-memory-safety/
129•soheilpro•2d ago•28 comments

Spanish court declines to fine NordVPN over LaLiga piracy blocking order

https://torrentfreak.com/spanish-court-declines-to-fine-nordvpn-over-laliga-piracy-blocking-order/
88•gslin•14h ago•77 comments