News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

idea of demo based on rosler attractor

Started by daydreamer, December 03, 2017, 07:36:55 AM

Previous topic - Next topic

HSE

Equations in Assembly: SmplMath

Siekmanski

Hi Alfonso,

A small example to calculate a 6 point star image.

const    float4 constant_pool:register(c0); // constants received from CPU
#define  iResolution constant_pool.xyz  // viewport resolution in pixels (width, heigth, aspect ratio)

static   float star_size = 1.0/3.0;

float4 ps_main(float2 fragCoord:vpos):color // ps_3_0 input semantics, vpos contains the current pixel (x,y) location. This is only valid with ps_3_0.
{
    float3 color = 0.0;
    fragCoord = abs(fragCoord + fragCoord - (color.rg = iResolution.xy)) / color.g;
    color += 1.0 - 2.0*pow(( pow(2.0*fragCoord.x, star_size) + pow(fragCoord.x + fragCoord.y*1.7, star_size) + pow(abs(fragCoord.x - fragCoord.y*1.7), star_size))*0.333333, 1.0/star_size) - color;
    return float4(color,1.0);
}

Creative coders use backward thinking techniques as a strategy.

Siekmanski

Creative coders use backward thinking techniques as a strategy.

avcaballero


avcaballero

#49
A new sprite for an old demo as a starting point
Don't forget the tune :eusa_boohoo:

Edited: bigger sprite and window. Can be viewed in full screen.

daydreamer

this is stars I want to make starfield with
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

HSE

Hi!!

Just beginning to play with some color changes in "orbiters". Now some minimum effect with velocity (and until 500000 points in global memory)
Equations in Assembly: SmplMath

daydreamer

Quote from: HSE on December 25, 2018, 09:59:11 AM
Hi!!

Just beginning to play with some color changes in "orbiters". Now some minimum effect with velocity (and until 500000 points in global memory)
looks good  :t
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

HSE

Quote from: daydreamer on December 26, 2018, 08:03:56 PM
looks good  :t

Thanks daydreamer!

Here is some quite amazing pattern resulting from the product of x, y and z changes. Green is 0.25-1.75 times product media, red less and blue more.
Equations in Assembly: SmplMath

daydreamer

Quote from: HSE on December 27, 2018, 12:00:21 AM
Quote from: daydreamer on December 26, 2018, 08:03:56 PM
looks good  :t

Thanks daydreamer!

Here is some quite amazing pattern resulting from the product of x, y and z changes. Green is 0.25-1.75 times product media, red less and blue more.
looks good,thanks now I got ideas,make whole thing bigger and use christmasballs sprites instead?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

HSE

Quote from: daydreamer on December 29, 2018, 05:07:17 PM
now I got ideas,make whole thing bigger and use christmasballs sprites instead?

We will see what you can do  :t
Equations in Assembly: SmplMath

daydreamer

#56
Quote from: HSE on December 30, 2018, 01:14:26 AM
Quote from: daydreamer on December 29, 2018, 05:07:17 PM
now I got ideas,make whole thing bigger and use christmasballs sprites instead?

We will see what you can do  :t
ddraw christmasball test(no attractor yet),downsized from 1920x1080 to 1024x768
not finished yet need highlight etc,realtime christmasball1 fpu,realtime christmasball2,scalar SSE
not applied clipping yet so it behaves like pixelshader code for all pixels

Packed SIMD christmasballs
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

Raistlin

I cant say this on the forum
BUT i luv this sh.......
Thanks guys this is why I adore asm
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

daydreamer

Quote from: Raistlin on January 10, 2019, 05:18:53 AM
I cant say this on the forum
BUT i luv this sh.......
Thanks guys this is why I adore asm
thanks
wouldnt it be a good idea to make this SIMD multithreaded Raistlin?I dont know how many cores each of us have except I have 4 cores on the new one,so maybe max two threads to begin with?
computing power->beautiful attractors
http://www.masmforum.com/board/index.php?PHPSESSID=af65365f793cf8023130aaf160e7c57c&board=53.0
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

Raistlin

You know me toooo well
Beer and Asm and SIMD/AVX
and wife (must have mention)
and maybe the kid (12 yrs old) forever
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...