POV-Ray : Newsgroups : povray.general : possible difference bug Server Time
25 Dec 2024 01:53:34 EST (-0500)
  possible difference bug (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Mario
Subject: possible difference bug
Date: 2 Jun 2003 09:56:38
Message: <3edb5796$1@news.povray.org>
I am doing the difference of two cubes. I expect the first cube to have a
hole where the second cube is. When I render the scene, the second cube is
visible. From what I have seen with differences, this seems like a bug.

//scene used to create this bug:

#include "textures.inc"
#include "colors.inc"

// ----------------------------------------
// ############ BEGIN #####################
// ----------------------------------------

camera {
//  location  <-6, 12, -50.05>
//  look_at   <-6, 12, -25.05>

//location <5,3,-11.05>
//look_at <5,3,-8.05>
location <5,3,-0.05>
look_at <5,3,-11.05>

light_source {
    <-6, 30, -60.05>
    color rgb <1, 1, 1>  // light's color
}


// house cube
difference {
    box {
        <-10, -1, -10>,  // Near lower left corner
        <10,15,10>       // Far upper right corner

        texture {
            //MJHouse
            Red_Marble
            scale  .25
            rotate y*90
        }

    }

    box { <4,-1,-9.875>, <7, 4, -10.125> texture { White_Marble } }


} //end of difference


Post a reply to this message

From: ABX
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:03:37
Message: <l4mmdvsj3j82f1vjc3h7bd8khkg7m3eelr@4ax.com>
On Mon, 2 Jun 2003 09:56:39 -0400, "Mario" <ant### [at] spamcopnet> wrote:
>    box {
>        <-10, -1, -10>,  // Near lower left corner
.......................
>    box { <4,-1,-9.875>,

This "-1" cause two walls on the same plane. You probably want something like

    box { <4,-1.01,-9.875>,

for second box. Do you know why ?

ABX


Post a reply to this message

From: Mario
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:04:24
Message: <3edb5968$1@news.povray.org>
I'd like to add I'm using povray 3.5 on a Win2000 machine.


"Mario" <ant### [at] spamcopnet> wrote in message
news:3edb5796$1@news.povray.org...
>
> I am doing the difference of two cubes. I expect the first cube to have a
> hole where the second cube is. When I render the scene, the second cube is
> visible. From what I have seen with differences, this seems like a bug.
>
> //scene used to create this bug:
>
> #include "textures.inc"
> #include "colors.inc"
>
> // ----------------------------------------
> // ############ BEGIN #####################
> // ----------------------------------------
>
> camera {
> //  location  <-6, 12, -50.05>
> //  look_at   <-6, 12, -25.05>
>
> //location <5,3,-11.05>
> //look_at <5,3,-8.05>
> location <5,3,-0.05>
> look_at <5,3,-11.05>
>
> light_source {
>     <-6, 30, -60.05>
>     color rgb <1, 1, 1>  // light's color
> }
>
>
> // house cube
> difference {
>     box {
>         <-10, -1, -10>,  // Near lower left corner
>         <10,15,10>       // Far upper right corner
>
>         texture {
>             //MJHouse
>             Red_Marble
>             scale  .25
>             rotate y*90
>         }
>
>     }
>
>     box { <4,-1,-9.875>, <7, 4, -10.125> texture { White_Marble } }
>
>
> } //end of difference
>
>
>


Post a reply to this message

From: Mario
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:06:10
Message: <3edb59d2$1@news.povray.org>
No I don't   :-(

But I do remember in the past having to do that for other scenes


"ABX" <abx### [at] abxartpl> wrote in message
news:l4mmdvsj3j82f1vjc3h7bd8khkg7m3eelr@4ax.com...
> On Mon, 2 Jun 2003 09:56:39 -0400, "Mario" <ant### [at] spamcopnet>
wrote:
> >    box {
> >        <-10, -1, -10>,  // Near lower left corner
> .......................
> >    box { <4,-1,-9.875>,
>
> This "-1" cause two walls on the same plane. You probably want something
like
>
>     box { <4,-1.01,-9.875>,
>
> for second box. Do you know why ?
>
> ABX


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:11:27
Message: <3edb5b0f$1@news.povray.org>
Look for "coincidence surfaces" somewhere... :-)

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> No I don't   :-(
>
> But I do remember in the past having to do that for other scenes
>
>


Post a reply to this message

From: ABX
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:14:31
Message: <5qmmdvsfecfc69k4feb71pv07h0qo15jpp@4ax.com>
On Mon, 2 Jun 2003 10:06:11 -0400, "Mario" <ant### [at] spamcopnet> wrote:
> No I don't   :-(

documentation: "3.3.6.1 Co-incident Surfaces"
http://www.povray.org/documentation/view/46/#s03_03_06_01

ABX


Post a reply to this message

From: Mario
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:22:45
Message: <3edb5db5$1@news.povray.org>
Thanks....

I think I saw that when I started with povray, but I probably thought "I
would never use a difference. That's too advanced for me"

*sigh*


"ABX" <abx### [at] abxartpl> wrote in message
news:5qmmdvsfecfc69k4feb71pv07h0qo15jpp@4ax.com...
> On Mon, 2 Jun 2003 10:06:11 -0400, "Mario" <ant### [at] spamcopnet>
wrote:
> > No I don't   :-(
>
> documentation: "3.3.6.1 Co-incident Surfaces"
> http://www.povray.org/documentation/view/46/#s03_03_06_01
>
> ABX


Post a reply to this message

From: Mario
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:34:57
Message: <3edb6091$1@news.povray.org>
I made that change, and I still don't see a hole in the first cube.

Any other suggestions?


"ABX" <abx### [at] abxartpl> wrote in message
news:l4mmdvsj3j82f1vjc3h7bd8khkg7m3eelr@4ax.com...
> On Mon, 2 Jun 2003 09:56:39 -0400, "Mario" <ant### [at] spamcopnet>
wrote:
> >    box {
> >        <-10, -1, -10>,  // Near lower left corner
> .......................
> >    box { <4,-1,-9.875>,
>
> This "-1" cause two walls on the same plane. You probably want something
like
>
>     box { <4,-1.01,-9.875>,
>
> for second box. Do you know why ?
>
> ABX


Post a reply to this message

From: ABX
Subject: Re: possible difference bug
Date: 2 Jun 2003 10:51:18
Message: <ivomdvg0pe9pfdhrp3ve9pt9leqso56jg4@4ax.com>
On Mon, 2 Jun 2003 10:34:58 -0400, "Mario" <ant### [at] spamcopnet> wrote:
> I made that change, and I still don't see a hole in the first cube.
>
> Any other suggestions?

Put your camera to look into correct wall of box. Or reorient box to show hole.

ABX


Post a reply to this message

From: Mario
Subject: Re: possible difference bug
Date: 2 Jun 2003 11:23:49
Message: <3edb6c05$1@news.povray.org>
> Put your camera to look into correct wall of box. Or reorient box to show
hole.

Below I have copied the updated scene I am using.
Now what appears to be happening is that the differnce is creating a
"tunnel" into the first cube, with the "end of the tunnel" being the same
color as the second cube. This is odd because I thought all objects were
hollow. I expected to see a rectangular hole punched into the first cube,
and being able to look inside of the first cube.



#include "textures.inc"
#include "colors.inc"

// ----------------------------------------
// ############ BEGIN #####################
// ----------------------------------------

camera {
//  location  <-6, 12, -50.05>
//  look_at   <-6, 12, -25.05>

//location <5,3,-11.05>
//look_at <5,3,-8.05>
location <5,3,-15.05>
look_at <5,3,-11.05>

  #if (frame_number < 361)
    rotate <0,360*clock,0>
  #end
}

light_source {
    <-6, 30, -60.05>
    color rgb <1, 1, 1>  // light's color
}

light_source {
    <5,3,-5.05>
    color rgb <1, 1, 1>  // light's color
}


// ----------------------------------------


// house cube
difference {
    box {
        <-10, -1, -10>,  // Near lower left corner
        <10,15,10>       // Far upper right corner

        texture {
            //MJHouse
            Red_Marble
            scale  .25
            rotate y*90
        }
    }

            // this is only done for the difference of the house cube
        // front door
        box { <4,-1.01,-10.01>, <7, 4, -9> texture { White_Marble } }


} //end of difference for the house cube


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

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