POV-Ray : Newsgroups : povray.binaries.images : crumbled plaster for an object Server Time
14 Nov 2024 12:23:04 EST (-0500)
  crumbled plaster for an object (Message 1 to 3 of 3)  
From: Joerg
Subject: crumbled plaster for an object
Date: 24 Sep 2006 06:36:42
Message: <45165fba@news.povray.org>
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<------


Post a reply to this message


Attachments:
Download 'test-a.jpg' (21 KB) Download 'test-b.jpg' (21 KB)

Preview of image 'test-a.jpg'
test-a.jpg

Preview of image 'test-b.jpg'
test-b.jpg


 

From: s day
Subject: Re: crumbled plaster for an object
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

From: Joerg
Subject: Re: crumbled plaster for an object
Date: 24 Sep 2006 07:55:04
Message: <45167218$1@news.povray.org>
> 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

Hi Sean,

that was it, i added 'all_intersections' and id works :)

Thanks a lot
Joerg


Post a reply to this message

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