Pages

joi, 24 iunie 2021

News : Paint With Music from Google Arts & Culture.

What if you can hear your painting? Turn your paint brush into musical instruments and compose on sensorial canvases!
, see this online tool here.
The Google Arts & Culture is a non-profit initiative with cultural institutions and artists around the world.

luni, 21 iunie 2021

Shadertoy: iChannel texture - 003.

In the last tutorial I add a sphere distortion and sphere distortion with movement.
Today I use iChannel2 ro get input from keyboard and use this input to move with an offset.
The source code is not perfect because I used multiple areas with texture and I add keyboard offset.
This can be solve easy if I use a buffer.
The main goal of this tutorial is to see how you can use keyboard with iChannel input.

duminică, 20 iunie 2021

The BBC BASIC an 8-bit computer emulator.

BBC Micro bot runs your tweet on an 8-bit computer emulator.
The BBC BASIC - a language created by Sophie Wilson in 1981 for the BBC Micro.
You can share yor work like a tape or disk and test with a old computer.
This program will show a message and run commands on screen.
1 MODE 1:VDU 19,0,4,0,0,0:VDU 19,1,6,0,0,0
2 COLOUR 1
3 PRINT:PRINT "    **** COMODORE 64 BASIC V2 ****"
4 PRINT:PRINT " 64K RAM SYSTEM  38911 BASIC BYTES FREE"
5 PRINT:PRINT "READY."
See more about this on the official webpage.

News : Another game engine Rogue Engine.

Another game engine for web games using three.js .
Rogue Engine is a powerful environment to create Web Games and Apps using three.js.
The author of this game engine is BeardScript.
You can see more video on the youtube channel.

sâmbătă, 19 iunie 2021

Shadertoy: iChannel texture - 002.

In the last example I created a surface with a texture by channel inputs.
Now, I add a sphere distortion and sphere distortion with movement.
This is the source code I used:
#define PI 3.1415926

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
    vec2 uv = fragCoord.xy / iResolution.xy;
    // get poins 
    vec2 p = (2.0 * fragCoord - iResolution.xy) / iResolution.y;
    // set surface formula
    vec3 v = vec3(p.x, p.y, sqrt(1.0 - p.x * p.x - p.y * p.y));
    // create normals 
    vec3 n = normalize(v);
    
    // https://en.wikipedia.org/wiki/Distortion_(optics)
    vec2 sphere_distortion = vec2(atan(n.z, n.x) / PI,0.00000001 * p.y);

    vec4 color = vec4(0.0,0.0,0.0,0.0);
    
    if (uv.x > 0.0 && uv.x < 0.5)
    {
   		//color = texture(iChannel0, vec2(1.0 - (uv.x/0.5),uv.y/0.5)+ sphere_distortion);
        // with movement iTime
        color = texture(iChannel0, vec2(1.0 * iTime- (uv.x/0.5),uv.y/0.5)+ sphere_distortion);
    } 
    else if (uv.x > 0.5 && uv.x < 1.0) 
    { 
        //color = texture(iChannel1, vec2((uv.x/0.5),uv.y)+ sphere_distortion);
        // with movement iTime
        color = texture(iChannel0, vec2(iTime-(uv.x/0.5),uv.y)+ sphere_distortion);
        
    } 
	fragColor = color;
}

vineri, 18 iunie 2021

Stone Story RPG game.

An auto-RPG with strategic combat, deep crafting and programming elements, animated entirely in ASCII-art. In a realm of perpetual darkness, a single stone could change everything...see more on the Steam webpage.
You can see the graphic with ascii for this game on this youtube video: