POV-Ray : Newsgroups : povray.general : difference problem w/3.1 : difference problem w/3.1 Server Time
13 Aug 2024 09:29:59 EDT (-0400)
  difference problem w/3.1  
From: Lewis Sellers
Date: 3 Oct 1998 17:11:26
Message: <36168505.8954EB2E@usit.net>
'ello. I mentioned this in the bug reports as well, but if someone in
the general audience :) could tell me if it's bug or feature, I'd
appareciate it.

Anyway, pardon me if my mathematics are insufficient to explain the
problem properly, but....

When doing some DIFFERENCEs where the, um, surfaces of the objects are
in the same plane it cuts a hole INTO the first object. That is, I can
see INTO the the block of the A object as if it were hollowed out with a
big spoon.

Follows code that shows the prob. It's a house block where I'm
subtracting a stair well. I got around this by the hack of adding .01 to
some of the x coordinates. That works. Looks a little ugly though.

danke,
--min


P200MMX w/ 128MB RAM running NT 4 SP3. Using the new Povray 3.1 (non
beta).


//
#declare T_Wall =
texture {
    pigment {
        color rgb<1,1,1>
    }
    finish {
        ambient 0.2
        brilliance .01
        diffuse 1
        roughness 1
        reflection 0
    }
}
#declare T_WallPaper =
texture {
    pigment {
        wood
        turbulence 0
        color_map {
            [0 color rgb<.8,.8,.75>]
            [.2 color rgb<1,1,1>]
        }
        scale .2
        rotate <-90,0,0>
    }
    finish {
        ambient 0.2
        brilliance .01
        diffuse 1
        roughness 1
        reflection 0
    }
}
#declare T_Masonry =
texture {
    pigment {
        brick color rgb<.6,.6,.6>, color rgb<1,1,.9>
        brick_size <8,3,4.5>
        mortar .25
        scale 1/8
        turbulence 0
    }
    finish {
        ambient 0.2
        brilliance .01
        diffuse 1
        roughness 1
        reflection 0
    }
}

camera {           
    angle 90 //wide-angle
    //location<36,3,-5>
    location<32,1,-5>
    look_at <32,0,12>
}

    light_source {
        <36,1,-4>
        color rgb<.9,.9,.8>
        fade_distance 2
        fade_power 1
    }
    light_source {
        <32,7.5,5>
        color rgb<.8,.8,1>
        fade_distance 2
        fade_power 1
    }
    light_source {
        <40,1,9>
        color rgb<1,.5,.5>
        fade_distance 2
        fade_power 1
    }

difference {
        merge {
            box { <0,  -.1, 0>, <51.5,8.5,29.5> texture {T_Wall} }
            box { <0,  -.1, 0>, <51.5,-4,29.5> texture {T_Masonry} }
            box { <-.5,-4,  -.5>, <52,-10.6,30> texture {T_Masonry} }
        }
        merge {
            box { <29.5,   3, 6.1>, <35.5,  -5, -1.5> }
            box { <29.5, -.1, 9.6>, <35.5, 8.1, 0.5> }
            texture {T_WallPaper}
        }
}



-- 
Lewis A. Sellers: writer and contract Multimedia Website Developer
mailto:lse### [at] usitnet (The Fourth Millennium Foundation)
http://www.public.usit.net/lsellers/ & http://www.fourthfoundation.com
http://brain-of-pooh.tech-soft.com/users/critters/bios/sellers_lewis.html

You can bug the living bejesus out of me live on ICQ @ 491461
(If I don't get back to you within a month, I'm out of prozac in some
dark corner somewhere screaming things quite unintelligable but -- most
curiously -- thick with a sumerian accent.)

"The comedy is over" -i pagliacci


Post a reply to this message

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