POV-Ray : Newsgroups : povray.newusers : Draw powerline wire on image background : Re: Draw powerline wire on image background Server Time
19 Jun 2024 06:16:14 EDT (-0400)
  Re: Draw powerline wire on image background  
From: Thomas de Groot
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

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