Page 1 of 1

John Conway's Game of life HLSL edition for irrlicht

Posted: Sun Dec 18, 2011 12:45 pm
by Granyte
John Conway's Game of life running in HLSL pixel shader.

On my Quest to learn HLSL Shader programing i stubeled upon a blog where some one built an implementation of John Conway's game of life using compute shaders after looking up the rules i though about trying to build one using pixel shader.

1024*1024 at 449 iteration per seconds
i might even be able to get a few more out of it but the version you are getting is vsync enabeled cause otherwise it's just to fast
Image

in my edition the dead cells leave a corps behind that slowly fade
the color tel wich rule killed them.

the goal of the project is mainly to practice HLSL ,C++ Programing and maintaining code (bug fix, update, new feature)
some future feature are planed if you have sugestions feel free to tell


it runs on pixel shader 2.0 directx 9.0.

randoom cells can spawn from just about any type of image
but if you wanna try to manualy build a cell you will need to edit a file pixel per pixel and the file will need to be exactly 1024*1024


from what i understood this version currently require that you install microsoft visual C++ redistribuable

here are the links for the download provided by microsoft

for windows x86
http://www.microsoft.com/download/en/de ... px?id=5555

for windows x64
http://www.microsoft.com/download/en/de ... x?id=14632

i'm currently working on an update version with some other function and that would include the c++ redist to instal them without any intervention from the user(idealy)

Download link availible here http://granyte.blogspot.com/2011/12/joh ... ition.html


EDIT the link was not directing to the proper post in the blog fixed

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Mon Dec 19, 2011 11:46 am
by ACE247
For all those that just see funny pixels: Its Awesome, just run it! :D

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Mon Dec 19, 2011 7:06 pm
by Granyte
i guess i should implement a zoom function so you can see the celular automata
thanks

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Mon Dec 19, 2011 7:47 pm
by serengeor
And get rid of msvc 2010 dependancy.

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Mon Dec 19, 2011 9:15 pm
by Granyte
i must admit i have no idea how to do this in msvs 2010 (but that's to learn this kind of stuff i created this project)

is it including windows.h what cause this :?:

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Mon Dec 19, 2011 10:18 pm
by serengeor
Granyte wrote:i must admit i have no idea how to do this in msvs 2010 (but that's to learn this kind of stuff i created this project)

is it including windows.h what cause this :?:
I don't really have a clue, since I haven't worked much with msvc after I switched to codeblocks and gcc. I remmember I had similar issues with mingw, I think it had some define to build it with static mingw libs. Maybe msvc has something similar.
Might be this: http://msdn.microsoft.com/en-us/library/abx4dbyh.aspx, though not sure about it.

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Mon Dec 19, 2011 11:18 pm
by Granyte
i might just include msvc++ redistribuable with my software if i can't fix it

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Tue Dec 20, 2011 7:54 am
by ACE247
Just add vc100.dll and say: 'whatever'! :D

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Tue Jan 17, 2012 9:10 pm
by Granyte
from what i understood of the issue this version currently require that you install microsoft visual C++ redistribuable
here are the links for the download provided by microsoft

for windows x86
http://www.microsoft.com/download/en/de ... px?id=5555

for windows x64
http://www.microsoft.com/download/en/de ... x?id=14632

i'm currently working on an update version with some other function and that would include the c++ redist to instal them without any intervention from the user (idealy)

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Wed Jun 27, 2012 3:51 am
by Granyte
http://granyte.blogspot.ca/2012/06/gol-update.html

Small update: This version should install all it's needed dependencies.


Next version will include some new features.

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Wed Jun 27, 2012 8:19 pm
by zerochen
hi, after starting i didnt see anything and got those errors:


Could not load shader function D3DXAssembleShader from dll, shaders disabled: d3dx9_43.dll
Could not create vertex shader.
Could not create vertex shader.
Could not load shader function D3DXCompileShader from dll, shaders disabled: d3dx9_43.dll

i have win7 and a geforce gt 240m.
any suggestions?

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Thu Jun 28, 2012 5:41 am
by Granyte
This looks like you don't have the needed DirectX redistribuables i guess also forgot to add them to the instaler.

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Wed Jul 04, 2012 10:50 pm
by BlindSide
Yep if you're willing to be a *little* risky you can usually just google around and download d3dx9_43.dll separately, place it in your application root (Disclaimer: I hold no responsibility for any backdoor/trojans caused by DLLs obtained from third party sources).

Re: John Conway's Game of life HLSL edition for irrlicht

Posted: Wed Jul 04, 2012 11:50 pm
by Granyte
I will update the instaler with the directX redistribuable after i get the dx 10 driver to work with the FVF