|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I'd like to find a parabolic looping macro, where I can give 2 endpoints and
a "stretched" length. maybe something like this:
#macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
...where P1 and P2 are the endpoints, StretchedLength is how much "string"
there is, and the "segments" would be spaced evenly along the spline like
the links of a chain.
This leads me to my next question. Is there a repository of super-cool POV
macros?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> I'd like to find a parabolic looping macro, where I can give 2 endpoints and
> a "stretched" length. maybe something like this:
>
>
> #macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
>
>
> ...where P1 and P2 are the endpoints, StretchedLength is how much "string"
> there is, and the "segments" would be spaced evenly along the spline like
> the links of a chain.
If you're making a chain, you need a catenary, not a parabola. A nice macro
for this was posted a few months back. If I get the time, I'll try
searching for it.
>
>
> This leads me to my next question. Is there a repository of super-cool POV
> macros?
Yes. :)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> I'd like to find a parabolic looping macro, where I can give 2 endpoints and
> a "stretched" length. maybe something like this:
>
>
> #macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
>
>
> ...where P1 and P2 are the endpoints, StretchedLength is how much "string"
> there is, and the "segments" would be spaced evenly along the spline like
> the links of a chain.
>
>
> This leads me to my next question. Is there a repository of super-cool POV
> macros?
See Chris Colefax's page:
http://www.geocities.com/SiliconValley/Lakes/1434/#IncludeFiles
See his link.inc file
http://www.geocities.com/SiliconValley/Lakes/1434/download/link.zip
Have fun!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bryan Valencia wrote:
> I'd like to find a parabolic looping macro, where I can give 2 endpoints and
> a "stretched" length. maybe something like this:
>
> #macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
>
> ...where P1 and P2 are the endpoints, StretchedLength is how much "string"
> there is, and the "segments" would be spaced evenly along the spline like
> the links of a chain.
Maybe you can reuse the math behind my arch macro:
http://www.b0n541.net/povray/povmacro.html
Just my two eurocents,
Bonsai
--
<--------------------------->
___ __ __ _ ___ ___ _
| _ ) \ \( ) _) _ )( )
| _ \() |\ \ |\ \/ _ \| |
|___/__/_)\__)___)/ \_)_)
www.b0n541.net
<--------------------------->
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> I'd like to find a parabolic looping macro, where I can give 2 endpoints and
> a "stretched" length. maybe something like this:
>
>
> #macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
>
>
> ...where P1 and P2 are the endpoints, StretchedLength is how much "string"
> there is, and the "segments" would be spaced evenly along the spline like
> the links of a chain.
>
>
> This leads me to my next question. Is there a repository of super-cool POV
> macros?
Actually, the Links.inc file by Chris Colefax uses parabolas. The macro from
a few months back was written by Mike Williams. It does use cosh(), but it
is mathematically incorrect. Also, it uses sphere_sweep to make smooth
cables, rather than chains.
I've spent the weekend creating a mathematically correct Chain-making macro.
I'll post preliminary results tonight, if I get the time.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> I'd like to find a parabolic looping macro, where I can give 2 endpoints and
> a "stretched" length. maybe something like this:
>
>
> #macro loop(P1, P2, Stretched, SegmentCount, SegmentObject)
>
>
> ...where P1 and P2 are the endpoints, StretchedLength is how much "string"
> there is, and the "segments" would be spaced evenly along the spline like
> the links of a chain.
Ok, Bryan. I'm posting a draft version of my Chain macro and a short test
scene in binary.images, under subject "True catenary". Rather than
specifying the Streteched length, you specify a Slack factor, which is just
the string length divided by the direct distance between P1 & P2. It
calculates the SegmentCount itself (and segment length) itself.
Have a play with it, I'd love to hear any feedback & suggestions.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|