Author Topic: Fun with Pixel Shaders and maths  (Read 9452 times)

LiaoMi

  • Member
  • ****
  • Posts: 698
Re: Fun with Pixel Shaders and maths
« Reply #45 on: February 05, 2020, 06:44:36 AM »
https://alain.xyz gives a Malware warning....  :sad:

Do you have malwarebytes installed? This antivirus is crazy  :biggrin: My ESET-NOD antivirus did not find anything there ..  :tongue:

Siekmanski

  • Member
  • *****
  • Posts: 2321
Re: Fun with Pixel Shaders and maths
« Reply #46 on: February 05, 2020, 06:51:22 AM »
Possibly a false positive???

But the cross shader is on Github too.

https://github.com/alaingalvan/crossshader.git
Creative coders use backward thinking techniques as a strategy.

LiaoMi

  • Member
  • ****
  • Posts: 698
Re: Fun with Pixel Shaders and maths
« Reply #47 on: February 05, 2020, 07:14:17 AM »
Possibly a false positive???

But the cross shader is on Github too.

https://github.com/alaingalvan/crossshader.git

The latest version of Malwarebytes blocks every second web page, I turned it off, github contains the source code and the same link to the working version. I forgot to provide a link to the source code  :azn:
« Last Edit: February 05, 2020, 09:23:53 AM by LiaoMi »

Siekmanski

  • Member
  • *****
  • Posts: 2321
Re: Fun with Pixel Shaders and maths
« Reply #48 on: February 05, 2020, 09:23:02 AM »
Realtime shader programming compo at Revision 2019 Demo Party  :thumbsup:

Revision 2019 - Event - Shader Showdown 2019 - Opening Round
https://www.youtube.com/watch?v=YKtvYAn-v2Y

Revision 2019 - Event - Shader Showdown 2019 - Quarterfinals
https://www.youtube.com/watch?v=uifMBMt9ASU

Revision 2019 - Event - Shader Showdown 2019 - Semifinals
https://www.youtube.com/watch?v=jNhQUksZYkY

Revision 2019 - Event - Shader Showdown 2019 - Final
https://www.youtube.com/watch?v=gmMPvUwyMxA

Revision 2019 - Event - Shader Showdown 2020 - Qualification Semifinals
https://www.youtube.com/watch?v=tYU2DrI1sGM

Creative coders use backward thinking techniques as a strategy.

daydreamer

  • Member
  • *****
  • Posts: 1351
  • building nextdoor
Re: Fun with Pixel Shaders and maths
« Reply #49 on: February 05, 2020, 06:13:02 PM »
Realtime shader programming compo at Revision 2019 Demo Party  :thumbsup:

Revision 2019 - Event - Shader Showdown 2019 - Opening Round
https://www.youtube.com/watch?v=YKtvYAn-v2Y

Revision 2019 - Event - Shader Showdown 2019 - Quarterfinals
https://www.youtube.com/watch?v=uifMBMt9ASU

Revision 2019 - Event - Shader Showdown 2019 - Semifinals
https://www.youtube.com/watch?v=jNhQUksZYkY

Revision 2019 - Event - Shader Showdown 2019 - Final
https://www.youtube.com/watch?v=gmMPvUwyMxA

Revision 2019 - Event - Shader Showdown 2020 - Qualification Semifinals
https://www.youtube.com/watch?v=tYU2DrI1sGM
very cool :thumbsup:
where is yours?
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

daydreamer

  • Member
  • *****
  • Posts: 1351
  • building nextdoor
Re: Fun with Pixel Shaders and maths
« Reply #50 on: February 05, 2020, 06:33:11 PM »
isnt you start with a simple curve and make it work and later add 3d transform functions on it,maybe function that bends it to look like its on inside of a sphere?
simplest do circles/sphere
next one,find a curve thats suitable and if x and y matches curves x and y,draw in different color?
y=c1*x^4+c2*x^3+c3*x^2+c4*line ;c1,c2,c3,c4 constants
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

