POV-Ray : Newsgroups : povray.unofficial.patches : Why is sphere_spline so slow? Server Time
1 Nov 2024 09:22:40 EDT (-0400)
  Why is sphere_spline so slow? (Message 1 to 4 of 4)  
From: Geoff Wedig
Subject: Why is sphere_spline so slow?
Date: 16 Feb 2001 11:09:11
Message: <3a8d50a7@news.povray.org>
Recently, I've been working with a picture where I used a sphere spline for
the handle of a vase.  Now, without the spline, the scene renders in a few
minutes.  With it, it takes well over an hour (I didn't let it finish), even
though the spline is a very small segment of the pic.  Why does it take so
long?  Could it be a bounding box issue?  Every pixel was taking longer,
regardless of the location relative to the sphere_spline.

If it's not that, does anyone else have any suggestions?

Geoff


Post a reply to this message

From: Gilles Tran
Subject: Re: Why is sphere_spline so slow?
Date: 16 Feb 2001 11:59:20
Message: <3A8D5CA2.F2C2A514@inapg.inra.fr>
Geoff Wedig wrote:

> Recently, I've been working with a picture where I used a sphere spline for
> the handle of a vase.  Now, without the spline, the scene renders in a few
> minutes.  With it, it takes well over an hour (I didn't let it finish), even
> though the spline is a very small segment of the pic.  Why does it take so
> long?  Could it be a bounding box issue?  Every pixel was taking longer,
> regardless of the location relative to the sphere_spline.
>
> If it's not that, does anyone else have any suggestions?

Suggestion one: bound it manually. The object won't have such a drastic effect
on the scene, though the object itself will still render slowly. Actually, a
fixed sphere_sweep object would be much appreciated...

Suggestion two: use the init_3d_spline function to concatenate spheres and
cylinders. It's less smooth and flexible but it works fine in most cases and
renders fast.

G.

--

**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery


Post a reply to this message

From: Geoff Wedig
Subject: Re: Why is sphere_spline so slow?
Date: 16 Feb 2001 13:52:14
Message: <3a8d76de@news.povray.org>
Gilles Tran <tra### [at] inapginrafr> wrote:

> Geoff Wedig wrote:

>> Recently, I've been working with a picture where I used a sphere spline for
>> the handle of a vase.  Now, without the spline, the scene renders in a few
>> minutes.  With it, it takes well over an hour (I didn't let it finish), even
>> though the spline is a very small segment of the pic.  Why does it take so
>> long?  Could it be a bounding box issue?  Every pixel was taking longer,
>> regardless of the location relative to the sphere_spline.
>>
>> If it's not that, does anyone else have any suggestions?

> Suggestion one: bound it manually. The object won't have such a drastic effect
> on the scene, though the object itself will still render slowly. Actually, a
> fixed sphere_sweep object would be much appreciated...

I'm going to try this.  Just haven't had a chance yet.  A fixed version
would be really nice, but I don't have the code know-how to do it (well, I
don't know the POV code.  I could write something, I'm sure.

> Suggestion two: use the init_3d_spline function to concatenate spheres and
> cylinders. It's less smooth and flexible but it works fine in most cases and
> renders fast.

Might work in this scene, since the detail is small, but I like the smooth
feel of the sphere splines in detail, which is really slow, because of where
it's located.

Geoff


Post a reply to this message

From: Geoff Wedig
Subject: Re: Why is sphere_spline so slow?
Date: 16 Feb 2001 15:09:13
Message: <3a8d88e6@news.povray.org>
Geoff Wedig <wed### [at] darwinepbicwruedu> wrote:

> Gilles Tran <tra### [at] inapginrafr> wrote:

>> Geoff Wedig wrote:

>>> Recently, I've been working with a picture where I used a sphere spline for
>>> the handle of a vase.  Now, without the spline, the scene renders in a few
>>> minutes.  With it, it takes well over an hour (I didn't let it finish), even
>>> though the spline is a very small segment of the pic.  Why does it take so
>>> long?  Could it be a bounding box issue?  Every pixel was taking longer,
>>> regardless of the location relative to the sphere_spline.
>>>
>>> If it's not that, does anyone else have any suggestions?

>> Suggestion one: bound it manually. The object won't have such a drastic effect
>> on the scene, though the object itself will still render slowly. Actually, a
>> fixed sphere_sweep object would be much appreciated...

> I'm going to try this.  Just haven't had a chance yet.  A fixed version
> would be really nice, but I don't have the code know-how to do it (well, I
> don't know the POV code.  I could write something, I'm sure.

Just an update, adding a manual bounding box does help a lot, but it's still
noticably slower.  The only other thing I've included that I didn't before
is a rotational object.  I suppose I can bound that too.  Maybe that'll do
it.  *grumble*.

Geoff


Post a reply to this message

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