POV-Ray : Newsgroups : povray.binaries.images : Rope Macro Server Time
31 Jul 2024 22:14:48 EDT (-0400)
  Rope Macro (Message 14 to 23 of 23)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Eriban
Subject: Re: Rope Macro
Date: 9 Jun 2009 17:05:01
Message: <web.4a2ece2f99a5bfb681475b100@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote:
>
> I've posted the first version of these macros onto the POV-Ray Object
> Collection at:
> http://lib.povray.org/collection/rope/chrisb%201.0/rope.html
>

Thanks for making this macro available. I've just read the (extensive)
documentation and it's looking very useful. On my To Do list for my "Rock The
Boat" scene is still adding a rope for mooring the boat, and it seems that
these macros will do the trick perfectly :-). I still need to finish my own
damage macros first, but then I will definitely give your rope macros a go.

Cheers,
Erwin


Post a reply to this message

From: Sven Littkowski
Subject: Re: Rope Macro
Date: 10 Jun 2009 16:11:09
Message: <4a30135d$1@news.povray.org>
Hi Chris,

this is Sven. I really like your rope macro, and want to use it immediately 
for some of my scenes. Please send it to my e-mail address, I would be 
extremely happy.

Sven


Post a reply to this message

From: Chris B
Subject: Re: Rope Macro
Date: 10 Jun 2009 18:03:57
Message: <4a302dcd@news.povray.org>
"Sven Littkowski" <Sve### [at] Jamaica-Focuscom> wrote in message 
news:4a30135d$1@news.povray.org...
> Hi Chris,
>
> this is Sven. I really like your rope macro, and want to use it 
> immediately for some of my scenes. Please send it to my e-mail address, I 
> would be extremely happy.
>
> Sven

Hi Sven,

It's on the POV-Ray Object Collection at:
http://lib.povray.org/collection/rope/chrisb%201.0/rope.html
There should be a download button at the top of that HTML page.

If that fails you should be able to download using the JavaScript-free index 
page at
http://lib.povray.org/searchcollection/index2.php


If you still have a problem downloading it let me know and I'll get you a 
copy somehow :-)

Regards,
Chris B.


Post a reply to this message

From: Eriban
Subject: Re: Rope Macro
Date: 23 Jun 2009 14:35:00
Message: <web.4a411f4899a5bfb681475b100@news.povray.org>
"Eriban" <pov### [at] spamgourmetcom> wrote:
> I still need to finish my own
> damage macros first, but then I will definitely give your rope macros a go.

Hi Chris,

I just thought I'd share my first results of using your rope macro. Attached is
an image with the result. To create the hanging loops I created a small macro
of my own. I still need to clean it up a bit and make it a bit more general,
but then I'll share it.

I still have a problem with showing the fibers. When I turn this on, rendering
slows down to a crawl, and the results look pretty bad. Basically, the rope
becomes all black. I could be that I am doing something wrong, or that the
version of MegaPov I am using is not compatible with your macros. I still need
to investigate what's wrong. However, there's no rush, cause in my scene there's
no need to show the fibers anyway.

Cheers,

Erwin


Post a reply to this message


Attachments:
Download 'rope-4b.png' (51 KB)

Preview of image 'rope-4b.png'
rope-4b.png


 

From: Chris B
Subject: Re: Rope Macro
Date: 23 Jun 2009 15:32:12
Message: <4a412dbc@news.povray.org>
"Eriban" <pov### [at] spamgourmetcom> wrote in message 
news:web.4a411f4899a5bfb681475b100@news.povray.org...
>
> I just thought I'd share my first results of using your rope macro. 
> Attached is
> an image with the result. To create the hanging loops I created a small 
> macro
> of my own. I still need to clean it up a bit and make it a bit more 
> general,
> but then I'll share it.
>
> I still have a problem with showing the fibers. When I turn this on, 
> rendering
> slows down to a crawl, and the results look pretty bad. Basically, the 
> rope
> becomes all black. I could be that I am doing something wrong, or that the
> version of MegaPov I am using is not compatible with your macros. I still 
> need
> to investigate what's wrong. However, there's no rush, cause in my scene 
> there's
> no need to show the fibers anyway.
>

Hi Erwin,

No it's nothing you've done wrong.

As soon as you said that I remembered that I was surprised that I hadn't 
needed to increase the POV-Ray max_trace_level when I developed the outer 
'fibre' layer, because it uses a sort of semi-transparent skin around the 
outside of the rope made out of strings of spheres. This semi-transparent 
layer is why it takes about 10 times as long to render. I developed this 
under 3.7 beta 32 and I had intended to test it on POV-Ray 3.6 before 
posting it, but I forgot.

