POV-Ray : Newsgroups : povray.general : a little ray tracer : Re: a little ray tracer Server Time
6 May 2026 09:50:22 EDT (-0400)
  Re: a little ray tracer  
From: ingo
Date: 5 May 2026 08:20:26
Message: <69f9e08a$1@news.povray.org>
On 2026-05-04 21:09, jr wrote:


 > what happened to "variety is the spice of life" ?!  different 
languages (both
 > computer and human) all have their strengths and weaknesses, and I 
see nothing
 > "wrong" with "multi-language" projects.
 >

but but, but the raytracer's job is to populate the database. The trace 
data is the render. Everything else is SQL. Image is a query, depthmap 
is a query, normalmap is a query ...

-- depth map as a query, not a render pass
SELECT
   pixel_x,
   pixel_y,
   MIN(t) AS depth  -- closest hit along each ray
FROM bounces
WHERE frame = 42
GROUP BY pixel_x, pixel_y

to take it to the extreme, the render relay should probably be the only 
thing that actually traces rays. Everything else — depth, normals, 
object IDs, albedo — is a material relay or a post-process query.

ingo


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.