shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
Noise application example

Build

Using Windows (run as admin):

python export-application.py name=noise target=EXECUTABLE path=applications/noise
cd applications/noise/build/windows
cmake --build .
cp ../../ini.smd ../../bin/windows/ini.smd

Using Linux:

sudo python3.9 export-application.py name=noise target=EXECUTABLE path=applications/noise
cd applications/noise/build/linux
sudo cmake --build .
cp ../../ini.smd ../../bin/linux/ini.smd

Application tour

To change the values of the parameters S A and B:

Parameter Increase key Decrease key
S W Q
A S A
B X Z

To see the parameters values, or to enable/disable the UI, press H.

Fragment shader algorithm:

\( c = \cos(\pi x y s)\)

\( RGB_{raw} = \begin{bmatrix} \sin(\pi |x| {s \over a}) + c\\ \sin(\pi |y| {s \over b}) + c\\ \cos(\pi s {x \over y}) + c\\ \end{bmatrix} \)

You can export these values to applications/noise/smd/noise-saved.smd by pressing LEFT_CTRL + E. When the application is reloaded (LEFT_CTRL + R) the default parameters written at applications/noise/smd/noise-recovery.smd will be read. You can load the exported values by pressing LEFT_CTRL + L.

Example parameters

\( s = {1 \over 2} \)

\( a = 1\)

\( b = -2,5\)

\( s = {1 \over 2} \)

\( a = 1\)

\( b = -2,5\)

\( s = 4\)

\( a = 4,5\)

\( b = -1,8\)

\( s = 4\)

\( a = 5\)

\( b = 7\)