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

HSE

  • Member
  • ****
  • Posts: 768
  • <AMD>< 7-32>
Re: Fun with Pixel Shaders and maths
« Reply #15 on: February 11, 2018, 11:58:50 AM »
Amazing... the long words!

Ah! Also the shader engine  :biggrin: :biggrin: :biggrin:

caballero

  • Member
  • *****
  • Posts: 1045
Re: Fun with Pixel Shaders and maths
« Reply #16 on: February 12, 2018, 03:59:25 AM »
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.
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: 504
Re: Fun with Pixel Shaders and maths
« Reply #17 on: February 12, 2018, 10:56:31 PM »
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
Quote from Flashdance
Nick  :  When you give up your dream, you die.
*wears a flameproof asbestos suit*

Grincheux

  • Member
  • ***
  • Posts: 330
  • Never be pleased, Always improve
    • Asm for fun
Re: Fun with Pixel Shaders and maths
« Reply #18 on: February 15, 2018, 04:15:42 AM »
Siekmanski, your work is wonderful.
I would stay many hours looking at the examples, beautifull...
Thanks :eusa_boohoo:
Kenavo (Bye)
----------------------
Asm for Fun
My Links
"La garde meurt mais ne rend pas"
Cambronne à Waterloo

caballero

  • Member
  • *****
  • Posts: 1045
Re: Fun with Pixel Shaders and maths
« Reply #19 on: February 17, 2018, 06:36:55 AM »
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.
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 -

Siekmanski

  • Member
  • *****
  • Posts: 1609
Re: Fun with Pixel Shaders and maths
« Reply #20 on: February 17, 2018, 07:38:41 AM »
Cool effect.  8)
We love pixel shaders   :biggrin:
Creative coders use backward thinking techniques as their strategy.

caballero

  • Member
  • *****
  • Posts: 1045
Re: Fun with Pixel Shaders and maths
« Reply #21 on: February 18, 2018, 07:03:25 AM »
> 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.
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 -

Siekmanski

  • Member
  • *****
  • Posts: 1609
Re: Fun with Pixel Shaders and maths
« Reply #22 on: February 18, 2018, 08:27:20 AM »
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 their strategy.

felipe

  • Member
  • ****
  • Posts: 897
  • Eagles are just great!
Re: Fun with Pixel Shaders and maths
« Reply #23 on: February 18, 2018, 02:25:58 PM »
Nice!  :icon14:
Felipe.

caballero

  • Member
  • *****
  • Posts: 1045
Re: Fun with Pixel Shaders and maths
« Reply #24 on: February 18, 2018, 07:10:52 PM »
> 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:
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: 1045
Re: Fun with Pixel Shaders and maths
« Reply #25 on: February 18, 2018, 08:04:13 PM »
I did it :eusa_dance: It was very easy, only needed a look :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 -

Siekmanski

  • Member
  • *****
  • Posts: 1609
Re: Fun with Pixel Shaders and maths
« Reply #26 on: February 18, 2018, 09:26:01 PM »
I did it :eusa_dance: It was very easy, only needed a look :t

I knew it. Cool  8)
Creative coders use backward thinking techniques as their strategy.

felipe

  • Member
  • ****
  • Posts: 897
  • Eagles are just great!
Re: Fun with Pixel Shaders and maths
« Reply #27 on: April 06, 2018, 01:04:26 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.
Felipe.

Siekmanski

  • Member
  • *****
  • Posts: 1609
Re: Fun with Pixel Shaders and maths
« Reply #28 on: April 06, 2018, 01:46:54 PM »
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 their strategy.

felipe

  • Member
  • ****
  • Posts: 897
  • Eagles are just great!
Re: Fun with Pixel Shaders and maths
« Reply #29 on: April 07, 2018, 10:53:27 AM »
 :greenclp: Bravo siekmanski, amazing! Thank you very much.
Felipe.