POV-Ray : Newsgroups : povray.binaries.images : crumbled plaster for an object : Re: crumbled plaster for an object Server Time
6 Aug 2024 19:32:52 EDT (-0400)
  Re: crumbled plaster for an object  
From: s day
Date: 24 Sep 2006 07:15:00
Message: <web.4516688cd9522b052738fe000@news.povray.org>
Joerg <"joerg_[]_schrammel.org"> wrote:
> I tried to create a sort of crumbled plaster for an object.
> Using an intersection of an outer hull and an isosurface.
>
> Unfortunately i run into the problem of having dark areas where i do not
> expect them. The plaster seems to be just a hull and not to be solid.
>
> in past i could get rid of these effects in ISOs by adjusting the
> accuracy & max_gradient settings. But it did not work in this case.
>
> I noticed that the bad effect decreases by lowering the dimensions of
> the contained_by box converging the intersections dimensions.
>
> Does anybody has an idear how to solve this?
> It would be great if someone could help, cause i'm somewhat perplexed at
> the moment...
>
> Regards
> Joerg
>
>
>
---8<---------8<----------8<---------8<---------8<---------8<----------8<---------8<------
> // The Object to be plastered
> union{
>   box{<-1,0,-1>,<1,1,1>}
>   sphere{<0,1,0>,1}
>   pigment{color Red}
> }
>
>
> // Funtion for plaster
> #declare L10=function{
>   pigment{
>  bozo
>  turbulence 1.25
>  scale <4,4,4>
>  color_map {
>   [0 rgb 1]
>   [1 rgb 0]
>  }
>   }
> }
>
>
> // the plaster
> #declare B1 = intersection{
>   isosurface {
>      function { L10(x,y,z).red - 0.5 }
>      accuracy     0.00001 // 0.05 the smaller the slower to render
>      max_gradient 1.551   // 2    the smaller the faster to render
>      contained_by{box{<-12,-12,-12>,<12,12,12>}}
> //    open
>   }
>   union{
>    box{<-1.05,0,-1.05>,<1.05,1.05,1.05>}
>    sphere{<0,1,0>,1.05}
>   }
>   pigment{ color White  }
> }
>
> object{B1}
>
---8<---------8<----------8<---------8<---------8<---------8<----------8<---------8<------


Hi,

I suspect this is because you need to add ALL_INTERSECTIONS to your
isosurface to do CSG.

Also, do you get any warnings about max_gradient?

Sean


Post a reply to this message

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