POV-Ray : Newsgroups : povray.general : empty blob Server Time
28 Nov 2024 09:01:12 EST (-0500)
  empty blob (Message 1 to 5 of 5)  
From: Leander
Subject: empty blob
Date: 29 Mar 2007 14:10:01
Message: <web.460c0e76b1c8adc4de19c14a0@news.povray.org>
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

From: Leander
Subject: Re: empty blob
Date: 29 Mar 2007 14:35:01
Message: <web.460c141a2ec28bbade19c14a0@news.povray.org>
Ah, I think I found it, need to specify pigment etc. for the
second object too, right?

Regards,
Leander


Post a reply to this message

From: Warp
Subject: Re: empty blob
Date: 29 Mar 2007 15:07:15
Message: <460c1c72@news.povray.org>
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

From: Christian Froeschlin
Subject: Re: empty blob
Date: 29 Mar 2007 15:13:46
Message: <460c1dfa@news.povray.org>
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

From: Leander
Subject: Re: empty blob
Date: 30 Mar 2007 02:30:00
Message: <web.460cbbb52ec28bbaaf9b051c0@news.povray.org>
Yes, of course, I see.
Thank you both,
Leander


Post a reply to this message

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