LiaoMi

  • Member
  • ****
  • Posts: 698
Re: Fun with Pixel Shaders and maths
« Reply #51 on: February 05, 2020, 07:44:13 PM »
Realtime shader programming compo at Revision 2019 Demo Party  :thumbsup:

Revision 2019 - Event - Shader Showdown 2019 - Opening Round
https://www.youtube.com/watch?v=YKtvYAn-v2Y

Revision 2019 - Event - Shader Showdown 2019 - Quarterfinals
https://www.youtube.com/watch?v=uifMBMt9ASU

Revision 2019 - Event - Shader Showdown 2019 - Semifinals
https://www.youtube.com/watch?v=jNhQUksZYkY

Revision 2019 - Event - Shader Showdown 2019 - Final
https://www.youtube.com/watch?v=gmMPvUwyMxA

Revision 2019 - Event - Shader Showdown 2020 - Qualification Semifinals
https://www.youtube.com/watch?v=tYU2DrI1sGM

Reminds a hackathon, did not know that there is such a thing for graphics, downloaded a video, but only one watched  :thup: :thup: :thup:

Siekmanski

  • Member
  • *****
  • Posts: 2321
Re: Fun with Pixel Shaders and maths
« Reply #52 on: February 05, 2020, 09:42:50 PM »
Hi Magnus,

Just try it out, and see what it does.  :cool:
Thinking outside of the box can lead to astonishing results.
What about using roots to draw circles, only calculating 1 octant and mirroring it to the other 7 octants?
No need for expensive trig functions like sin, cos or arctan2.

Hi LiaoMi,

There are many competitions at Demo Parties.
- Demo and intro coding.
- Graphics
- Music
- etc.

For example: Revision Demoparty
https://www.youtube.com/channel/UCFtrxOb0K67hvOt_lRuX1Uw
Creative coders use backward thinking techniques as a strategy.

daydreamer

  • Member
  • *****
  • Posts: 1351
  • building nextdoor
Re: Fun with Pixel Shaders and maths
« Reply #53 on: February 06, 2020, 04:17:47 AM »
Just try it out, and see what it does.  :cool:
Thinking outside of the box can lead to astonishing results.
What about using roots to draw circles, only calculating 1 octant and mirroring it to the other 7 octants?
No need for expensive trig functions like sin, cos or arctan2.
sounds like fun,blend together several circles with different sizes and colors looks good
want to try out simple curves to figure out bigstock pic
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

daydreamer

  • Member
  • *****
  • Posts: 1351
  • building nextdoor
Re: Fun with Pixel Shaders and maths
« Reply #54 on: February 06, 2020, 08:22:42 PM »
Marinus
dont have no sqrt in this,wonder how fast a packed compare that act on mask colors?
[url]http://masm32.com/board/index.php?topic=7324.0[url]

thats because you dont have sqrt or divide in MMX handling lots of pixels
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

Siekmanski

  • Member
  • *****
  • Posts: 2321
Re: Fun with Pixel Shaders and maths
« Reply #55 on: February 06, 2020, 09:50:44 PM »
You want to do that in 16bit DOS?
Maybe do it the oldskool way.
Precalculated sqrt tables and/or reciprocal (fixed point) tables for the divisions.
Creative coders use backward thinking techniques as a strategy.

daydreamer

  • Member
  • *****
  • Posts: 1351
  • building nextdoor
Re: Fun with Pixel Shaders and maths
« Reply #56 on: February 06, 2020, 11:16:55 PM »
You want to do that in 16bit DOS?
Maybe do it the oldskool way.
Precalculated sqrt tables and/or reciprocal (fixed point) tables for the divisions.
no,more fun to make it 128bit+ version of it
one part:
http://masm32.com/board/index.php?topic=7938.0
« Last Edit: February 07, 2020, 12:45:01 AM by hutch-- »
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)