POV-Ray : Newsgroups : povray.general : difference problem w/3.1 Server Time
13 Aug 2024 15:33:03 EDT (-0400)
  difference problem w/3.1 (Message 2 to 11 of 21)  
<<< Previous 1 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Dan Connelly
Subject: Re: difference problem w/3.1
Date: 3 Oct 1998 18:04:05
Message: <36169144.C71DB716@flash.net>
Differences of coplanar surfaces are not well defined.
Due to the finite precision of floating point operations.
You should always make sure the negative object overlaps
the positive one.

This is a well-known feature of POV, and other renderers,
as well.


Dan

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Lewis Sellers
Subject: Re: difference problem w/3.1
Date: 3 Oct 1998 22:27:19
Message: <3616CF06.98333CF0@usit.net>
Dan Connelly wrote:
> 
> Differences of coplanar surfaces are not well defined.
> Due to the finite precision of floating point operations.
> You should always make sure the negative object overlaps
> the positive one.
> 
> This is a well-known feature of POV, and other renderers,
> as well.
> 
> Dan
> 

Hmm. That makes life more difficult. :)

So, you're saying that I just have to make sure it overlaps by a small
amount (.001 or so) to fix it. And that's what every does?
That is, in fact btw, how I "hacked" the problem last night after
spending a few frustrating hours tearing apart my house model looking
for the stray object I thought was causing the prob.

Thanks for the info.

You know, a scene directory containing examples of all the "features" of
pov-ray might be useful. If anyone ever makes one, I'll donate my
preceding scene. ;-)



--min

> --
> http://www.flash.net/~djconnel/

-- 
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

From: Lewis Sellers
Subject: Re: difference problem w/3.1
Date: 3 Oct 1998 22:56:31
Message: <3616D5D2.731FFDAB@usit.net>
This, btw, is what I was talking about to anyone that was curious.
Later,


-- 
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


Attachments:
Download 'bug1_pr31.jpg' (11 KB) Download 'hackedbug1_pr31.jpg' (12 KB)

Preview of image 'bug1_pr31.jpg'
bug1_pr31.jpg

Preview of image 'hackedbug1_pr31.jpg'
hackedbug1_pr31.jpg


 

From: Dan Connelly
Subject: Re: difference problem w/3.1
Date: 3 Oct 1998 23:14:17
Message: <3616D9F6.90BD4CBB@flash.net>
Lewis Sellers wrote:
> Hmm. That makes life more difficult. :)

Nt really -- you get accustomed to it quickly.

 
> So, you're saying that I just have to make sure it overlaps by a small
> amount (.001 or so) to fix it. And that's what every does?

Yes.  It can either be an offset or a scaling.  But make
sure it overlaps.

Also on unions where the components have different textures,
you must also avoid coincident surfaces for the same reason.

It's a classic raytracing problem.... as I said, one quickly
gets used to avoiding it.

Dan

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Ken
Subject: Re: difference problem w/3.1
Date: 3 Oct 1998 23:14:59
Message: <3616D9C7.B4A997C1@pacbell.net>
Lewis Sellers wrote:

> You know, a scene directory containing examples of all the "features" of
> pov-ray might be useful. If anyone ever makes one, I'll donate my
> preceding scene. ;-)
>
> --min

Greetings

Actually there is a scene directory that has virtually
every feature that POV-Ray has to offer. It is the
example files that ship with each version of Pov.

They are not intended to be something to just render
so you can pretty up your hard drive. Each scene was
chosen, because it demonstrates a feature of the
program, that they feel either helps introduce a new
feature or it demonstrates some of the variables of a
feature that might otherwise be missed. They have
always done it this way and it is surprising to me
how many people seem miss it.

Anyway I'll get off of my soap box now.

While cruising several of the povray related sites today
I found a good on line tutorial detailing the use of csg
operations in POV-Ray. It offers straight forward examples
with image and text based explanations that are well
thought out and easy to understand.

Take a look at:

http://tqd.advanced.org/3285/language/csg.html#intersection

Ken Tyler


Post a reply to this message

From: Lewis Sellers
Subject: Re: difference problem w/3.1
Date: 4 Oct 1998 05:33:52
Message: <361732FB.63291C81@usit.net>
Ken wrote:
> 
> Lewis Sellers wrote:
> 
> > You know, a scene directory containing examples of all the "features" of
> > pov-ray might be useful. If anyone ever makes one, I'll donate my
> > preceding scene. ;-)
> >
> > --min
> 
> Greetings
> 
> Actually there is a scene directory that has virtually
> every feature that POV-Ray has to offer. It is the
> example files that ship with each version of Pov.
> 
> They are not intended to be something to just render
> so you can pretty up your hard drive. Each scene was

