POV-Ray : Newsgroups : povray.binaries.images : Artifacts in Isosurface Shasow Server Time
31 Oct 2024 22:19:45 EDT (-0400)
  Artifacts in Isosurface Shasow (Message 1 to 4 of 4)  
From: jceddy
Subject: Artifacts in Isosurface Shasow
Date: 17 Dec 2014 17:00:00
Message: <web.5491fcc917cbe1a7314aa6840@news.povray.org>
I've got an Isosurface in an orthographic scene and its shadow seems to be "cut
off"...basically like it's only casting the shadow within some arbitrary box.
I've attached a sample render, and have the code below. Anyone have any idea
what's going on an whether there's a way to fix this?

#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}

camera {
  orthographic
  location <0,0,1000>
  look_at  <0,0,0>
  right    x*image_width
  up       y*image_height
}

light_source {
  0*x
  color rgb <1,1,1>
  translate <-20*1050/3, 40*1050/3, 20*1050>
}

box {
  <-(image_width/2), -(image_height/2), -1>, <(image_width/2), (image_height/2),
1>
  texture {
    pigment {
      color rgb 1
    }
    finish {
      ambient 0.0
      diffuse 1.0
    }
  }
}

#declare a = 0.9;
#declare b = 1.0;
#declare F = function {
y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) }

isosurface {
  function { F(x, sqrt(y*y+z*z), z) }
  contained_by { box { <-2, -1, -1>, <2, 1, 1> } }
  accuracy 0.0001
  max_gradient 7
  all_intersections

  texture {
            pigment{ color rgb<1,1.0,0.95>*1.1}
            finish { phong 1}
   }

  scale 100
  translate 110*z
  rotate 90*z
}


Post a reply to this message


Attachments:
Download 'shadowtest.png' (21 KB)

Preview of image 'shadowtest.png'
shadowtest.png


 

From: eticre
Subject: Re: Artifacts in Isosurface Shasow
Date: 17 Dec 2014 19:20:08
Message: <web.54921c9b37328305132d0560@news.povray.org>
"jceddy" <jce### [at] gmailcom> wrote:
> I've got an Isosurface in an orthographic scene and its shadow seems to be "cut
> off"...basically like it's only casting the shadow within some arbitrary box.
> I've attached a sample render, and have the code below. Anyone have any idea
> what's going on an whether there's a way to fix this?
>
> #version 3.7;
> global_settings{ assumed_gamma 1.0 }
> #default{ finish{ ambient 0.1 diffuse 0.9 }}
>
> camera {
>   orthographic
>   location <0,0,1000>
>   look_at  <0,0,0>
>   right    x*image_width
>   up       y*image_height
> }
>
> light_source {
>   0*x
>   color rgb <1,1,1>
>   translate <-20*1050/3, 40*1050/3, 20*1050>
> }
>
> box {
>   <-(image_width/2), -(image_height/2), -1>, <(image_width/2), (image_height/2),
> 1>
>   texture {
>     pigment {
>       color rgb 1
>     }
>     finish {
>       ambient 0.0
>       diffuse 1.0
>     }
>   }
> }
>
> #declare a = 0.9;
> #declare b = 1.0;
> #declare F = function {
> y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) }
>
> isosurface {
>   function { F(x, sqrt(y*y+z*z), z) }
>   contained_by { box { <-2, -1, -1>, <2, 1, 1> } }
>   accuracy 0.0001
>   max_gradient 7
>   all_intersections
>
>   texture {
>             pigment{ color rgb<1,1.0,0.95>*1.1}
>             finish { phong 1}
>    }
>
>   scale 100
>   translate 110*z
>   rotate 90*z
> }
Hallo

function { min( (
y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) ),1 ) }

this solve the problem


Post a reply to this message

From: jceddy
Subject: Re: Artifacts in Isosurface Shasow
Date: 18 Dec 2014 10:25:00
Message: <web.5492f11e3732830314aa6840@news.povray.org>
"eticre" <eti### [at] tinit> wrote:
> "jceddy" <jce### [at] gmailcom> wrote:

> Hallo
>
> function { min( (
> y+(-sqrt(sqrt(4*pow(a,2)*pow(x,2)+pow(b,4))-pow(x,2)-pow(a,2))) ),1 ) }
>
> this solve the problem

That did it, thanks for the help!


Post a reply to this message

From: jceddy
Subject: Re: Artifacts in Isosurface Shasow
Date: 18 Dec 2014 10:50:01
Message: <web.5492f64e3732830314aa6840@news.povray.org>
"jceddy" <jce### [at] gmailcom> wrote:
> "eticre" <eti### [at] tinit> wrote:
>
> That did it, thanks for the help!

And here's the end result...


Post a reply to this message


Attachments:
Download 'peanut.png' (784 KB)

Preview of image 'peanut.png'
peanut.png


 

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