frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Distributed Ray-Tracing

https://www.4rknova.com//blog/2019/02/24/distributed-raytracing
21•ibobev•5d ago

Comments

amelius•3h ago
Perhaps someone can help me with this. I was doing some experimentation with lenses and PBTR v4. This was going great, I was able to model the projection of an object through a lens onto a surface quite well. However, now I want to simulate doublets: lenses which consist of two parts so with two materials. I don't know how to model this in PBTR. It seems that it is not possible to have a shape (lens) touch more than one other material.

> PBRT's MediumInterface system can only represent a single "inside" medium and a single "outside" medium per shape. If a shape physically touches multiple different media (for example, a glass sphere sitting at the interface between water and air), PBRT cannot directly represent this configuration.

I think this is kind of odd for a renderer which is otherwise quite capable. Can anyone explain why this is the case, and how I can work around this limitation?

maybewhenthesun•2h ago
I don't know PBTR, but in other raytracers the trick is to create a single surface between the two materials and set the ior of that surface's material to the quotient of the iors of the materials o both sides.

That way the light will refract on the internal boundary as if it moves from the one material to the other.

Prerequisite is that you ened to be able to create non-manifold objects...

amelius•2h ago
Ok, thanks, that sounds like an important hint.

When you say quotient, which material's ior is in the numerator and which in the denominator?

tylermw•2h ago
There is a way to model this type of situation for watertight dielectrics with interface tracking: you assign each material a priority value, and a transition between materials occurs when entering that material only if it has a higher priority than your current material. Yining Karl Li has a great article about it:

https://blog.yiningkarlli.com/2019/05/nested-dielectrics.htm...

that inspired me to add the feature to my renderer (rayrender.net).

The downside to priority tracking (and possibly why PBRT does not include it) is it introduces a lots of overhead to ray traversal due to each ray needing to track a priority list. Modern raytracers use packets of rays for GPU/SIMD operations, and thus minimizing the ray size is extremely important to maximize throughput and minimize cache misses.

amelius•1h ago
Wow, the problem is more involved than I (a simple user) realized ...

Maybe I have to broaden my search for a raytracer. What would be my best bet for correctly simulating multi-material lenses (so with physical correctness), in Linux (open source), preferably with GPU support?

