POV-Ray : Newsgroups : povray.general : re Lissajous figures Server Time
13 Aug 2024 09:30:45 EDT (-0400)
  re Lissajous figures (Message 1 to 7 of 7)  
From: mick
Subject: re Lissajous figures
Date: 6 Sep 1998 07:09:27
Message: <01bdd97e$69b331e0$a34aa8c2@wphnvffu>
Great little utility Peter

Took the liberty of abusing it

When I was a kid I remember feeding two signal generators into an
oscilloscope

So I modified yor code to do that

Add 
#declare coeff2_X = ?; // where ? is any number multiples of coeff_X work
best
and add

+ sin(2*pi*(dummy+phase_X)*coeff2_X),

to 

<sin(2*pi*(dummy+phase_X)*coeff_X) 

to get

<sin(2*pi*(dummy+phase_X)*coeff_X) + sin(2*pi*(dummy+phase_X)*coeff2_X),

Gives some amazing patterns

Have Fun

Mick Hazelgrove


Post a reply to this message

From: Ken
Subject: Re: re Lissajous figures
Date: 6 Sep 1998 07:50:27
Message: <35F2687A.9409128B@pacbell.net>
Here is a string that generates a figure eight plucked from
an old o-scope manual.

The equation:
x=sin(b t+c);y=sin t   {0,2p}   {b:2}   {c:p}

The ; separate the parametric equations
The first {} with the comma is the range.
The second and third {} with the colon set variables b and c
p = pi

How would this be plugged into Peters code ?

Ken

mick wrote:

> Great little utility Peter
>
> Took the liberty of abusing it
>
> When I was a kid I remember feeding two signal generators into an
> oscilloscope
>
> So I modified yor code to do that
>
> Add
> #declare coeff2_X = ?; // where ? is any number multiples of coeff_X work
> best
> and add
>
> + sin(2*pi*(dummy+phase_X)*coeff2_X),
>
> to
>
> <sin(2*pi*(dummy+phase_X)*coeff_X)
>
> to get
>
> <sin(2*pi*(dummy+phase_X)*coeff_X) + sin(2*pi*(dummy+phase_X)*coeff2_X),
>
> Gives some amazing patterns
>
> Have Fun
>
> Mick Hazelgrove


Post a reply to this message

From: mick
Subject: Re: re Lissajous figures
Date: 6 Sep 1998 07:55:31
Message: <01bdd984$d96928e0$8a46a8c2@wphnvffu>
Whats the t stand for?
mick 

Ken <tyl### [at] pacbellnet> wrote in article
<35F2687A.9409128B@pacbell.net>...
> Here is a string that generates a figure eight plucked from
> an old o-scope manual.
> 
> The equation:
> x=sin(b t+c);y=sin t   {0,2p}   {b:2}   {c:p}
> 
> The ; separate the parametric equations
> The first {} with the comma is the range.
> The second and third {} with the colon set variables b and c
> p = pi
> 
> How would this be plugged into Peters code ?
> 
> Ken
> 
> mick wrote:
> 
> > Great little utility Peter
> >
> > Took the liberty of abusing it
> >
> > When I was a kid I remember feeding two signal generators into an
> > oscilloscope
> >
> > So I modified yor code to do that
> >
> > Add
> > #declare coeff2_X = ?; // where ? is any number multiples of coeff_X
work
> > best
> > and add
> >
> > + sin(2*pi*(dummy+phase_X)*coeff2_X),
> >
> > to
> >
> > <sin(2*pi*(dummy+phase_X)*coeff_X)
> >
> > to get
> >
> > <sin(2*pi*(dummy+phase_X)*coeff_X) +
sin(2*pi*(dummy+phase_X)*coeff2_X),
> >
> > Gives some amazing patterns
> >
> > Have Fun
> >
> > Mick Hazelgrove
> 
> 
> 
>


Post a reply to this message

From: Ken
Subject: Re: re Lissajous figures
Date: 6 Sep 1998 08:11:46
Message: <35F26D7A.2579CFFA@pacbell.net>
Since it was written as an example for an o-scope
I would guess it is time. O-scopes are a time period
driven device.

