Author Topic: idea of demo based on rosler attractor  (Read 8252 times)

HSE

  • Member
  • *****
  • Posts: 1029
  • <AMD>< 7-32>
Re: idea of demo based on rosler attractor
« Reply #45 on: September 15, 2018, 07:38:20 AM »
Six main rays:


Four rays:


Imposible:
  :biggrin:

Siekmanski

  • Member
  • *****
  • Posts: 1830
Re: idea of demo based on rosler attractor
« Reply #46 on: September 15, 2018, 04:15:31 PM »
Hi Alfonso,

A small example to calculate a 6 point star image.

Code: [Select]
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

  • Member
  • *****
  • Posts: 1830
Re: idea of demo based on rosler attractor
« Reply #47 on: September 15, 2018, 04:41:13 PM »
Stars with coloring techniques.  :biggrin:
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1112
    • abre ojos ensamblador
Re: idea of demo based on rosler attractor
« Reply #48 on: September 15, 2018, 05:10:57 PM »
That's great Marinus, thank you :t
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

caballero

  • Member
  • *****
  • Posts: 1112
    • abre ojos ensamblador
Re: idea of demo based on rosler attractor
« Reply #49 on: September 15, 2018, 08:03:01 PM »
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.
« Last Edit: September 16, 2018, 04:48:51 AM by caballero »
En un lugar de la Mancha de cuyo nombre no quiero acordarme

- There are 10 kind of people: those who know binary numbers and those who don't -

daydreamer

  • Member
  • ****
  • Posts: 831
  • watch Chebyshev on the backside of the Moon
Re: idea of demo based on rosler attractor
« Reply #50 on: September 15, 2018, 10:45:14 PM »
this is stars I want to make starfield with
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
there are female bugs also,how do I know?Ladybugs :D

HSE

  • Member
  • *****
  • Posts: 1029
  • <AMD>< 7-32>
Re: idea of demo based on rosler attractor
« Reply #51 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)

daydreamer

  • Member
  • ****
  • Posts: 831
  • watch Chebyshev on the backside of the Moon
Re: idea of demo based on rosler attractor
« Reply #52 on: December 26, 2018, 08:03:56 PM »
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
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
there are female bugs also,how do I know?Ladybugs :D

HSE

  • Member
  • *****
  • Posts: 1029
  • <AMD>< 7-32>
Re: idea of demo based on rosler attractor
« Reply #53 on: December 27, 2018, 12:00:21 AM »
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.

daydreamer

  • Member
  • ****
  • Posts: 831
  • watch Chebyshev on the backside of the Moon
Re: idea of demo based on rosler attractor
« Reply #54 on: December 29, 2018, 05:07:17 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?
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
there are female bugs also,how do I know?Ladybugs :D

HSE

  • Member
  • *****
  • Posts: 1029
  • <AMD>< 7-32>
Re: idea of demo based on rosler attractor
« Reply #55 on: December 30, 2018, 01:14:26 AM »
now I got ideas,make whole thing bigger and use christmasballs sprites instead?

We will see what you can do  :t

daydreamer

  • Member
  • ****
  • Posts: 831
  • watch Chebyshev on the backside of the Moon
Re: idea of demo based on rosler attractor
« Reply #56 on: January 01, 2019, 10:07:15 AM »
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
« Last Edit: January 11, 2019, 07:56:00 AM by daydreamer »
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
there are female bugs also,how do I know?Ladybugs :D

Raistlin

  • Member
  • ***
  • Posts: 481
Re: idea of demo based on rosler attractor
« Reply #57 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
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

daydreamer

  • Member
  • ****
  • Posts: 831
  • watch Chebyshev on the backside of the Moon
Re: idea of demo based on rosler attractor
« Reply #58 on: January 10, 2019, 05:42: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
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
there are female bugs also,how do I know?Ladybugs :D

Raistlin

  • Member
  • ***
  • Posts: 481
Re: idea of demo based on rosler attractor
« Reply #59 on: January 10, 2019, 05:49:52 AM »
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...