POV-Ray : Newsgroups : povray.general : polygon not visible : Re: polygon not visible Server Time
4 Dec 2024 14:18:02 EST (-0500)
  Re: polygon not visible  
From: William F Pokorny
Date: 29 Nov 2024 20:55:20
Message: <674a7088$1@news.povray.org>
On 11/29/24 18:20, folkert wrote:
> Hi,
> 
> I'm trying to render a simple script:
> 
> polygon { 5, <15.45085, 0, 47.55283>, <15.11321, -3.212412, 47.55283>,
> <24.45369, -5.197792, 43.30127>, <25, 0, 43.30127>, <15.45085, 0, 47.55283>
> texture { pigment { color rgb <1, 0, 0> } } }
> 
> sky_sphere { pigment { color rgb <1, 1, 1> } }
> camera { look_at <15, -3, 47> location <0, 0, 100> }
> light_source { <0, 0, 100> color rgb <1, 1, 1> }
> 
> 
> The red polygon is not visible. Any ideas why?
> 

The polygon is set up as a 2D object sitting in an x,y plane somewhere 
along z.

The normal way to specify it is to use 2D vectors of <x,y> or <u,v> 
values.

You can specify 3 coordinates, but the z values must all be the same. If 
not, the parser is supposed to issue an error because the polygon code 
won't work. However, it looks like that checking got dropped at some point.

I see this as a parser bug.

Bill P.


Post a reply to this message

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