John Conway's Game of life HLSL edition for irrlicht

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

John Conway's Game of life HLSL edition for irrlicht

Post 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
Last edited by Granyte on Wed Feb 29, 2012 9:40 pm, edited 3 times in total.
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

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

Post by ACE247 »

For all those that just see funny pixels: Its Awesome, just run it! :D
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post by Granyte »

i guess i should implement a zoom function so you can see the celular automata
thanks
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

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

Post by serengeor »

And get rid of msvc 2010 dependancy.
Working on game: Marrbles (Currently stopped).
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post 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 :?:
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

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

Post 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.
Working on game: Marrbles (Currently stopped).
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post by Granyte »

i might just include msvc++ redistribuable with my software if i can't fix it
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

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

Post by ACE247 »

Just add vc100.dll and say: 'whatever'! :D
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post 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)
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post 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.
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

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

Post 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?
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post by Granyte »

This looks like you don't have the needed DirectX redistribuables i guess also forgot to add them to the instaler.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

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

Post 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).
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

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

Post by Granyte »

I will update the instaler with the directX redistribuable after i get the dx 10 driver to work with the FVF
Post Reply