POV-Ray : Newsgroups : povray.newusers : Draw powerline wire on image background Server Time
1 Nov 2024 21:33:49 EDT (-0400)
  Draw powerline wire on image background (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Bald Eagle
Subject: Re: Draw powerline wire on image background
Date: 22 Oct 2019 13:20:01
Message: <web.5daf39e6cf776ee04eec112d0@news.povray.org>
"ale### [at] gmailcom" <ale### [at] gmailcom> wrote:
> Hello Everybody ,i'm new to Pov Ray engine.
> I need to draw powerline wire on a background png image that i've in my pc.
> I have tried using sphere_sweep but the result are not really encouraging.

So, we have no idea WHY the results are not really encouraging - perhaps say
what you're tried, and maybe post the specific code that you're using, and we
can probably offer more detailed assistance.


http://news.povray.org/povray.binaries.images/thread/%3Cweb.574cb010874919d05e7df57c0%40news.povray.org%3E/?ttop=428388
&toff=450


Post a reply to this message

From: Thomas de Groot
Subject: Re: Draw powerline wire on image background
Date: 23 Oct 2019 02:28:30
Message: <5daff30e$1@news.povray.org>
Op 22/10/2019 om 15:40 schreef Dick Balaska:
> On 10/22/19 7:35 AM, Thomas de Groot wrote:
> 
>>
>> I think you may be helped with one or both attached applications. One 
>> is by Lance Purple, the other by PM 2Ring. They show how to model 
>> catenaries.
>>
> 
> Catenary.zip: Nice!  Hmm, mixed feelings.  I am happy I worked it out 
> when I had to slice a torus by tangents and arc-cosines, but this would 
> have saved me *so* much time. :)
> 

I understand your feelings indeed. Much is covered in dust and needs to 
be extracted from the hidden storerooms. ;-)

-- 
Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Draw powerline wire on image background
Date: 23 Oct 2019 07:22:34
Message: <5db037fa$1@news.povray.org>
I also came across a catenary application by Rob Antonishen from back in 
2002. I can post a zip if anyone is interested.

-- 
Thomas


Post a reply to this message

From: alessio diluzio94@gmail com
Subject: Re: Draw powerline wire on image background
Date: 23 Oct 2019 09:50:00
Message: <web.5db059c5cf776ee0ad6bf02d0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> I also came across a catenary application by Rob Antonishen from back in
> 2002. I can post a zip if anyone is interested.
>
> --
> Thomas

Yes,please.
Thank you.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Draw powerline wire on image background
Date: 24 Oct 2019 03:06:14
Message: <5db14d66$1@news.povray.org>
Op 23/10/2019 om 15:46 schreef ale### [at] gmailcom:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>> I also came across a catenary application by Rob Antonishen from back in
>> 2002. I can post a zip if anyone is interested.
>>
>> --
>> Thomas
> 
> Yes,please.
> Thank you.
> 
> 

OK. I shall put a zip file (together with the two previous ones) in 
povray.binaries.utilities, for better later access.

-- 
Thomas


Post a reply to this message

From: alessio diluzio94@gmail com
Subject: Re: Draw powerline wire on image background
Date: 24 Oct 2019 09:00:00
Message: <web.5db19faecf776ee0ad6bf02d0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> Op 22/10/2019 om 12:05 schreef ale### [at] gmailcom:
> > Hello Everybody ,i'm new to Pov Ray engine.
> > I need to draw powerline wire on a background png image that i've in my pc.
> > I have tried using sphere_sweep but the result are not really encouraging.
> >
> >
>
> I think you may be helped with one or both attached applications. One is
> by Lance Purple, the other by PM 2Ring. They show how to model catenaries.
>
> --
> Thomas

In catenary.zip is used torus as connecting elements ,is it possibile to use
other object to make something like a power line wires ? i think cylinder is the
right choice but i don't know who to insert it in che catenary


Post a reply to this message

From: Bald Eagle
Subject: Re: Draw powerline wire on image background
Date: 24 Oct 2019 13:35:00
Message: <web.5db1e0a7cf776ee04eec112d0@news.povray.org>
"ale### [at] gmailcom" <ale### [at] gmailcom> wrote:

