POV-Ray : Newsgroups : povray.general : Bug: trace and no_image : Re: trace and no_image Server Time
4 Nov 2024 21:21:38 EST (-0500)
  Re: trace and no_image  
From: Mike Williams
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

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