Skip to content

A little code to create optical illusions from vector fields

Notifications You must be signed in to change notification settings

lhufnagel/Self-animating-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self-animating-images

Illusory Motion Using Repeated Asymmetric Patterns Code

Arbitrary vector field

A little project to create optical illusions of moving images from arbitrary vector fields (e.g. fluid flow). Presented in a computer graphics seminar in summer '15. Based on the work by Chi et al.

Requirements:

Usage

Compile code with:

ccmake .
[Press c twice, possibly you need to adapt the path to CGAL. Then press g] 
make

Then run

./code
   <Streamline-Distance>
   <RAP-Length>
   <RAP-width>
   <vector-file>

or only ./code <vector-file>

Example input-files are in subdirectory vector_fields. Use

asy *.asy

to render output images.

Karman vortex street

Todo

  • Implement the length variation of RAPs in order to maximize contrast between streamlines

About

A little code to create optical illusions from vector fields

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published