POV-Ray : Newsgroups : povray.binaries.images : torus bug - attached files (1/1) Server Time
12 Aug 2024 09:21:01 EDT (-0400)
  torus bug - attached files (1/1) (Message 1 to 4 of 4)  
From: Kurts
Subject: torus bug - attached files (1/1)
Date: 5 Oct 2003 07:25:05
Message: <kurtzlepirate-E6D8AB.13250305102003@netplex.aussie.org>
hello.

i have one problem with torus.

let say that we have a form defined like this :
  union {
    cylinder { }
    object { torus_segment }
    cylinder { }
    object { torus_segment }
    cylinder { }
    }
  
major radius is 180, minor radius and cylinder radius is 20.
camera is at <1000, 1000, 1000> and look at <0, 0, 0>.

when rendering this object, no torus is draw !!! (first attached image)

so what ?
if i put camera at <1000, 1000, 1000>*0.60, torus are here (second image).

and so on. let build the bonding box of this object :
box {
  min_extent(sForm) max_extent(sForm)
  pigment { rgbt 1 }  <-- 'invisible pigment
  }

rendering with camera at <1000, 1000, 1000> show torus...
(third attached image)

it's a bug or i am wrong ?
i use mac megapov 1.0 30-dec-2002.


Post a reply to this message


Attachments:
Download 'no_torus.JPG' (5 KB) Download 'camera.JPG' (8 KB) Download 'bondingbox_torus.JPG' (6 KB)

Preview of image 'no_torus.JPG'
no_torus.JPG

Preview of image 'camera.JPG'
camera.JPG

Preview of image 'bondingbox_torus.JPG'
bondingbox_torus.JPG


 

From: Rafal 'Raf256' Maj
Subject: Re: torus bug - attached files (1/1)
Date: 5 Oct 2003 14:44:09
Message: <Xns940BD2ECD1A96raf256com@204.213.191.226>
kur### [at] yahoofr
news:kur### [at] netplexaussieorg 

> hello.

Can You post short example sample code (complete)?


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Slime
Subject: Re: torus bug - attached files (1/1)
Date: 5 Oct 2003 20:45:08
Message: <3f80bb14$1@news.povray.org>
Toruses are fourth-order equations, so they require numbers fairly close to
zero in order to avoid floating point innacuracies. When the camera is too
far away from them, innacuracies are introduced, and the toruses won't be
displayed properly.

If you can live with a closer camera, do that. If not, I believe someone
somewhat recently posted a patch which causes toruses to render more
accurately but more slowly (by bringing the camera closer on a per-sample
level).

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Lars C  Hassing
Subject: Re: torus bug - attached files (1/1)
Date: 6 Oct 2003 18:54:09
Message: <3f81f291$1@news.povray.org>
Please see this torus bug fix:
http://www.hassings.dk/l3/povtorus/povtorus.html
/Lars


Post a reply to this message

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