POV-Ray : Newsgroups : povray.binaries.images : Elliptical torus Server Time
7 Aug 2024 15:20:12 EDT (-0400)
  Elliptical torus (Message 1 to 5 of 5)  
From: Bruno Cabasson
Subject: Elliptical torus
Date: 2 Mar 2006 10:20:00
Message: <web.44070cbe4669438182fc96790@news.povray.org>
Hello!

I worked on a subject posted earlier in the 'new users' thread. I put the
result here because I think the topic does not address ont only new users.
I'll post in p.b.s_f a sample scene with macros that make an elliptical
torus:

   -) sw_elliptical_torus(_major, _minor, _radius, _tolerance)
      for the sphere_sweep version (also providing a macro to generate the
spline),
   -) elliptical_torus(_major, _minor, _radius)
      for the blob version, which is much faster. The blob is made of
spheres with constant linear density to ensure the radius is constant all
along the perimeter.

As the image shows, the scene superimposes the two versions in order to
visualize that they overlap correctly, and proving thay are closely
equivalent. Just comment out one or the other and compare the render speed.

    Bruno

NB: I also use blobs in a rope macro I posted recently here (improving it at
the time).


Post a reply to this message


Attachments:
Download 'elliptic_torus.jpg' (37 KB)

Preview of image 'elliptic_torus.jpg'
elliptic_torus.jpg


 

From: Bruno Cabasson
Subject: Re: Elliptical torus
Date: 3 Mar 2006 04:55:01
Message: <web.4408121ea032ea3d82fc96790@news.povray.org>
Hi!

I was proud of my blob-macro for elliptical torus in response to a recent
thread in p.b.newusers. It works fine for solid torii and renders fast, but
I noticed artifacts when I fill with glass or media. See the eye on the
right and the sparkles on the nose. Where could it come from?

   Thanks

       Bruno


Post a reply to this message


Attachments:
Download 'elliptic_torus_face.jpg' (29 KB)

Preview of image 'elliptic_torus_face.jpg'
elliptic_torus_face.jpg


 

From: Sebastian H 
Subject: Re: Elliptical torus
Date: 4 Mar 2006 12:31:55
Message: <4409cf0b@news.povray.org>
Bruno Cabasson wrote:
> Hello!

Here's an image of the slow isosurface version
I posted in your thread in p.newuser.

Regards,
Sebastian


Post a reply to this message


Attachments:
Download 'iso_torus_01_2006-03-04.jpg' (13 KB)

Preview of image 'iso_torus_01_2006-03-04.jpg'
iso_torus_01_2006-03-04.jpg


 

From: David El Tom
Subject: Re: Elliptical torus
Date: 7 Mar 2006 03:04:09
Message: <440d3e79$1@news.povray.org>
Bruno Cabasson wrote:
> I was proud of my blob-macro for elliptical torus in response to a recent
> thread in p.b.newusers. It works fine for solid torii and renders fast, but
> I noticed artifacts when I fill with glass or media. See the eye on the
> right and the sparkles on the nose. Where could it come from?
> 

could it be that you there are to much overlapping blob components at the
start/end section ?

to put it other words: for a closed path you have n components and n section 
(between the components) while for an open path you just have n-1 sections.
So try to remove the last blob component  or adjust the step-width and see if 
there is still this artifact.

... dave


Post a reply to this message

From: Bruno Cabasson
Subject: Re: Elliptical torus
Date: 7 Mar 2006 03:55:01
Message: <web.440d49aca032ea3d82fc96790@news.povray.org>
David El Tom <dav### [at] t-onlinede> wrote:
> Bruno Cabasson wrote:
> > I was proud of my blob-macro for elliptical torus in response to a recent
> > thread in p.b.newusers. It works fine for solid torii and renders fast, but
> > I noticed artifacts when I fill with glass or media. See the eye on the
> > right and the sparkles on the nose. Where could it come from?
> >
>
> could it be that you there are to much overlapping blob components at the
> start/end section ?
>
> to put it other words: for a closed path you have n components and n section
> (between the components) while for an open path you just have n-1 sections.
> So try to remove the last blob component  or adjust the step-width and see if
> there is still this artifact.
>
> ... dave

Thanks for the comment!

The linear density of the blob (expressed in number of spheres per torus
radius) is auto adjusted by the macro by over-sampling and intergrating the
distance travelled so far and droping a blob component at constant distance.
But, as you said, I also noticed the problem comes from the junction of the
two ends of the blob. I played with the loop control and only one more/less
sphere is sufficient to produce the artifact. I could not see whether I made
a mistake in my loop within the macro, and I could not find any satisfactory
workaround. But the artifact is very sensitive, so my conclusion is that my
macro is OK for solid objects with not too much reflection (the artifact is
not visible, and fast render). If needed, I use the sphere_sweep version
with appropriate bounding box.

     Bruno


Post a reply to this message

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