Now that I tried it on 3.6 it clearly needs the following line adding if 
fibres are used and I would imagine it's the same problem for MegaPOV:
global_settings {max_trace_level 10}

I'm still not really sure why it doesn't need this on the 3.7 beta 32.
I also notice that the lighting levels are a lot darker on 3.6, but I guess 
you've already spotted that and set Rope_Brightness to 2 to compensate, 
because your scene looks bright enough (or maybe MegaPOV is different from 
3.6 on lighting levels).

Best Regards,
Chris B.


Post a reply to this message

From: Alain
Subject: Re: Rope Macro
Date: 23 Jun 2009 19:26:02
Message: <4a41648a$1@news.povray.org>

> 
> "Eriban" <pov### [at] spamgourmetcom> wrote in message 
> news:web.4a411f4899a5bfb681475b100@news.povray.org...
>>
>> I just thought I'd share my first results of using your rope macro. 
>> Attached is
>> an image with the result. To create the hanging loops I created a 
>> small macro
>> of my own. I still need to clean it up a bit and make it a bit more 
>> general,
>> but then I'll share it.
>>
>> I still have a problem with showing the fibers. When I turn this on, 
>> rendering
>> slows down to a crawl, and the results look pretty bad. Basically, the 
>> rope
>> becomes all black. I could be that I am doing something wrong, or that 
>> the
>> version of MegaPov I am using is not compatible with your macros. I 
>> still need
>> to investigate what's wrong. However, there's no rush, cause in my 
>> scene there's
>> no need to show the fibers anyway.
>>
> 
> Hi Erwin,
> 
> No it's nothing you've done wrong.
> 
> As soon as you said that I remembered that I was surprised that I hadn't 
> needed to increase the POV-Ray max_trace_level when I developed the 
> outer 'fibre' layer, because it uses a sort of semi-transparent skin 
> around the outside of the rope made out of strings of spheres. This 
> semi-transparent layer is why it takes about 10 times as long to render. 
> I developed this under 3.7 beta 32 and I had intended to test it on 
> POV-Ray 3.6 before posting it, but I forgot.
> 
> Now that I tried it on 3.6 it clearly needs the following line adding if 
> fibres are used and I would imagine it's the same problem for MegaPOV:
> global_settings {max_trace_level 10}
> 
> I'm still not really sure why it doesn't need this on the 3.7 beta 32.
> I also notice that the lighting levels are a lot darker on 3.6, but I 
> guess you've already spotted that and set Rope_Brightness to 2 to 
> compensate, because your scene looks bright enough (or maybe MegaPOV is 
> different from 3.6 on lighting levels).
> 
> Best Regards,
> Chris B.
> 

With version 3.7, when a transparent object don't have reflection nor an 
interior with an ior, passing trough such an object don't count toward 
the max_trace limits. That change happened over 10 versions ago, I 
think. Now, a ray can pass trough over 500 transparent object, giving 
over 1000 surfaces intersections.

Alain


Post a reply to this message

From: Eriban
Subject: Re: Rope Macro
Date: 24 Jun 2009 16:20:01
Message: <web.4a42895f99a5bfb681475b100@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote:
> Now that I tried it on 3.6 it clearly needs the following line adding if
> fibres are used and I would imagine it's the same problem for MegaPOV:
> global_settings {max_trace_level 10}

Thanks for the reply. Increasing the max_trace_level indeed fixes the problem.
Nevertheless, in the small sample scene I used it the fibers do not enhance the
image as they are too small to show up. The main effect is that they reduce the
overall brightness of the rope a bit. Having said that, it's good to know I can
get the fibres to show up when needed. :-)

A small suggestion. Is it maybe worth adding another quick-rendering option to
the rope macros, alongside the Rope_ShowFibres=0 setting? In some test-renders
you may only want to see the path of the rope, without it having to consist of
multiple strands. For my rope-looping macro I am using a single sphere_sweep
during loop construction (to make sure that the loops do not overlap anywhere).
This sphere_sweep can also be used creating the image. It does not look good of
course (see the attached image), however, it may be handy when contructing the
path for the rope, as it takes less time to generate the image.

In my case (using a simple 1.42 GHz PowerPC MacMini) the rendering and parse
times for my simple "looped rope" image are as follows:
Proper rope, with fibres: Total time 39m30s, of which 1m49s parsing
Proper rope, w/o wibres: Total time 3m44s, of which 1m37s parsing
Simple sphere_sweep: Total time 1m56s, of which 0s parsing

The macro to create the sphere_sweep from the array of points can be very simple
of course. Here's what I have been using:

#macro BuildRope(RopePoints, StartIndex, EndIndex, Radius)
 sphere_sweep {
  cubic_spline
  EndIndex - StartIndex

  #local I = StartIndex;
  #while (I != EndIndex)
   RopePoints[I], Radius
   #local I = I + 1;
  #end
 }