Ken


mick wrote:

> Whats the t stand for?
> mick
>
> Ken <tyl### [at] pacbellnet> wrote in article
> <35F2687A.9409128B@pacbell.net>...
> > Here is a string that generates a figure eight plucked from
> > an old o-scope manual.
> >
> > The equation:
> > x=sin(b t+c);y=sin t   {0,2p}   {b:2}   {c:p}
> >
> > The ; separate the parametric equations
> > The first {} with the comma is the range.
> > The second and third {} with the colon set variables b and c
> > p = pi
> >
> > How would this be plugged into Peters code ?
> >
> > Ken
> >
> > mick wrote:
> >
> > > Great little utility Peter
> > >
> > > Took the liberty of abusing it
> > >
> > > When I was a kid I remember feeding two signal generators into an
> > > oscilloscope
> > >
> > > So I modified yor code to do that
> > >
> > > Add
> > > #declare coeff2_X = ?; // where ? is any number multiples of coeff_X
> work
> > > best
> > > and add
> > >
> > > + sin(2*pi*(dummy+phase_X)*coeff2_X),
> > >
> > > to
> > >
> > > <sin(2*pi*(dummy+phase_X)*coeff_X)
> > >
> > > to get
> > >
> > > <sin(2*pi*(dummy+phase_X)*coeff_X) +
> sin(2*pi*(dummy+phase_X)*coeff2_X),
> > >
> > > Gives some amazing patterns
> > >
> > > Have Fun
> > >
> > > Mick Hazelgrove
> >
> >
> >
> >


Post a reply to this message

From: Ken
Subject: Re: re Lissajous figures
Date: 6 Sep 1998 09:42:01
Message: <35F282A1.3275C4F8@pacbell.net>
Ken wrote:

> Here is a string that generates a figure eight plucked from
> an old o-scope manual.
>
> The equation:
> x=sin(b t+c);y=sin t   {0,2p}   {b:2}   {c:p}
>
> The ; separate the parametric equations
> The first {} with the comma is the range.
> The second and third {} with the colon set variables b and c
> p = pi
>
> How would this be plugged into Peters code ?
>
> Ken
>

I answered this one for myself

change

From:
#declare coeff_X=2;
#declare coeff_Y=5;
#declare coeff_Z=7;
To:
#declare coeff_X=1;
#declare coeff_Y=2;
#declare coeff_Z=1;

Makes a nice figure eight bow tie looking thing.

Ken


Post a reply to this message

From: Peter Popov
Subject: Re: re Lissajous figures
Date: 6 Sep 1998 18:41:10
Message: <35f30176.0@news.povray.org>
mick wrote in message <01bdd97e$69b331e0$a34aa8c2@wphnvffu>...
>Great little utility Peter
>
>Took the liberty of abusing it
>


Sure.

BTW, I'm writing an .inc to make a coils & stuff. It is very customizeable
and with the proper parameters you can make Lessagous, too. I am rewriting
an old version it ro make use of 3.1 syntax and to add a whole bunch of new
features. (hint: there are about 50 variables for you to set...) Once I get
it ready I'll post it. Until then, can you send me the parameters of some of
the L. beasties you've come upon? And if you do, can I use them as examples
for the .inc tutorial?

<snip>

>Have Fun
>
>Mick Hazelgrove

I sure will :)

Peter


Post a reply to this message

From: Peter Popov
Subject: Re: re Lissajous figures
Date: 6 Sep 1998 19:21:59
Message: <35f30b07.0@news.povray.org>
mick wrote in message <01bdd97e$69b331e0$a34aa8c2@wphnvffu>...
>Great little utility Peter
>
>Took the liberty of abusing it
>
>When I was a kid I remember feeding two signal generators into an
>oscilloscope


That's exactly what I did back in April during a Electrical Engineering lab
in the university... I had some problems getting this particular lab
certified by the assistant, especially when I (loudly) expressed my
bewilderment she didn't know what a Lessajous' was... :)

>Have Fun
>
>Mick Hazelgrove

I alsways do.

Peter


Post a reply to this message

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