POV-Ray : Newsgroups : povray.binaries.scene-files : Wrong normal direction on triangle{ }s : Re: Wrong normal direction on triangle{ }s Server Time
25 Apr 2024 11:59:18 EDT (-0400)
  Re: Wrong normal direction on triangle{ }s  
From: Bald Eagle
Date: 18 Aug 2016 12:45:01
Message: <web.57b5e50466e64ec9b488d9aa0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> One thing is for sure: You've seriously screwed up on the icosahedron.

It's indeed probable.
When I rendered it the first time around, it was a heinously grotesque form.
Then when I saw that Phi equals approx 1.618, I thought that maybe that was the
problem and vnormalize( )ed all the vertices and it just _looked_ like it was
ok.
Such are the dangers of "massaging the data".

The interesting thing is how well the macro outputs looked - it wasn't obvious
that the basis array of points was wrong.

> Apparently you misinterpreted the positions of the individual points,
> probably thinking that Phi<1, but in fact Phi>1.
>
> Swapping the 1's and Phi's in the TwentyHedron definition gives a nice
> regular icosahedron.
>
> You also got the front top cap's ordering of points wrong. Fixing that
> will give you a nicely textured mesh.

Thanks for looking that over and spotting the errors.
"Do not correct a fool - or he will hate you; correct a wise man, and he will
appreciate you."

> As for the union of individual triangles, I'm still working on that one;
> I must confess that so far I don't really have a clue where things go wrong.

I'm actually surprised that such a thing hasn't come to anyone's attention until
now.

While you work on that, I'll start working on breaking something else.   :D


Post a reply to this message

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