> In catenary.zip is used torus as connecting elements ,is it possibile to use
> other object to make something like a power line wires ? i think cylinder is the
> right choice but i don't know who to insert it in che catenary

Typically one would use a sphere_sweep object, or a series of cylinders
connecting spheres of the same diameter.  Try just using spheres to see if you
get a string of spheres that look like the right shape, and then fill in the
spaces with cylinders.  The shorter the distance between cylinders, the smoother
your curve will be.

The way I would approach this is by creating a scene with a loop that uses a
variable called Clock as a seed() value for creating the pseudo-random values
used for changing the endpoints of your catenary curve.

Then you can use #for (Clock, 1, 1) to just make a single catenary until you get
all of the rest of the code worked out and looking good, and then you can see
what it's like when you do something like #for (Clock, 1, 10).

If THAT looks good, then you can comment out the loop, and set your seed with
the animation _clock_, and then you will have a different curve for every frame.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Draw powerline wire on image background
Date: 25 Oct 2019 03:42:32
Message: <5db2a768$1@news.povray.org>
Op 24/10/2019 om 14:57 schreef ale### [at] gmailcom:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>> Op 22/10/2019 om 12:05 schreef ale### [at] gmailcom:
>>> Hello Everybody ,i'm new to Pov Ray engine.
>>> I need to draw powerline wire on a background png image that i've in my pc.
>>> I have tried using sphere_sweep but the result are not really encouraging.
>>>
>>>
>>
>> I think you may be helped with one or both attached applications. One is
>> by Lance Purple, the other by PM 2Ring. They show how to model catenaries.
>>
>> --
>> Thomas
> 
> In catenary.zip is used torus as connecting elements ,is it possibile to use
> other object to make something like a power line wires ? i think cylinder is the
> right choice but i don't know who to insert it in che catenary
> 

It is not said explicitly in catenary.txt, but you can use any object 
you want as a link. The torus is of course the most adapted for a chain 
object.

So, you can use cylinders instead. you just have to be careful that the 
initial object (i.e. the cylinder) is declared at the origin, and at the 
proper scale.

As a test use the P2R_Catenary.pov scene file for experimenting. Under 
the line where the Torus object is declared, insert:

#declare Cylinder = cylinder {<-1, 0, 0>, <1, 0, 0>, 0.25 scale 0.1 
texture{T_Gold_3D}}

Then, in the Chain parameters section a few lines lower, replace:
#declare Link = Torus;
by:
#declare Link = Cylinder;

Now, render the scene and you will see what you wanted. ;-)

By replacing the torus by a cylinder, you can play with the other 
parameters. So, for instance, Alternate and AltPhase can be switched 
"off" (=0) instead of "on" (=1)

Play also with the scale of the original link element. Make it fatter or 
slimmer, longer or shorter, and see what happens.

-- 
Thomas


Post a reply to this message

From: Bald Eagle
Subject: Re: Draw powerline wire on image background
Date: 27 Oct 2019 16:55:01
Message: <web.5db6034bcf776ee04eec112d0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:

> It is not said explicitly in catenary.txt, but you can use any object
> you want as a link. The torus is of course the most adapted for a chain
> object.

Chain-maker   :)
https://www.youtube.com/watch?v=TGIUbpMFeas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Draw powerline wire on image background
Date: 28 Oct 2019 03:46:29
Message: <5db69cd5$1@news.povray.org>
Op 27/10/2019 om 21:51 schreef Bald Eagle:
> 
> Thomas de Groot <tho### [at] degrootorg> wrote:
> 
>> It is not said explicitly in catenary.txt, but you can use any object
>> you want as a link. The torus is of course the most adapted for a chain
>> object.
> 
> Chain-maker   :)
> https://www.youtube.com/watch?v=TGIUbpMFeas
> 
> 

Oh! LOL! Now, I suppose, we are expected to model this hellish 
contraption?!? It would be a proper Steam Punk project indeed.

Well spotted. Going from cylinder to torus...

In a distant past (before I saw the light with POV-Ray) I composed 
music. The sound track of this video would have been inspirational ;-)

-- 
Thomas


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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