POV-Ray : Newsgroups : povray.general : Bug: trace and no_image Server Time
4 Nov 2024 23:17:55 EST (-0500)
  Bug: trace and no_image (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Rune
Subject: Bug: trace and no_image
Date: 12 Sep 2003 06:26:29
Message: <3f619f55$1@news.povray.org>
I don't think that the no_image flag should prevent the trace() function
from detecting the object. And often it does not. But sometimes it does.
Either way, the current behavior is very inconsistent, and must be a
bug. The minimal scene below demonstrates the problem.


// single sphere with no_image is detected by trace
//#declare Object = sphere {1, 0.0 no_image}

// sphere with no_image inside union is not!
#declare Object = union {sphere {0, 0.5} sphere {0, 1.0 no_image}}

#declare N = <0,0,0>;
#declare P = trace(Object,5*y,-y,N);
#debug concat("\n\nP: <",vstr(3,P,",",4,2),">   N:
<",vstr(3,N,",",4,2),">\n\n")


Tested using POV-Ray version 3.5.icl.win32

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com **updated Jul 25**
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Bug: trace and no_image
Date: 12 Sep 2003 06:39:44
Message: <3f61a270$1@news.povray.org>
In article <3f619f55$1@news.povray.org> , "Rune" <run### [at] runevisioncom>
wrote:

> I don't think that the no_image flag should prevent the trace() function
> from detecting the object. And often it does not. But sometimes it does.
> Either way, the current behavior is very inconsistent, and must be a
> bug. The minimal scene below demonstrates the problem.

It does detect the object.  The first object, and that is what it returns.
However, there can of course be more objects in its path...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: ABX
Subject: Re: Bug: trace and no_image
Date: 12 Sep 2003 06:55:46
Message: <od93mvc7sdv0fhrrf0u8c691b77tvod0kk@4ax.com>
On Fri, 12 Sep 2003 12:39:43 +0200, "Thorsten Froehlich" <tho### [at] trfde>
wrote:
> It does detect the object.  The first object, and that is what it returns.
> However, there can of course be more objects in its path...

IIRC trace() given by SDL checks only one object taken from its parameters.

ABX


Post a reply to this message

From: Rune
Subject: Re: Bug: trace and no_image
Date: 12 Sep 2003 07:22:54
Message: <3f61ac8e$1@news.povray.org>
Thorsten Froehlich wrote:
> It does detect the object.  The first object,
> and that is what it returns. However, there
> can of course be more objects in its path...

I don't know what you mean by the "first" object.

There is an inner sphere and an outer sphere (with bigger radius). The
trace coming from outside point towards their centers should first hit
the sphere with the biggest radius. But when this sphere has no_image
specified, it is being ignored.

If, by "first" you refer to the order that the object are written down
in SDL, then I can inform that switching the order that the objects are
written down in SDL changes nothing. It is still the object without the
no_image keyword that is being returned.

In generel, I find your answer confusing. Are you confirming or denying
the bug?

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com **updated Jul 25**
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Christopher James Huff
Subject: Re: Bug: trace and no_image
Date: 12 Sep 2003 10:35:02
Message: <cjameshuff-4EBD4A.10350312092003@netplex.aussie.org>
In article <od93mvc7sdv0fhrrf0u8c691b77tvod0kk@4ax.com>,
 ABX <abx### [at] abxartpl> wrote:

> On Fri, 12 Sep 2003 12:39:43 +0200, "Thorsten Froehlich" <tho### [at] trfde>
> wrote:
> > It does detect the object.  The first object, and that is what it returns.
> > However, there can of course be more objects in its path...
> 
> IIRC trace() given by SDL checks only one object taken from its parameters.

But in this case, that one object is a union. I haven't looked at this 
very closely, but it looks like this may be an actual problem. The 
no_image flag should make no difference for trace().

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Rune
Subject: Re: trace and no_image
Date: 14 Sep 2003 18:15:26
Message: <3f64e87e$1@news.povray.org>
Could someone please post a formal bug confirmation as a reply here - or
else could someone make clear that it is not a bug?

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com **updated Jul 25**
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: trace and no_image
Date: 14 Sep 2003 18:39:53
Message: <3f64ee39$1@news.povray.org>
So, I've tested your scene: once how you pasted
it here, and once with commenting the first, pure
no_image sphere in (and the latter one, with the
"normal" sphere inside, was commented out, of
course).

On both cases, it doesn't detect the no_image object,
but only the inner sphere with .5 radius.

I've got the official POV-Ray 3.5, Windows 2000,
768 MB DDR-RAM on AthlonXP 2400+.

Aside of that though:
IF the trace is based on the tracing rays of the
viewing screen, then I'd GUESS that it actually never
would  hit a no_image object anyway. Much like
radiosity doesn't see no_image objects. But
thats just a WILD GUESS which any newbie without
background knowledge should NOT listen to.

Rune, can you post a small example where it does
hit a no_image object?

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: no_lights (@) digitaltwilight.de


> Could someone please post a formal bug confirmation as a reply here - or
> else could someone make clear that it is not a bug?
>
> Rune
> --
> 3D images and anims, include files, tutorials and more:
> rune|vision:  http://runevision.com **updated Jul 25**
> POV-Ray Ring: http://webring.povray.co.uk
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 02.09.2003


Post a reply to this message

From: Mike Williams
Subject: Re: trace and no_image
Date: 14 Sep 2003 23:45:40
Message: <uFpXPAA9STZ$Ew4Y@econym.demon.co.uk>
Wasn't it Tim Nikias v2.0 who wrote:
>
>Rune, can you post a small example where it does
>hit a no_image object?
>
He almost did in his original post, except that there was a tiny typo.
The sphere should have been {0,1 no_image} rather than {1,0 no_image}

// single sphere with no_image is detected by trace
#declare Object = sphere {0,1 no_image}

// sphere with no_image inside union is not!
//#declare Object = union {sphere {0, 0.5} sphere {0, 1.0 no_image}}

#declare N = <0,0,0>;
#declare P = trace(Object,5*y,-y,N);
#debug concat("\n\nP: <",vstr(3,P,",",4,2),">   N:
<",vstr(3,N,",",4,2),">\n\n")

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: trace and no_image
Date: 15 Sep 2003 03:26:14
Message: <3f656996$1@news.povray.org>
Ah, okay. Didn't look out for that. So then, I can
confirm that the pure no_image works with
trace, but inside the given union (even if order
of objects are switched) it doesn't work.

POV-Ray for Windows, Win2000, AthlonXP 2.400+,
768 MB RAM

Regards,
Tim

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: no_lights (@) digitaltwilight.de


> Wasn't it Tim Nikias v2.0 who wrote:
> >
> >Rune, can you post a small example where it does
> >hit a no_image object?
> >
> He almost did in his original post, except that there was a tiny typo.
> The sphere should have been {0,1 no_image} rather than {1,0 no_image}
>
> // single sphere with no_image is detected by trace
> #declare Object = sphere {0,1 no_image}
>
> // sphere with no_image inside union is not!
> //#declare Object = union {sphere {0, 0.5} sphere {0, 1.0 no_image}}
>
> #declare N = <0,0,0>;
> #declare P = trace(Object,5*y,-y,N);
> #debug concat("\n\nP: <",vstr(3,P,",",4,2),">   N:
> <",vstr(3,N,",",4,2),">\n\n")
>
> -- 
> Mike Williams
> Gentleman of Leisure


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 01.09.2003


Post a reply to this message

From: Rune
Subject: Re: trace and no_image
Date: 15 Sep 2003 08:58:28
Message: <3f65b774@news.povray.org>
Tim Nikias v2.0 wrote:
> Ah, okay. Didn't look out for that. So then, I can
> confirm that the pure no_image works with
> trace, but inside the given union (even if order
> of objects are switched) it doesn't work.
>
> POV-Ray for Windows, Win2000, AthlonXP 2.400+,
> 768 MB RAM

Thanks to you both.

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com **updated Jul 25**
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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