Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Troy Henderson
I've added a few more animations since my last post.  They can be accessed
at

http://www.tlhiv.org/animations

There is one in particular that, I think, is quite impressive.  It is an
animation of a function f(x,y,t) where t is time.  It is available at the
aforementioned link or directly at

http://www.tlhiv.org/animations/nocgi/function_surface.html

Troy
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Marco Patzer
On 2013–01–07 Troy Henderson wrote:

 http://www.tlhiv.org/animations
 
 There is one in particular that, I think, is quite impressive.  It is an
 animation of a function f(x,y,t) where t is time.

I love that one. Very impressive, indeed! Although my browser
flickers for about 20s until it eventually starts, but that might
just be my flash player. Thanks for providing such nice animations.
I can't wait for the next one. Where's the RSS feed? ;)

Side note: When I access your site I get the following warning:

  Internal Server Error

  The server encountered an internal error or misconfiguration and was
  unable to complete your request.

  Please contact the server administrator, [no address given] and
  inform them of the time the error occurred, and anything you might
  have done that may have caused the error.

  More information about this error may be available in the server
  error log.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Rogers, Michael K

On Jan 7, 2013, at 11:46 AM, Marco Patzer 
home...@lavabit.commailto:home...@lavabit.com wrote:

On 2013–01–07 Troy Henderson wrote:

http://www.tlhiv.org/animations

There is one in particular that, I think, is quite impressive.  It is an
animation of a function f(x,y,t) where t is time.

I love that one. Very impressive, indeed! Although my browser
flickers for about 20s until it eventually starts, but that might
just be my flash player.

That is cool!  I think the flicker is from loading all the polygons.  Once it 
cycles through once or twice, they're all loaded and it plays smoothly.  (Or so 
it appears in my browser.)



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Alan BRASLAU
On Mon, 7 Jan 2013 10:22:41 -0600
Troy Henderson thend...@gmail.com wrote:

 I've added a few more animations since my last post.  They can be
 accessed at
 
 http://www.tlhiv.org/animations
 
 There is one in particular that, I think, is quite impressive.  It is
 an animation of a function f(x,y,t) where t is time.  It is available
 at the aforementioned link or directly at
 
 http://www.tlhiv.org/animations/nocgi/function_surface.html
 
 Troy

Do we get to see the MetaPost code?

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Jeong Dal
Dear Wolfgang,

Thank you for the explanation and the correction of the code.

It works nicely. It also taught me some other things too.

I'd like to ask you one more thing.
When you update the animation module, would you please concern the location of 
the menu?
I think that it is better to put it at the bottom center of the animation frame 
in default?  
Currently, it is located slightly left from the center.

Thanks again.

Best regards,

Dalyoung
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Wolfgang Schuster

Am 01.01.2013 um 15:30 schrieb Jeong Dal hak...@me.com:

 Dear Wolfgang,
 
 Thank you for the explanation and the correction of the code.
 
 It works nicely. It also taught me some other things too.
 
 I'd like to ask you one more thing.
 When you update the animation module, would you please concern the location 
 of the menu?
 I think that it is better to put it at the bottom center of the animation 
 frame in default?  
 Currently, it is located slightly left from the center.

This is a bug in context which adds a space for each symbol in a fieldstack 
(the mechanism
which is used to create the animation and which is documented in the metafun 
manual).

I reported it a few days ago on the dev list and hope Hans will fix it in the 
next beta.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-31 Thread Jeong Dal
Dear Wolfgang,

Thank you for the explanation, and your sample works nicely.

I  enclosed \processMPbuffer using \startframe and \stopframe as following.
Then  I got a 'undefined control sequence' error.
If I use '\framed[]' instead of '\startframe … \stopframe', then it gave all 7 
circles of different radius in two pages without error.
If I add \startanimation … \stopanimation, the only change is the appearance 
of menu at the bottom of the last circle.(no animation)

What is wrong in the code?

Best regards,

Dalyoung