#end

Cheers,
Erwin


Post a reply to this message


Attachments:
Download 'rope-simplespheresweep.png' (25 KB)

Preview of image 'rope-simplespheresweep.png'
rope-simplespheresweep.png


 

From: Chris B
Subject: Re: Rope Macro
Date: 24 Jun 2009 17:09:57
Message: <4a429625@news.povray.org>
"Eriban" <pov### [at] spamgourmetcom> wrote in message 
news:web.4a42895f99a5bfb681475b100@news.povray.org...
> Iin the small sample scene I used it the fibers do not enhance the
> image as they are too small to show up. The main effect is that they 
> reduce the
> overall brightness of the rope a bit. Having said that, it's good to know 
> I can
> get the fibres to show up when needed. :-)

That's true. It only really shows up if the rope is close enough or if the 
image is large enough to show that level of details, which is why I 
incorporated the option to switch it off and save on render times. I think 
this is also true of real ropes though, you can't see the fibres till you 
get reasonably close.


> A small suggestion. Is it maybe worth adding another quick-rendering 
> option to
> the rope macros, alongside the Rope_ShowFibres=0 setting? In some 
> test-renders
> you may only want to see the path of the rope, without it having to 
> consist of
> multiple strands. For my rope-looping macro I am using a single 
> sphere_sweep
> during loop construction (to make sure that the loops do not overlap 
> anywhere).
> This sphere_sweep can also be used creating the image. It does not look 
> good of
> course (see the attached image), however, it may be handy when contructing 
> the
> path for the rope, as it takes less time to generate the image.
>

I think that's a very good idea.


> In my case (using a simple 1.42 GHz PowerPC MacMini) the rendering and 
> parse
> times for my simple "looped rope" image are as follows:
> Proper rope, with fibres: Total time 39m30s, of which 1m49s parsing
> Proper rope, w/o wibres: Total time 3m44s, of which 1m37s parsing
> Simple sphere_sweep: Total time 1m56s, of which 0s parsing

I have to admit that I invested in quite a fast machine last year, so most 
of the test renders I did took less than 5 seconds. The big coils of rope 
were the main exception to that and I was getting between 30 seconds and 1.5 
minutes. The example in the documentation containing 3 quite long coils of 
rope, with fibres did take it up to about 27 minutes.


> The macro to create the sphere_sweep from the array of points can be very 
> simple
> of course. Here's what I have been using:
>
> #macro BuildRope(RopePoints, StartIndex, EndIndex, Radius)
> sphere_sweep {
>  cubic_spline
>  EndIndex - StartIndex
>
>  #local I = StartIndex;
>  #while (I != EndIndex)
>   RopePoints[I], Radius
>   #local I = I + 1;
>  #end
> }
> #end
>

Thanks. I'll add that in.

Regards,
Chris B.


Post a reply to this message

From: Chris B
Subject: Re: Rope Macro
Date: 24 Jun 2009 17:17:46
Message: <4a4297fa@news.povray.org>
"Alain" <aze### [at] qwertyorg> wrote in message 
news:4a41648a$1@news.povray.org...

>> I was surprised that I hadn't needed to increase the POV-Ray 
>> max_trace_level when I developed the outer 'fibre' layer,
>
> With version 3.7, when a transparent object don't have reflection nor an 
> interior with an ior, passing trough such an object don't count toward the 
> max_trace limits. That change happened over 10 versions ago, I think. Now, 
> a ray can pass trough over 500 transparent object, giving over 1000 
> surfaces intersections.

Well that's good. Quite nifty thinking by whoever had that idea. Should save 
quite a few questions on povray.newusers each year :-)

Regards,
Chris B.


Post a reply to this message

From: clipka
Subject: Re: Rope Macro
Date: 25 Jun 2009 11:45:00
Message: <web.4a439a5a99a5bfb694456e660@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote:
> Now that I tried it on 3.6 it clearly needs the following line adding if
> fibres are used and I would imagine it's the same problem for MegaPOV:
> global_settings {max_trace_level 10}
>
> I'm still not really sure why it doesn't need this on the 3.7 beta 32.
> I also notice that the lighting levels are a lot darker on 3.6, but I guess
> you've already spotted that and set Rope_Brightness to 2 to compensate,
> because your scene looks bright enough (or maybe MegaPOV is different from
> 3.6 on lighting levels).

3.7 uses a new scheme of what is counted towards the "max_trace_level" limit:
While 3.6 *always* counts transitions through (semi-) transparent surfaces, 3.7
only counts such transitions if refraction occurs (i.e. if the "ior" values
differ).


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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