POV-Ray : Newsgroups : povray.binaries.images : crumbled plaster for an object : crumbled plaster for an object Server Time
6 Aug 2024 19:30:00 EDT (-0400)
  crumbled plaster for an object  
From: Joerg
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


 

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