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

HSE

Amazing... the long words!

Ah! Also the shader engine  :biggrin: :biggrin: :biggrin:
Equations in Assembly: SmplMath

avcaballero

Those Polish I know tell me to say the next tongue twister:
"chrząszcz brzmi w trzcinie" that means "the beetle sounds in the reed"

but I always say :lol::
"ksiądz brzmi w trzcinie" that means "the priest sounds in the reed"

For me, the sound is the same. So, my counterattack is fierce :bgrin:. Recite the following tongue twister:
Quote
El arzobispo de Constantinopla
se quiere desarzobispoconstitanoponitalizar
el buen desarzobispoconstitanoponitalizador
que lo desarzobispoconstitanoponitalice
buen desarzobispoconstitanoponitalizador
será.

A word with 33 characters, not 55, but it's not bad. You won't see it in the RAE, but it is universal.

daydreamer

Quote from: Raistlin on February 11, 2018, 06:00:09 AM
Sounds like you are like me, Aspergers... Passion
dictates pseudo idealism and then solution follows.....If not,
must be as all else (comments) says, PURE Genius.  :greenclp:
PPS: I do not mean one is exclusive of the other, that would be like
telling myself I am brilliant and stupid at the same time. Come to think of it....
possibly the correct diagnosis.
I recommend you all read scott adams, the Dilbert principle
its cartoons mixed with background story for those cartoons and anymous people who have mailed him about crazy things on their job, thats even more crazy than his cartoons
at one Point he discuss everyone is an idiot
and I Think its good to dont take yourself too serious

I know C++ programmers also needs to learn "Polish notation" :P
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

Grincheux

Siekmanski, your work is wonderful.
I would stay many hours looking at the examples, beautifull...
Thanks :eusa_boohoo:

avcaballero

Hello, my first pixel shader plasma demo, full code for it. I've done a little experiment to compare the pixel shader with a simple gdi.

Siekmanski

Cool effect.  8)
We love pixel shaders   :biggrin:
Creative coders use backward thinking techniques as a strategy.

avcaballero

> We love pixel shaders
Yes  :biggrin:

A sea scape made by Alexander Alekseev aka TDM here, where you can find its source code too. I only translated to Siekmanski's PSC. I have to improve the sun reflections, the original code is right.

Siekmanski

I also converted this shader some days ago.  :biggrin:
I can imagin you want to do the GLSL to HLSL conversion yourself but, if you want the HLSL code for this shader then let me know.
Creative coders use backward thinking techniques as a strategy.

felipe


avcaballero

> I can imagin you want to do the GLSL to HLSL conversion yourself
Yes, I'd like to try it by myself

> if you want the HLSL code for this shader then let me know
Ok, thank you, give me a bit of time first :biggrin:

avcaballero

I did it :eusa_dance: It was very easy, only needed a look :t

Siekmanski

Creative coders use backward thinking techniques as a strategy.

felipe

Quote from: felipe on February 18, 2018, 02:25:58 PM
Nice!  :icon14:
:biggrin:
I have looked to this post a little more and looks just an amazing work siekmanski. Thank you very much to share it. I'm starting with directx 9 (mainly that version because i'm basing my learning in an old book of game development with that library). Is it true that d3d9.dll is standard, is in my machine too. I also realized that d3d8.lib is in the masm32 lib folder. Well, returning to my point, i guess that in this book there are no coverage to pixel shaders. I have downloaded the directx 9 sdk and i will check your .inc files with the ones of this sdk that i will need. If i need later (because i will start with the basics from this old book) something related with pixel shaders i will probably thank you again.

Btw, i have quoted myself with that smile comment, because with such stupid comment i didn't give the proper credit to this post. Probably still not now, but is a little better i think.

Siekmanski

Hi Felipe,

Thank you.
If the pixel shader examples run on your machine, d3d9.dll is on your machine too.
I don't use the DirectX9 wrapper lib anymore and wrote my own libs to keep the executables very small.

This could also be useful for you to try out the examples in the Directx 9 book:
The complete Direct3D9 9 SDK includes which I translated somewhere in 2004 to Masm assembly. http://members.home.nl/siekmanski/d3dx9_asm.zip
Creative coders use backward thinking techniques as a strategy.

felipe

 :greenclp: Bravo siekmanski, amazing! Thank you very much.