Tutorial¶
FieldAnimation in a nutshell¶
To use FieldAnimation in a real PyOpenGL application simply:
create a
FieldAnimationinstancecall its
drawmethod in the main rendering loop
An example application is included in the package at
fieldanimation.examples.app. This module can be executed as a script:
app¶
Field Animation example. Press “G” to display the GUI while running.
usage: app [-h] [-f]
[-c {epole,Duffing's equation,Structurally stable system,Transcritical bifurcation,Reaction diffusion,Positive invariant set,Spiral ccw,Spiral cw,wind,gmod}]
[-p] [-u] [-g] [-i IMAGE]
-
-h,--help¶ show this help message and exit
-
-f,--draw_field¶ Draw vector field as background image
-
-c{epole,Duffing's equation,Structurally stable system,Transcritical bifurcation,Reaction diffusion,Positive invariant set,Spiral ccw,Spiral cw,wind,gmod},--choose{epole,Duffing's equation,Structurally stable system,Transcritical bifurcation,Reaction diffusion,Positive invariant set,Spiral ccw,Spiral cw,wind,gmod}¶ Choose field to animate
-
-p,--fps¶ Count Frames Per Second
-
-u,--use-fragment¶ Use fragment instead of compute shader
-
-g,--gui¶ Add gui control window
-
-i<image>,--image<image>¶ Load image as background texture