POV-Ray : Newsgroups : povray.binaries.images : Strange Artifacts : Re: Strange Artifacts Server Time
30 Jul 2024 18:17:32 EDT (-0400)
  Re: Strange Artifacts  
From: clipka
Date: 2 Oct 2011 07:14:15
Message: <4e884787$1@news.povray.org>


> cylinder
> {
> <2.1+cp, sh+2*rfh/(mr+1), 4.1>, <4.9, sh+2*rfh/(mr+1), 4.1>, or
                                    ~~~
Note that this does /not/ coincide with the sphere's center. You need to 
apply the small correction here as well to fix this...

> sphere
> {
> // sqrt(sqr(3.6)-sqr(0.1))
> // <4.9+(3.6-cos(atan(0.1/3.6))*3.6), sh+rfh/(mr+1), 4.1>, or
> <4.9+(3.6-sqrt(pow(3.6, 2)-pow(0.1, 2))), sh+rfh/(mr+1), 4.1>, or
> texture { T_Red_Metal }
> }

> difference // ground floor round cutout railing, lower rail
> {
> torus
> {
> 3.6, or
> }
> box
> {
> <0, -(or+df), -(3.6+or+df)>, <3.6+or+df, or+df, 3.6+or+df>
> }
> box
> {
> <-(3.6+or+df), -(or+2*df), -(3.6+or+2*df)>, <3.6+or+2*df, or+2*df, 0>
> rotate <0, degrees(atan(0.1/3.5)), 0>
                      ~~~~     ~~~
... and here you're miscalculating the angle, using both the wrong 
values (should be 0.1/3.6 rather than 0.1/3.5) and the wrong formula 
(should be asin rather than atan).


Post a reply to this message

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