Pages

duminică, 20 noiembrie 2022

Shadertoy: matrix rotation for uv.

Today I wrote a simple example in shadertoy about how to apply a rotation using rotation matrices with sin and cos for a uv, see wikipedia.
For uv I used already defined uv. I created a stripe using the modulo function to make rotation visible and completed the rotation with the iTime variable defined in shadertoy to rotate it continuously.
Here is the created source code:
void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
    //set the uv to a proper size on the center of screen 
    vec2 uv = (fragCoord - 0.5 * iResolution.xy) / min(iResolution.x, iResolution.y);
    // set rotation angle value
    float rot = radians(0.0);
    // this set rotation by time and 
    rot = iTime;a
    // algebra formula for rotation by matrix , https://en.wikipedia.org/wiki/Rotation_matrix
    mat2 m = mat2(cos(rot), -sin(rot), sin(rot), cos(rot));
    // rotation of uv with matrix algebra formula where is set the rotation angle 
    uv = m* uv;
    // define float by function module from 1.0 and uv.x - uv.y
    float d = mod(uv.x - uv.y, 1.0);
    // color for fragColor is value of fload d by module function
    vec4 col = vec4(vec3(d), 1.0);
    fragColor = vec4(col);
}
Here is an example share from my shadertoy account.

joi, 17 noiembrie 2022

News : Cygnus Enterprises trailer.

Cygnus Enterprises is a sci-fi base-management and action Role-playing PC game developed by Team Miaozi, a NetEase Games studio.
The official webpage of the NetEase Games studio can be found on this webpage.

Stable Diffusion Mocap Visualizer in Houdini by Sascha Robitzki.

A demonstration video that shows us the current possibilities of current graphic and algorithmic processing.

miercuri, 16 noiembrie 2022

News : RECAP - Blender Conference 2022.

I always liked open-source development, because it was more subjective and I guess more soul was put into it. But the development of the Blender 3D software in recent years has led to a remarkable improvement and a real community. Here is the video of the participation in the 2022 conference.

marți, 15 noiembrie 2022

News : StarCraft II: Free to Play.

Free to play is here, bringing a wealth of options for new and returning StarCraft II players. Wings of Liberty, the first chapter of the epic sci-fi saga, is now free. Those with a desire for competition can unlock the ranked ladder for free simply by playing and winning games. Finally, Co-op blends elements of campaign and versus for an experience that is truly unique. Choose from iconic characters like Alarak and Nova who break the rules of StarCraft II and provide gameplay that can suits your style. There’s never been a better time to jump into StarCraft II, now free-to-play.

News : Ballads of Hongye trailer.

Ballads of Hongye is a unique city-builder strategy game. As the local magistrate, you must carefully plan and act to complete the various challenges in different environments to earn the right to rule the lands. Build a thriving city and revive Hongye County as you discover a unique story. The game will be available on November 30th.