News:

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

Main Menu

Fun with Pixel Shaders and maths

Started by Siekmanski, February 07, 2018, 09:23:15 AM

Previous topic - Next topic

LiaoMi

Quote from: Siekmanski on February 05, 2020, 06:30:35 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

#46
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

#47
Quote from: Siekmanski 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

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:

Siekmanski

#48
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

Quote from: Siekmanski 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
very cool :thumbsup:
where is yours?
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

daydreamer

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
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

LiaoMi

Quote from: Siekmanski 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

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

#52
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

Quote from: Siekmanski on February 05, 2020, 09:42:50 PM
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
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

daydreamer

#54
Marinus
dont have no sqrt in this,wonder how fast a packed compare that act on mask colors?
http://masm32.com/board/index.php?topic=7324.0

thats because you dont have sqrt or divide in MMX handling lots of pixels
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

Siekmanski

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

#56
Quote from: Siekmanski on February 06, 2020, 09:50:44 PMYou 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
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

Xylitol

First of, thank you for your pixelshader code Siekmanski.

Here is my fork, i ported it to Dialogbox, tweaked a bit the ShaderCompiler to load file and compile the .hlsl on the fly with also a selector for the d3dx optimization flags.

Included in the zip are ShaderCompiler source and ShaderViewer.
i integrated also in the zip all the shaders made by the community in this thread
+ some shaders of mine
i've upx packed the .exe so i can stay in the 512kb zip file size limit.
there is still fews bugs as sometime it crash on system, but heh.. it work on mine :tongue:

jj2007

It hangs with its cpu core at 100%. My Win10 system has C:\Windows\System32\d3dxof.dll but no C:\Windows\System32\d3dx_??.dll, so LoadLibrary fails; and my *of* does not know about D3DXCompileShaderFromFileA :cool:

To avoid the hanging program, you should give up after the last attempt and shout at the user.

Apart from that minor glitch, it's a nice project :thumbsup:

Siekmanski

Creative coders use backward thinking techniques as a strategy.