Happy New Year to all listers!!!



\startbuffer[circles]
path p;
numeric n, u;
u := 1cm;
n:=\recurselevel*u;
p := fullcircle scaled n;
draw p;
\stopbuffer

\usemodule[animation]
\setupinteraction[state=start]

\starttext
%\startanimation[menu=yes]
\dorecurse{7}{
\startframe
%   \framed[]%{\processMPbuffer[circles]}}
\processMPbuffer[circles]
\stopframe
}
%\stopanimation
\stoptext


! Undefined control sequence.
system  tex  error on line 23 in file test-ani.tex: Undefined control 
sequence ...
13 \setupinteraction[state=start]
14
15 \starttext
16
17 %\startanimation[menu=yes]
18 \dorecurse{7}{
19 \startframe
20 %\framed[]%{\processMPbuffer[circles]}}
21 \processMPbuffer[circles]
22 \stopframe
23  }
24 %\stopanimation
25
26 \stoptext
27
\121 #1#2- \startframe
\processMPbuffer [circles] \stopframe
\syst_helpers_recurse_indeed_yes ...curse_content
\syst_helpers_recurse_indeed
to be read again
{
inserted text
2
\syst_helpers_recurse_indeed ...the \innerrecurse
}{#2}
l.23 }




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-31 Thread Wolfgang Schuster

Am 01.01.2013 um 04:50 schrieb Jeong Dal hak...@me.com:

 Dear Wolfgang,
 
 Thank you for the explanation, and your sample works nicely.
 
 I  enclosed \processMPbuffer using \startframe and \stopframe as following.
 Then  I got a 'undefined control sequence' error.
 If I use '\framed[]' instead of '\startframe … \stopframe', then it gave all 
 7 circles of different radius in two pages without error.
 If I add \startanimation … \stopanimation, the only change is the 
 appearance of menu at the bottom of the last circle.(no animation)
 
 What is wrong in the code?

1. The \frame and \startframe commands are only available *in* the animation 
environment where they are locally defined.

2. Although \framed sound similar to \frame there is no relation between both 
commands.

3. You have to expand the loop value *before* it is passed to metapost, see 
below.

\usemodule[animation]
\setupinteraction[state=start]

\startuseMPgraphic{circles}{counter}
path p;
numeric n, u;
u := 1cm;
n:=\MPvar{counter}*u;
p := fullcircle scaled n;
draw p;
\stopuseMPgraphic

\starttext
\startanimation[menu=yes]
\dorecurse{7}{%
\startframe
\useMPgraphic{circles}{counter=#1}%
\stopframe}
\stopanimation
\stoptext

4. You can also include the metapost code in the frame but you have to expand 
the \recurselevel value with the \expanded command (I have to upload a new 
version of the module first because \startframe isn’t expandable yet).

\usemodule[animation]
\setupinteraction[state=start]

\starttext
\startanimation[menu=yes]
\dorecurse{7}{\expanded
   {\startframe
\startMPcode
path p;
numeric n, u;
u := 1cm;
n:=\recurselevel*u;
p := fullcircle scaled n;
draw p;
\stopMPcode
\stopframe}}
\stopanimation
\stoptext

5. Use a PDF viewer with javascript support (e.g. Adobe Reader) to view the 
animation.

Kind regards and a happy new year,
Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Mojca Miklavec
On Sun, Dec 30, 2012 at 3:57 AM, Troy Henderson wrote:
 Bonus question: independent from the gears shape (assume that it stays
 as it is), there is something fundamentally wrong with the animation.
 What is that? ;)


 When fixing the teeth, I broke the direction of one of the gears.  It's
 repaired now.

Yes, it makes more sense now.

Very nice animations.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Jeong Dal
Dear Troy,

The animations are impressive and thank you for sharing the code.

In the creation of many pdf for animation, it changes the recurselevel only.
 I wonder if there is a way to make such kind of animation in ConTeXt using 
