POV-Ray : Newsgroups : povray.binaries.images : Cheap Sweep Server Time
1 Nov 2024 09:22:59 EDT (-0400)
  Cheap Sweep (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Shay
Subject: Cheap Sweep
Date: 27 Mar 2002 11:10:28
Message: <3ca1eef4@news.povray.org>
This is the result of a macro that I thought of on the way to work
yesterday. Each of these sphere_sweep knock-offs has 100 control points and
either will render on my machine in about 4 seconds without AA! (that won't
mean much to you if you haven't used sphere_sweep before, but if you
have...)

This isn't a replacement for sphere_sweep, but if all that is required is a
smooth curve controlled by a group of points, then this can be used to make
one very quickly.

 -Shay


Post a reply to this message


Attachments:
Download 'Cheap_JPG.jpg' (19 KB)

Preview of image 'Cheap_JPG.jpg'
Cheap_JPG.jpg


 

From: Spock
Subject: Re: Cheap Sweep
Date: 27 Mar 2002 11:12:23
Message: <3ca1ef67$1@news.povray.org>
Cool.  How do you set up the control points?  Will you post your macro?

"Shay" <sah### [at] simcopartscom> wrote in message
news:3ca1eef4@news.povray.org...
>
> This is the result of a macro that I thought of on the way to work
> yesterday. Each of these sphere_sweep knock-offs has 100 control points
and
> either will render on my machine in about 4 seconds without AA! (that
won't
> mean much to you if you haven't used sphere_sweep before, but if you
> have...)
>
> This isn't a replacement for sphere_sweep, but if all that is required is
a
> smooth curve controlled by a group of points, then this can be used to
make
> one very quickly.
>
>  -Shay
>
>
>


Post a reply to this message

From: Shay
Subject: Re: Cheap Sweep
Date: 27 Mar 2002 12:19:13
Message: <3ca1ff11$1@news.povray.org>
Spock <spo### [at] nospamcom> wrote in message news:3ca1ef67$1@news.povray.org...
> Cool

Thank you.

>  How do you set up the control points?

The user puts the control points into an array. (I *think* I understood the
question) Then the macro then builds a CSG "sweep."

> Will you post your macro?

I will post the code for the macro, but posting three buggy versions of
another macro to pbs-f a week or two ago has taught me a lesson. I will use
the macro for a while first to make SURE that I have not missed and
mistakes.

 -Shay


Post a reply to this message

From: Shay
Subject: Re: Cheap Sweep
Date: 27 Mar 2002 17:29:58
Message: <3ca247e6$1@news.povray.org>
Hugo <hua### [at] post3teledk> wrote in message
news:3ca2244f$1@news.povray.org...
>
> I'm looking forward to see if these sweeps are made up of thousands of
small
> spheres, a few hundred cylinders, or a bunch of torus? Eventually torus's
> would be the best solution (?).
>

The sweeps are made up mostly of tori. The first sweep has only 196 objects,
not sure about the second. This is what makes the render so fast.

> I've seen a macro for this already, but it
> uses it's own kind of spline, that acts a little wierd.
>

Do you remember where you saw this? I would very much like to take a look.

 -Shay


Post a reply to this message

From: Hugo
Subject: Re: Cheap Sweep
Date: 27 Mar 2002 19:05:06
Message: <3ca25e32@news.povray.org>
> Do you remember where you saw this? I would very much like to take a look.

Of course you can have a look.  :o)
I attached it to this mail.

Regards,
Hugo


Post a reply to this message


Attachments:
Download 'TorSpline.pov.txt' (4 KB)

From:
Subject: Re: Cheap Sweep
Date: 28 Mar 2002 03:09:16
Message: <jkj5au81gpdeinl89lg77i8n1qnrd6t36e@4ax.com>
On Wed, 27 Mar 2002 16:29:57 -0600, "Shay" <sah### [at] simcopartscom> wrote:
>> I'm looking forward to see if these sweeps are made up of thousands of small
>> spheres, a few hundred cylinders, or a bunch of torus? Eventually torus's
>> would be the best solution (?).
>
> The sweeps are made up mostly of tori. The first sweep has only 196 objects,
> not sure about the second. This is what makes the render so fast.

btw: have you seen http://www.ch.cam.ac.uk/MMRG/people/mdm/torpatch.html
iirc there was also include file equivalent torpatch.inc (by Ron Parker ?)

ABX


Post a reply to this message

From: Shay
Subject: Similar, but definitely different
Date: 28 Mar 2002 10:19:02
Message: <3ca33466@news.povray.org>
I looked at Tor's code that Hugo posted and he uses a completely different
method. His method makes a torus segment with ends on two control points. My
method makes a torus segment which may pass through no control points and
has its ends at the midpoints between a point and its previous and next
points.

I considered Tor's method, but the method I chose is more appropriate for
the kinds of objects I designed it to create. (Cables, tubing, piping, etc.)
Attached is a picture showing the same set of control points and the output
of each macro. My macro produced the red sweep, Tor's the blue.

 -Shay



news:jkj5au81gpdeinl89lg77i8n1qnrd6t36e@4ax.com...


Post a reply to this message


Attachments:
Download 'Shay_TorJPG.jpg' (12 KB)

Preview of image 'Shay_TorJPG.jpg'
Shay_TorJPG.jpg


 

From:
Subject: Re: Similar, but definitely different
Date: 28 Mar 2002 10:35:21
Message: <pdd6auo66m8l54b54hljva26jsis0j79i7@4ax.com>
On Thu, 28 Mar 2002 09:20:10 -0600, "Shay" <sah### [at] simcopartscom> wrote:
> I looked at Tor's code ...
> My macro produced the red sweep, Tor's the blue.

I know we know one Tor. But afaik it's not Tor's code :-)

ABX


Post a reply to this message

From: Shay
Subject: Re: Similar, but definitely different
Date: 28 Mar 2002 10:42:35
Message: <3ca339eb$1@news.povray.org>

news:pdd6auo66m8l54b54hljva26jsis0j79i7@4ax.com...
> On Thu, 28 Mar 2002 09:20:10 -0600, "Shay" <sah### [at] simcopartscom> wrote:
> > I looked at Tor's code ...
> > My macro produced the red sweep, Tor's the blue.
>
> I know we know one Tor. But afaik it's not Tor's code :-)
>
> ABX


My mistake. I saw the title TorSpline.pov and just assumed.
 Proper credit belongs to

********************
// Auth: Ronald L. Parker
********************

 -Shay


Post a reply to this message

From: Hugo
Subject: Re: Similar, but definitely different
Date: 28 Mar 2002 11:23:23
Message: <3ca3437b$1@news.povray.org>
The red line is much better! It's predictable. I'm looking forward to your
macro.

Regards,
Hugo


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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