(By the way, as a user I'd be happy to give up even a factor of 10 of performance if the resulting rendering was 100% physically accurate)

knorker•2h ago
> Conventional ray-tracing is estimating illumination using a single sample across the entire domain, which constitutes a particularly crude approximation.

Straw man.

> Shadows have a hard edge, as only infinitesimally small point light sources of zero volume can be simulated

Uh, no. Raytracing can definitely have emitting surfaces and volumes.

> Reflection / Refraction can only simulate a limited set of light paths, for perfect mirror surfaces, or perfectly homogeneous transparent media.

You sure about that?

> More complex effects like depth of field are not supported.

https://www.povray.org/documentation/view/3.60/248/

Also, the title should get a "2019" tag.

ginko•2h ago
I believe the article refers specifically to Whitted ray tracing when referring to 'ray-tracing' as opposed to distribution ray tracing or path tracing.

POV-ray supports all kind of ray tracing and path tracing techniques, not just Whitted RT.

Google demonstrates 'verifiable quantum advantage' with their Willow processor

https://blog.google/technology/research/quantum-echoes-willow-verifiable-quantum-advantage/
104•AbhishekParmar•1h ago•54 comments

Cryptographic Issues in Cloudflare's Circl FourQ Implementation (CVE-2025-8556)

https://www.botanica.software/blog/cryptographic-issues-in-cloudflares-circl-fourq-implementation
80•botanica_labs•2h ago•19 comments

Linux Capabilities Revisited

https://dfir.ch/posts/linux_capabilities/
75•Harvesterify•2h ago•12 comments

MinIO stops distributing free Docker images

https://github.com/minio/minio/issues/21647#issuecomment-3418675115
441•LexSiga•10h ago•267 comments

Designing software for things that rot

https://drobinin.com/posts/designing-software-for-things-that-rot/
71•valzevul•18h ago•8 comments

AI assistants misrepresent news content 45% of the time

https://www.bbc.co.uk/mediacentre/2025/new-ebu-research-ai-assistants-news-content
196•sohkamyung•2h ago•147 comments

The security paradox of local LLMs

https://quesma.com/blog/local-llms-security-paradox/
47•jakozaur•3h ago•35 comments

SourceFS: A 2h+ Android build becomes a 15m task with a virtual filesystem

https://www.source.dev/journal/sourcefs
46•cdesai•3h ago•16 comments

Die shots of as many CPUs and other interesting chips as possible

https://commons.wikimedia.org/wiki/User:Birdman86
132•uticus•4d ago•26 comments

Internet's biggest annoyance: Cookie laws should target browsers, not websites

https://nednex.com/en/the-internets-biggest-annoyance-why-cookie-laws-should-target-browsers-not-...
331•SweetSoftPillow•4h ago•390 comments

French ex-president Sarkozy begins jail sentence

https://www.bbc.com/news/articles/cvgkm2j0xelo
263•begueradj•10h ago•343 comments

Go subtleties

https://harrisoncramer.me/15-go-sublteties-you-may-not-already-know/
149•darccio•1w ago•104 comments

Tesla Recalls Almost 13,000 EVs over Risk of Battery Power Loss

https://www.bloomberg.com/news/articles/2025-10-22/tesla-recalls-almost-13-000-evs-over-risk-of-b...
135•zerosizedweasle•3h ago•114 comments

Infracost (YC W21) Hiring First Dev Advocate to Shift FinOps Left

https://www.ycombinator.com/companies/infracost/jobs/NzwUQ7c-senior-developer-advocate
1•akh•4h ago

Patina: a Rust implementation of UEFI firmware

https://github.com/OpenDevicePartnership/patina
65•hasheddan•1w ago•12 comments

Farming Hard Drives (2012)

https://www.backblaze.com/blog/backblaze_drive_farming/
12•floriangosse•6d ago•2 comments

Evaluating the Infinity Cache in AMD Strix Halo

https://chipsandcheese.com/p/evaluating-the-infinity-cache-in
121•zdw•12h ago•51 comments

Show HN: Cadence – A Guitar Theory App

https://cadenceguitar.com/
135•apizon•1w ago•28 comments

The Dragon Hatchling: The missing link between the transformer and brain models

https://arxiv.org/abs/2509.26507
110•thatxliner•3h ago•65 comments

Greg Newby, CEO of Project Gutenberg Literary Archive Foundation, has died

https://www.pgdp.net/wiki/In_Memoriam/gbnewby
352•ron_k•7h ago•59 comments

Cigarette-smuggling balloons force closure of Lithuanian airport

https://www.theguardian.com/world/2025/oct/22/cigarette-smuggling-balloons-force-closure-vilnius-...
48•n1b0m•3h ago•17 comments

Knocker, a knock based access control system for your homelab

https://github.com/FarisZR/knocker
49•xlmnxp•7h ago•74 comments

LLMs can get "brain rot"

https://llm-brain-rot.github.io/
446•tamnd•1d ago•274 comments

Sequoia COO quit over Shaun Maguire's comments about Mamdani

https://www.ft.com/content/8e6de299-3eb6-4ba9-8037-266c55c02170
11•amrrs•46m ago•8 comments

Ghostly swamp will-O'-the-wisps may be explained by science

https://www.snexplores.org/article/swamp-gas-methane-will-o-wisp-chemistry
22•WaitWaitWha•1w ago•10 comments

Distributed Ray-Tracing

https://www.4rknova.com//blog/2019/02/24/distributed-raytracing
21•ibobev•5d ago•7 comments

Starcloud

https://blogs.nvidia.com/blog/starcloud/
129•jonbaer•5h ago•168 comments

Power over Ethernet (PoE) basics and beyond

https://www.edn.com/poe-basics-and-beyond-what-every-engineer-should-know/
216•voxadam•6d ago•170 comments

rlsw – Raylib software OpenGL renderer in less than 5k LOC

https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h
228•fschuett•19h ago•87 comments

Ask HN: Our AWS account got compromised after their outage

364•kinj28•1d ago•87 comments