Wolfgang's animation module.
Then we can include the animation in PDF output directly.

Here is my trial.

I modified it as following and got an animation. But it is only good for a few 
step animation.

%
\startbuffer[base]
N:=64;%\N;
u:=136;
pair f;
c:=2/(1+sqrt(5));%\c;
if c1: f:=(1+-+c,0); v:=u/2; else: f:=(0,1+-+(1/c)); v:=u/c/2; fi; % Focus f 
is defined
path p,q;
pair z;
picture base;
numeric L;
p:=fullcircle yscaled c; % This is the ellipse
L:=length p;
draw p scaled (2*v) withpen pencircle scaled (v/260) dashed evenly; % Draw the 
ellipse dashed (will be traced later)
base:= currentpicture;
q:=bbox currentpicture enlarged (v/64); % Enlarge the bounding box slightly
q:=(llcorner q+(-v/128,-v/128))--(lrcorner q+(v/128,-v/128))--(urcorner 
q+(v/128,v/128))--(urcorner q+(-v/128,v/128))--cycle;
fill fullcircle scaled (v/32) shifted (f*v) withcolor red; % Focus
fill fullcircle scaled (v/32) shifted (-f*v) withcolor red; % Focus
base:=currentpicture; % Save this picture to draw in every frame
setbounds currentpicture to q; % Set the bounding box as described before
\stopbuffer

\startbuffer[fig1]
%\startMPpage
n:=1;%\recurselevel%1;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled (v/260); % Draw the string 
used to trace the ellipse
setbounds currentpicture to q; % Set the bounding box so that it is the same 
for each frame
%\stopMPpage
\stopbuffer

\startbuffer[fig2]
%\startMPpage
n:=2;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled (v/260); % Draw the string 
used to trace the ellipse
setbounds currentpicture to q; % Set the bounding box so that it is the same 
for each frame
%\stopMPpage
\stopbuffer

\startbuffer[fig3]
%\startMPpage
n:=3;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled (v/260); % Draw the string 
used to trace the ellipse
setbounds currentpicture to q; % Set the bounding box so that it is the same 
for each frame
%\stopMPpage
\stopbuffer

\setupinteraction[state=start]
\usemodule[animation]
\starttext
\startanimation[menu=yes]

{\processMPbuffer[base, fig1]}
{\processMPbuffer[base, fig2]}
{\processMPbuffer[base, fig3]}
\stopanimation
\stoptext

%

I also tried to simplify the code as following, but it just draw 10 figures not 
an animation.
Is there a way to combine them as an animation?

Thank you.

Best regards,

Dalyoung
 
%
\startbuffer[base]
N:=64;%\N;
u:=136;
pair f;
c:=2/(1+sqrt(5));%\c;
if c1: f:=(1+-+c,0); v:=u/2; else: f:=(0,1+-+(1/c)); v:=u/c/2; fi; % Focus f 
is defined
path p,q;
pair z;
picture base;
numeric L;
p:=fullcircle yscaled c; % This is the ellipse
L:=length p;
draw p scaled (2*v) withpen pencircle scaled (v/260) dashed evenly; % Draw the 
ellipse dashed (will be traced later)
base:= currentpicture;
q:=bbox currentpicture enlarged (v/64); % Enlarge the bounding box slightly
q:=(llcorner q+(-v/128,-v/128))--(lrcorner q+(v/128,-v/128))--(urcorner 
q+(v/128,v/128))--(urcorner q+(-v/128,v/128))--cycle;
fill fullcircle scaled (v/32) shifted (f*v) withcolor red; % Focus
fill fullcircle scaled (v/32) shifted (-f*v) withcolor red; % Focus
base:=currentpicture; % Save this picture to draw in every frame
setbounds currentpicture to q; % Set the bounding box as described before
\stopbuffer

\startbuffer[fig1]
%\startMPpage
n:=\recurselevel;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled 

Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Wolfgang Schuster

