|
|
Sorry, I come back..
Actually, filling my object is easier than making it empty..
To make it empty, I tried to clip my height_object with a sphere with a value of
transmit equal to 1.
But I can still see the sphere contours even if they're smoothened.
Maybe I didn't use the transmit keyword the right way?
Here is the code:
intersection {
height_field {
png
"IN\PNG\dem.png"
smooth
texture{
pigment {
White
}
finish {
ambient 0.1
diffuse 0.55
}
}
translate <-0.5,0,-0.48>
scale <14,4,14>
}
sphere {
<0, 1, 0>
5
pigment {
White
transmit 1
}
hollow on
}
}
"mathieu_r" <nomail@nomail> wrote:
> Nice! Thanks. It works!
>
> clipka <ano### [at] anonymousorg> wrote:
> > Am 29.08.2012 15:09, schrieb mathieu_r:
> > > Ok, so Intersection seems the right way to do it.
> > >
> > > I have another question:
> > >
> > > I've intersected my height_field with my box. Ok but between my height_field and
> > > the bottom of my box there is an empty gap. How to fill it? You know, like city
> > > models
> > >
> > > If possible with the same texture as the height_field object.
> >
> > Intersect the height field with a slightly smaller box; i.e, instead of:
> >
> > height_field {
> > ...
> > texture { ... }
> > translate ... scale ... rotate ...
> > }
> >
> > use the following:
> >
> > intersection {
> > height_field { ... }
> > box { <0.0001, 0.0001, 0.0001>, <0.9999, 1.0001, 0.9999> }
> > texture { ... }
> > translate ... scale ... rotate ...
> > }
> >
> > This works due to some inconsistency of the height_field object:
> > Although it lacks a visible bottom and sides, it is nonetheless
> > considered to be filling the entire space below the surface; so if you
> > cut off its "non-sides" and "non-bottom", you'll get visible surfaces at
> > the cuts.
Post a reply to this message
|
|