POV-Ray : Newsgroups : povray.newusers : Draw powerline wire on image background Server Time
6 Dec 2021 03:11:52 EST (-0500)
  Draw powerline wire on image background (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
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 10 Messages Goto Initial 10 Messages

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