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

HSE

  • Member
  • ****
  • Posts: 839
  • <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: 1684
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: 1684
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: 1099
    • 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: 1099
    • 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: 557
  • reach for the stars
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*