 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I'm currently working on a rope macro that will generate a rope along a
spline.
The output is a mesh2 with a uv_map.
I'll make the macro available when it's finished.
Post a reply to this message
Attachments:
Download 'Rope.jpg' (28 KB)
Preview of image 'Rope.jpg'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Great!!
I buy it!
Marc
"Mike Williams" <nos### [at] econym demon co uk> a écrit dans le message de
news:4223062d@news.povray.org...
> I'm currently working on a rope macro that will generate a rope along a
> spline.
>
> The output is a mesh2 with a uv_map.
>
> I'll make the macro available when it's finished.
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
The source code is now available at
http://www.econym.demon.co.uk/pov/rope.htm
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike,
Best I've seen so far.
Rope technicalities - attention to detail.
A cabled rope is typically a 3-start helical bundle. And typically
right-handed.
A nice example is at
http://www.bestdock.com/pics/extras/Rope.JPG
Your rope looks like it has about 6 strands and is left-handed.
Also in the first bend (from the left) it appears to be unravelling (strands
are more parallel with main axis).
Keep up the good work.
DLM
"Mike Williams" <nos### [at] econym demon co uk> wrote in message
news:4223062d@news.povray.org...
> I'm currently working on a rope macro that will generate a rope along a
> spline.
>
> The output is a mesh2 with a uv_map.
>
> I'll make the macro available when it's finished.
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Wasn't it dlm who wrote:
>Mike,
>Best I've seen so far.
>Rope technicalities - attention to detail.
>A cabled rope is typically a 3-start helical bundle. And typically
>right-handed.
>A nice example is at
>http://www.bestdock.com/pics/extras/Rope.JPG
>Your rope looks like it has about 6 strands and is left-handed.
>Also in the first bend (from the left) it appears to be unravelling (strands
>are more parallel with main axis).
>Keep up the good work.
This particular example has five strands, but the macro allows any
number not less than three.
The macro supports left handed rope by setting a negative value to the
Twistiness parameter.
I don't think it actually unravels, it's just an illusion caused by the
perspective.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <4223062d@news.povray.org>,
"Mike Williams" <nos### [at] econym demon co uk> wrote:
>>I'm currently working on a rope macro that will generate a rope along a
>>spline.
>>
>>The output is a mesh2 with a uv_map.
>>
>>I'll make the macro available when it's finished.
>>
>>
>>begin 666 Rope.jpg
>>[Image]
>>
>>end
very nice!
did my cables inspire you ? ;-)
good job, as usual.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
As always, great, Mike, and thanks. I learn more from your tutorials, and
examining your examples and macros, than about any other way.
Dave Matthews
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike Williams wrote:
> This particular example has five strands, but the macro allows any
> number not less than three.
>
> The macro supports left handed rope by setting a negative value to the
> Twistiness parameter.
I'd love to see an example of a three-strand rope with a left hand twist
to it .. there was something about this one that just didn't feel quite
right.
Then:
... your next mission, should you choose to accept it, is to create a
macro for a stranded 3-strand rope. Not sure of the specs, but each
strand in hemp ropes tends to be a twist of smaller strands ...
Cheers!
Rick
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Dave Matthews" <dma### [at] wr mnwest mnscu edu> schreef in bericht
news:web.4223653064b7b8e68c7259570@news.povray.org...
>
> As always, great, Mike, and thanks. I learn more from your tutorials, and
> examining your examples and macros, than about any other way.
>
> Dave Matthews
>
Exactly! Would have said the same! Great work Mike!
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Rick Measham wrote:
> Mike Williams wrote:
>
>> This particular example has five strands, but the macro allows any
>> number not less than three.
>>
>> The macro supports left handed rope by setting a negative value to the
>> Twistiness parameter.
>
>
> I'd love to see an example of a three-strand rope with a left hand twist
> to it .. there was something about this one that just didn't feel quite
> right.
>
>
> Then:
> .... your next mission, should you choose to accept it, is to create a
> macro for a stranded 3-strand rope. Not sure of the specs, but each
> strand in hemp ropes tends to be a twist of smaller strands ...
>
> Cheers!
> Rick
Why not directly implement a fractal rope, each smaller strand being a
twist of smaller strands being ... ? ;-)
Regis
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Mike Williams" <nos### [at] econym demon co uk> schreef in bericht
news:4223062d@news.povray.org...
> I'm currently working on a rope macro that will generate a rope along a
> spline.
>
> The output is a mesh2 with a uv_map.
>
> I'll make the macro available when it's finished.
>
>
Would be nice if the mesh could be written to a file.... :-)
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Wasn't it Thomas de Groot who wrote:
>
>"Mike Williams" <nos### [at] econym demon co uk> schreef in bericht
>news:4223062d@news.povray.org...
>> I'm currently working on a rope macro that will generate a rope along a
>> spline.
>>
>> The output is a mesh2 with a uv_map.
>>
>> I'll make the macro available when it's finished.
>>
>>
>
>
>Would be nice if the mesh could be written to a file.... :-)
Makemesh is supposed to be capable of that, and in fact it will write
such a file but for some reason it can't find it again afterwards in
order to re-use it. I didn't have that problem with SweepSpline.
I tried for a while, but couldn't work out what was going wrong. If you
want to try it, just add a Filename parameter to the Rope macro
definition
#macro Rope(Track,Width,Strands,Twist,Fatness,U,V,Filename)
pass it onward to makemesh
BuildWriteMesh2(Verts, Norms, UV, V, U-1, Filename)
and supply a filename when you call the macro
Rope(Spline, 0.04, 5, 3, 1.5, 200, 50, "ropedata.inc")
If you happen to find out why that doesn't work, and how to fix it,
please let me know.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Mike Williams" <nos### [at] econym demon co uk> schreef in bericht
news:Ya6### [at] econym demon co uk...
>
> If you happen to find out why that doesn't work, and how to fix it,
> please let me know.
>
I had no problems, Mike!
I included the file name to the macros, then called the rope with the
following code (in Rope.pov, but could be in any other scene I guess):
#include "ropedata.inc"
object {Surface
texture { uv_mapping
pigment {gradient v-5*u
colour_map {
[0 rgb <1,0.8,0.7>]
[0.5 rgb <1,0.8,0.7>*0.5]
[1 rgb <1,0.8,0.7>]
}
scale 0.003
}
}
translate <0.5, 0, 0.5>
}
...and I got two identical ropes side by side (the original one, and the one
from ropedata.inc).
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Wasn't it Thomas de Groot who wrote:
>
>"Mike Williams" <nos### [at] econym demon co uk> schreef in bericht
>news:Ya6### [at] econym demon co uk...
>>
>> If you happen to find out why that doesn't work, and how to fix it,
>> please let me know.
>>
>
>I had no problems, Mike!
>I included the file name to the macros, then called the rope with the
>following code (in Rope.pov, but could be in any other scene I guess):
>
>#include "ropedata.inc"
>object {Surface
> texture { uv_mapping
> pigment {gradient v-5*u
> colour_map {
> [0 rgb <1,0.8,0.7>]
> [0.5 rgb <1,0.8,0.7>*0.5]
> [1 rgb <1,0.8,0.7>]
> }
> scale 0.003
> }
> }
> translate <0.5, 0, 0.5>
>}
>
>
>...and I got two identical ropes side by side (the original one, and the one
>from ropedata.inc).
I said that bit works. The file gets saved correctly.
The bit that doesn't work is when makemesh checks to see if the file
already exists and is supposed to read the data rather than
recalculating it. When I used makemesh in the same way in my SweepSpline
macro it all worked.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Mike Williams" <nos### [at] econym demon co uk> schreef in bericht
news:IJy### [at] econym demon co uk...
> I said that bit works. The file gets saved correctly.
>
> The bit that doesn't work is when makemesh checks to see if the file
> already exists and is supposed to read the data rather than
> recalculating it. When I used makemesh in the same way in my SweepSpline
> macro it all worked.
>
Sorry, Mike, got it wrong!
indeed, recalculates each time...
Shall have a more specific look. Seems something for Ingo...
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 3 Mar 2005 10:09:22 +0000, Mike Williams
<nos### [at] econym demon co uk> wrote:
> The bit that doesn't work is when makemesh checks to see if the file
> already exists and is supposed to read the data rather than
> recalculating it. When I used makemesh in the same way in my SweepSpline
> macro it all worked.
I downloaded rope.zip from your site and checked out makemesh.inc.
Although the comments preceding BuildWriteMesh2 say that the macro will
check if the file already exists, there doesn't appear to be any such
check in the actual macro.
--
FE
() ascii ribbon campaign - against html mail
/\ - against microsoft attachments
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Wasn't it Fredrik Eriksson who wrote:
>On Thu, 3 Mar 2005 10:09:22 +0000, Mike Williams
><nos### [at] econym demon co uk> wrote:
>> The bit that doesn't work is when makemesh checks to see if the file
>> already exists and is supposed to read the data rather than
>> recalculating it. When I used makemesh in the same way in my SweepSpline
>> macro it all worked.
>
>
>I downloaded rope.zip from your site and checked out makemesh.inc.
>Although the comments preceding BuildWriteMesh2 say that the macro will
>check if the file already exists, there doesn't appear to be any such
>check in the actual macro.
OK. I've added some code into Rope.inc that reads back the file
previously created by BuildWriteMesh2 if it already exists. The updated
version is now on the web page
<http://www.econym.demon.co.uk/pov/rope.htm>
(And I was wrong about it working for SweepSpline and have now made the
same change to it - I must have been confusing it with something else.)
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Mike Williams" <nos### [at] econym demon co uk> wrote:
> I'm currently working on a rope macro that will generate a rope along a
> spline.
>
> The output is a mesh2 with a uv_map.
>
> I'll make the macro available when it's finished.
Wow. That certailnly puts my rope attempts to shame:
http://www.hentschels.com:8000/~pictures/cgi-bin/album/index.cgi?dir=/2004/11November/Ropes
Great work! :-)
- dan B hentschel
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike,
I have another version of makemesh where there is a CheckFileName(FileName)
macro. This seems to be missing in your (original) version.
When I run it, the file is not overwritten, but it is also not parsed from
the file...
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |