POV-Ray : Newsgroups : povray.general : difference causes strange black hole Server Time
5 Nov 2024 16:42:19 EST (-0500)
  difference causes strange black hole (Message 1 to 3 of 3)  
From: Rick Measham
Subject: difference causes strange black hole
Date: 19 Jan 2005 10:30:01
Message: <web.41ee7bf361d104498fc3d8280@news.povray.org>
I can't work out what's wrong here. I have a simple box. I remove another
box from it using 'difference'. The result is a white box with a solid
'black hole' type effect. You'll notice that the test cylinder seems to go
into a solid.

I'm sure I'm missing something simple!

Cheers!
Rick

__SNIPPET__

difference {
        box {
                <-5.3, -2, -5.3>
                < 5.3,  2,  5.3>
        }
        //Strange Black Hole
         box {
                <-4.3, -2.1, 2.7> <0.3, 2.1, 4.3>
        }


        texture {
                pigment { White }
                finish { reflection 0.05 }
        }

}

cylinder {
        <-2, 4, 3.5>
        <-2, -4, 3.5>
        0.25
        pigment { Red }
}


Post a reply to this message

From: Warp
Subject: Re: difference causes strange black hole
Date: 19 Jan 2005 10:50:14
Message: <41ee81b6@news.povray.org>
Since you didn't give a renderable scene and since I can't see anything
wrong with that code nor with a rendered version where I added my own
camera and light source, it's impossible to say what is it that you are
seeing.

  When posting an example code, always make it complete (in the sense
that anyone can just copy-paste it to povray, render it and see what
you are seeing). We can't know what you are seeing without knowing your
camera and light source parameters.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Neil Kolban
Subject: Re: difference causes strange black hole
Date: 19 Jan 2005 14:34:54
Message: <41eeb65e@news.povray.org>
Rick,
I had a look at a rendered image ... I don't see a problem.  I see a box 
with a hole in it and a cylinder coming out of the hole....

Neil


Post a reply to this message

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