|
|
Hello,
when cut my blob like this:
intersection{
blob{}
box{}
}
a hollow object remains. How can I make
it solid?
Thank you,
Leander
here's an example:
#include "colors.inc"
global_settings {
assumed_gamma 1.0
max_trace_level 15
ambient_light rgb <1,1,1>
}
camera {
orthographic
location <0, -20, 00>
look_at <0, 0, 0>
}
light_source {
<0, -20, 00>
color White
}
#declare test = intersection {
blob{
threshold .600000
sphere {
<0,0,0>,
10,10
pigment { color rgb <1.000000,0.000000,0.785398> }
finish { brilliance 3 phong 1 phong_size 500 }
}
}
box {<100,6,100>,<-100,-6,-100>}
}
object { test rotate <0,90,0> }
Post a reply to this message
|
|
|
|
Leander <nomail@nomail> wrote:
> Ah, I think I found it, need to specify pigment etc. for the
> second object too, right?
You can specify it for the entire intersection instead of having to
specify it for the individual objects.
--
- Warp
Post a reply to this message
|
|
|
|
Leander wrote:
> Ah, I think I found it, need to specify pigment etc. for the
> second object too, right?
Depends on what you want to achieve. As you guessed by now, the
intersection is not "hollow" but simply black (default pigment).
Using intersection or difference with textured objects is sometimes
a bit tricky (and doesn't always work). Also see cutaway_textures.
If the object is homogenous, specify the texture at top level:
intersection
{
blob {...}
box {...}
texture
{
pigment
}
}
Post a reply to this message
|
|