POV-Ray : Newsgroups : povray.binaries.images : Sundial and shadow problem : Re: Sundial and shadow problem Server Time
18 Apr 2024 19:23:50 EDT (-0400)
  Re: Sundial and shadow problem  
From: Kenneth
Date: 4 Jan 2021 11:00:01
Message: <web.5ff33ae5346ceddfd98418910@news.povray.org>
kurtz le pirate <kur### [at] gmailcom> wrote:
> Hello,
>
> Little brain teaser...
>
> So, how to remove this shadow on the floor but keep the shadow on the wall ?
>
> --

That is indeed an interesting situation.

After reading the various suggestions here, I experimented with different
set-ups, and finally found one that works. It uses two light sources: a
shadowless one in a light_group with the large horizonal disc, and another light
for everything else. The no_shadow flag is not needed in any of the objects.

---

plane{...}

// light_source A
light_source {...}

light_group{
// light_source B
light_source {  // same position as light_source A
....
  shadowless
}

// large horizontal disc
cylinder{...}
} // end of light_group

// sundial CSG
union{
box{...}

// gnomon
cylinder{...}
}


Post a reply to this message


Attachments:
Download 'shadow_question.png' (61 KB)

Preview of image 'shadow_question.png'
shadow_question.png


 

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