Skip to content

Latest commit

 

History

History
91 lines (55 loc) · 2.03 KB

README.rst

File metadata and controls

91 lines (55 loc) · 2.03 KB

Moiré experiments

This repo is used for experiments about moiré effect. It will be a collection of test scripts, not a fancy finished software.

interactive.qml

This is a simple shader/qml script (Qt5 library) to display computed images in interactive way. It is totally independant of other scripts.

In fact, it is just a tool to merge two images on the fly by multiplicating their pixels values, so that we do not have to open them in image editing tool and apply filters on it.

Launch with qmlscene interactive.qml

It assumes gratings are saved as /tmp/i1.png and /tmp/i2.png (note: other scripts do not save such images).

  • Left drag to move image (Ctrl to constrain X, Shift to constrain Y, Alt to rotate)
  • Right drag to rotate image
  • Double left click to reset position
  • Double right click to reset rotation

1_simple_initial

First tentative with naive code

Two linear gratings with different frequency create a 3rd linear frequency

results/1.png

2_round

Not expected but interesting result

Two almost linear gratings create circular pattern

results/2.png

3_cross_circle

Circular grating with a cross emerging pattern

Result of try and errors with equations

results/3.png

4_spiral

Circular gratings with spiral emerging pattern

Result of try and errors with equations

results/4.png

5_pseudoinv

Use maths to 'invert' phase and have approximative rendered pattern computed

Need work to have better results

results/5.png

6_pseudoinv_color

Generate two gratings that overlaps into a colored image

results/6.png

7_pixel_grid

Generate two gratings that form a (binary) pixel grid

results/7.png

8_trihex

Generate an image subdivided in 3 hexagonal shaped regions which generate a different pattern depending on the angle of the superposition

results/8.png