Oh. Now you tell me, after I've rendered them all. :)

But anyway, I think I didn't make myself quite as clear as I intended. I
only meant that there should be another scenes folder, perhaps called
"bugs" or "things to watch out for". In it there would be little scenes
demonstrating CSG problems such as mine, with little comments on how to
overcome them.

I have actually renendered all the sample scene files and found them
very helpful. :)
--min

> Anyway I'll get off of my soap box now.

You're soap box's ior seems a bit off btw. ;-)


> Take a look at:
> 
> http://tqd.advanced.org/3285/language/csg.html#intersection

ookie moo.

Thanks,

--min

> 
> Ken Tyler

-- 
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

From: Lewis Sellers
Subject: Re: difference problem w/3.1
Date: 4 Oct 1998 05:50:08
Message: <361736CC.17B95B74@usit.net>
Dan Connelly wrote:
> 
> Lewis Sellers wrote:
> > Hmm. That makes life more difficult. :)
> 
> Nt really -- you get accustomed to it quickly.
> 
> 
> > So, you're saying that I just have to make sure it overlaps by a small
> > amount (.001 or so) to fix it. And that's what every does?
> 
> Yes.  It can either be an offset or a scaling.  But make
> sure it overlaps.
> 
> Also on unions where the components have different textures,
> you must also avoid coincident surfaces for the same reason.
> 
> It's a classic raytracing problem.... as I said, one quickly
> gets used to avoiding it.
> 

Ah. Still feels a bit messy, but thanks. I guess it's a good thing--my
first encounter with a "classic raytracing problem". I think it deserves
it's own month at IRTC. ;-)

Thanks,
--min
 
> Dan
> 
> --
> http://www.flash.net/~djconnel/

-- 
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

From: Nieminen Mika
Subject: Re: difference problem w/3.1
Date: 4 Oct 1998 08:53:22
Message: <361761b2.0@news.povray.org>
Lewis Sellers <lse### [at] usitnet> wrote:
: So, you're saying that I just have to make sure it overlaps by a small
: amount (.001 or so) to fix it. And that's what every does?
: That is, in fact btw, how I "hacked" the problem last night after
: spending a few frustrating hours tearing apart my house model looking
: for the stray object I thought was causing the prob.

  You talk like it was a bug which you have to avoid by hacking the scene
in some way.
  No, it's not a bug. Povray works perfectly. How do you expect povray to
know which one of the coincident planes is at the most top? You have to
tell it to povray or it can't calculate it. And you tell that by placing
the topmost surface a little higher than the other.

-- 
                                                           - Warp. -


Post a reply to this message

From: Dan Connelly
Subject: Re: difference problem w/3.1
Date: 4 Oct 1998 09:02:51
Message: <361763EB.D0992D34@flash.net>
Nieminen Mika wrote:

>   No, it's not a bug. Povray works perfectly. How do you expect povray to
> know which one of the coincident planes is at the most top?

No.   It is a bug.

It is a simple fact of algebra that any object minus itelf equals zero,
or null.  In POV this is not the case.  Therefore it is a bug.

Does (sqrt 2)^2 - 2 = 0?  Is 3 * (1/3) - 1 = 0?  Of course.  But computers
may not yield these results.

There is no ambiguity in the case of difference.

Now in the case of union, I agree with you.

Dan

P.S. Just because it is a bug doesn't mean it should be fixed, as
the problem is with the way computers represent floating point numbers,
and thus isn't something which POV should try to correct.

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Nieminen Mika
Subject: Re: difference problem w/3.1
Date: 4 Oct 1998 09:22:22
Message: <3617687e.0@news.povray.org>
Dan Connelly <djc### [at] flashnet> wrote:
:>   No, it's not a bug. Povray works perfectly. How do you expect povray to
:> know which one of the coincident planes is at the most top?

: No.   It is a bug.

: It is a simple fact of algebra that any object minus itelf equals zero,
: or null.  In POV this is not the case.  Therefore it is a bug.

  No, it isn't a bug.
  A bug is a programming error: The program should work in other way, but it
doesn't because of a human error while writing the program source code.
  This isn't a programming error. It works exactly like the programmer
intended it to work, and there's no better way to do it.
  It's a computer limitation, not a bug.

-- 
                                                           - Warp. -


Post a reply to this message

<<< Previous 1 Messages Goto Latest 10 Messages Next 10 Messages >>>

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