Am 30.12.2012 um 14:19 schrieb Jeong Dal hak...@me.com:

 Dear Troy,
 
 The animations are impressive and thank you for sharing the code.
 
 In the creation of many pdf for animation, it changes the recurselevel only.
 I wonder if there is a way to make such kind of animation in ConTeXt using 
 Wolfgang's animation module.
 Then we can include the animation in PDF output directly.
 
 Here is my trial.
 
 I modified it as following and got an animation. But it is only good for a 
 few step animation.
 
 […]
 
 I also tried to simplify the code as following, but it just draw 10 figures 
 not an animation.
 Is there a way to combine them as an animation?

You can use a loop to create the frames, the only thing you have to be aware is
how to access the counter loop iteration. In most cases you can get the current
iteration of the loop with \recurselevel but this doesn’t work for animation 
because
each frame is saved in a symbol with \definesymbol[frame][code] without
expanding the content.

To fix this you can expand the content with \expanded{\frame{… \recurselevel …}}
or simpler by using “#1” instead of \recurselevel to access the counter.

The braces around each frame as in your example are only one method to set
the content for each frame (it emulates the \startoverlay and \startcombination
input), when you use a loop you have to use \frame{…} or \startframe … 
\stopframe
to set the content for each frame.


Example:

\usemodule[animation]

\setupinteraction[state=start]

\starttext

\startanimation[menu=yes,framerate=10]
\dorecurse{99}
  {\startframe
   \definedfont[Mono sa 4]\twodigits{#1}%
   \stopframe}
\stopanimation

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Hans Hagen

On 12/29/2012 2:02 AM, Rogers, Michael K wrote:


I thought Hans was talking about the animations of the construction of
Bezier curves, which are pretty cool.


the gears were mentioned in an off-list mail

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Hans Hagen

On 12/29/2012 3:55 AM, Troy Henderson wrote:

Are the gears more correct now?


Yes, it looks better this way. I don't know how deep the tooths need to 
be. Probably some complex formula is needed to determine that.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Mojca Miklavec
On Sat, Dec 29, 2012 at 3:55 AM, Troy Henderson wrote:
 Are the gears more correct now?

Better that previously, but there is still room for improvement. The
teeth are too small among other things.

Bonus question: independent from the gears shape (assume that it stays
as it is), there is something fundamentally wrong with the animation.
What is that? ;)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Peter Münster
On Sat, Dec 29 2012, Mojca Miklavec wrote:

 there is something fundamentally wrong with the animation.

Not necessarily. Just imagine 2 motors: the 2 right gears are driving
the left one... ;)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Tom Fossen

Op 29-12-12 16:42, Mojca Miklavec schreef:

On Sat, Dec 29, 2012 at 3:55 AM, Troy Henderson wrote:

Are the gears more correct now?


[ ... ]

Bonus question: independent from the gears shape (assume that it stays
as it is), there is something fundamentally wrong with the animation.
What is that? ;)




I think you draw our attention to the question: which one of the wheals 
is driving which one?


Tom


--
Tom Fossen
Amersfoort
Netherlands
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Troy Henderson

 Bonus question: independent from the gears shape (assume that it stays
 as it is), there is something fundamentally wrong with the animation.
 What is that? ;)


When fixing the teeth, I broke the direction of one of the gears.  It's
repaired now.

Troy
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Otared Kavian
Dear Troy,

I just looked up your animations webpage: congratulations for the beautiful 
work you have done, and thanks for sharing.
I played a little bit with the hypocycloid source file you sent some time ago 
and found it useful for other situations as well.
Would it be possible to have the source files of the other examples you show on 
the webpage
http://www.tlhiv.org/animations/

Also, if I may suggest something, an animation like the one for Riemann sums 
would be very intersting for illustrating the Lebesgue integrals in order to 
show to students what is going on.

Best wishes for the New Year, and best regards: OK

