POV-Ray : Newsgroups : povray.binaries.images : Rock surface : Re: Rock surface Server Time
29 Mar 2024 08:32:09 EDT (-0400)
  Re: Rock surface  
From: Samuel B 
Date: 23 Nov 2021 20:05:00
Message: <web.619d8ef237b5adc1cb705ca46e741498@news.povray.org>
"nemesis" <nam### [at] gmailcom> wrote:
> "Samuel B." <stb### [at] hotmailcom> wrote:
> > "stb" <nomail@nomail> wrote:
> > > A rock surface.
> > >
> > > ~
> >
> > Sorry for the extra post. I was trying to figure out why I couldn't post
> > anything :P
> >
> > Sam
>
> Sam Benge, long time no see.  still as amazing as usual...
>
> I think you povray folks would like something like this:
>
> https://twitter.com/zozuar/status/1461524656532471811

Hey, nemesis.

That is indeed a neat scene, and the code seems very short. I actually first saw
it the other day here: https://glslsandbox.com/e#77142.0 The ambient occlusion
looks pretty good, and is fast. I haven't looked at the code, but I suspect the
author used a trick involving the exploitation of signed distance functions: for
every step of the camera ray, you add to a variable and use that to alter the
color of any hit surface. And the closer the ray is to a surface, the more you
add to the variable. The downside is that everything looks as if the camera
itself is a source of light.

Sam


Post a reply to this message

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