On 28 déc. 2012, at 20:41, Troy Henderson thend...@gmail.com wrote:

 I've created several animations using MetaPost/ConTeXt, and I have also 
 created a webpage with these animations.  The URL to the page is
 
 http://www.tlhiv.org/animations/
 
 Feedback is appreciated, and if there is a particular animation that you 
 would like to see included, let me know and I will attempt to code them up in 
 MetaPost, provide the source code, and include them on the webpage.
 
 Troy Henderson
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Hans Hagen

On 12/28/2012 8:41 PM, Troy Henderson wrote:

I've created several animations using MetaPost/ConTeXt, and I have also
created a webpage with these animations.  The URL to the page is

http://www.tlhiv.org/animations/

Feedback is appreciated, and if there is a particular animation that you
would like to see included, let me know and I will attempt to code them
up in MetaPost, provide the source code, and include them on the webpage.


There are some animated gifs at:

http://en.wikipedia.org/wiki/B%C3%A9zier_curve

such curves are typical for mp so maybe they qualify.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Rogers, Michael K

On 12/28/2012 8:41 PM, Troy Henderson wrote:
 I've created several animations using MetaPost/ConTeXt, and I have also
 created a webpage with these animations.  The URL to the page is

 http://www.tlhiv.org/animations/

 Feedback is appreciated, and if there is a particular animation that you
 would like to see included, let me know and I will attempt to code them
 up in MetaPost, provide the source code, and include them on the webpage.

Neat.  MP - Flash seems to work well.

One thing, which you may know, gear teeth do not normally have rectangular 
profiles.  Nowadays, they are usually involutes of a circle and formerly were 
usually cycloids (so the gears don't slip against each other when they turn).  
I don't have a reference, but google turned up 
http://www.cadquest.com/books/pdf/gears.pdf, which shows how to draw involute 
gears.

Are you using the animations, or some frames perhaps, in a ConTeXt document?  I 
usually use Mathematica for such animations, but it and its ilk are expensive, 
although there are other alternatives.  As I'm still learning MP/Lua/ConTeXt, 
I'm just interested in the ways others use the system.

Thanks for sharing.

Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson

  One thing, which you may know, gear teeth do not normally have
 rectangular profiles.


This must be what Hans was talking about.


 Are you using the animations, or some frames perhaps, in a ConTeXt
 document?


Well, actually I'm using ConTeXt/MetaPost to generate each frame of the
animation automagically.  The webpage will soon allow for downloading the
source for each ConTeXt document.  This generates a multi-page PDF where
each page of the PDF is a frame of the animation.  SWFtools (specifically,
pdf2swf) can then be used to convert the PDF to SWF.

Troy
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Rogers, Michael K
On Dec 28, 2012, at 3:49 PM, Troy Henderson 
thend...@gmail.commailto:thend...@gmail.com wrote:

One thing, which you may know, gear teeth do not normally have rectangular 
profiles.

This must be what Hans was talking about.

I thought Hans was talking about the animations of the construction of Bezier 
curves, which are pretty cool.

Thanks again for the response.



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson
Are the gears more correct now?

Troy
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Otared Kavian
Dear Troy,

The gears are much better now. However, have a look at 
http://fr.wikipedia.org/wiki/Fichier:Involute_wheel.gif
and
http://fr.wikipedia.org/wiki/Engrenage

The animation for Gibbs is also very nice: thanks for sharing!
I tried the TeX file for your Gibbs phenomena animation: I could not get the 
same pictures as you show on your webpage. I get only one page out of 8, and 
the log file says several times:
unknown path q
! Improper `clip'.
to be read again 

Best regards: OK

On 29 déc. 2012, at 03:55, Troy Henderson thend...@gmail.com wrote:

 Are the gears more correct now?
 
 Troy
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2012-12-28 Thread Troy Henderson

 I tried the TeX file for your Gibbs phenomena animation: I could not get
 the same pictures as you show on your webpage.


I built the TeX file with ConTeXt.  I am using the ConTeXt that comes with
TeX Live 2012.

 context gibbs.tex

Troy
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___