Dark Bit Factory & Gravity
GENERAL => Projects => Topic started by: TinDragon on June 25, 2012
-
Having managed to get ps_3_0 shaders going I decided to try and make something moving, based the code off a glsl example from iq's shadertoy. Would probably have taken far less time if I actually new any hlsl before hand but I figured it out as I went along and got texture loading going by hacking into my bmax code a way to use the D3DX9_43.dll, this means you need the latest dx install for this to work but why wouldnt a windows user have that anyway :P
Also needs a shader model 3 card, it will likely crash on anything lower.
If you feel like letting me know if it works and what your windows version and gfx card is feel free, would be useful to see how it runs on nvidia as I only have ati :)
I know this could be done in 1k or less in c/c++ but doing it in bmax is kinda cool, I dont really see anyone else doing it, and this is more an off shoot from me learning directx.
Cheers
Jon
-
Nice tunnel! You can always check glsl.heroku.com (http://glsl.heroku.com/) if you need more shader ideas.
-
I tried it on a WinVista computer with an ATI 4300HD series card, so nothing fancy, but it runs smooth and no issues at all. It looks brilliant. Would it be possible to do some kind of bumpmapping at the same time, probably using normalmaps or something? I think it would make it even more great. Good job on hacking your way into getting dx shaders working with bmax, as you mention not a lot of people dabble in that kind stuff.
-
Works nice with Win7 and Nvidia GTX560Ti.
-
she's a beauty :)
-
works fine here on P4 3,8ghz + Asus NVIDEA 7950GT 512mb.
Nice job. :)
-
Runs fine windowed here on GTX850 Win64. When trying to run fullscreen (at 1920x1080), I just get a black screen. Nice effect :)
-
Nice! runs fine on my old 7100Gs with xp!
-
Thanks for the feedback, much appreciated.
Not sure about the blackscreen in fullscreen mode, i get that for a fraction of a second while it deals with the shader and texture loading but it runs fine, could it be the backbuffer format, I dont specify it in widowed mode but use D3DFMT_A8R8G8B8 for fullscreen? cant think of anything else that's different.
cheers
Jon
-
Well I had a go at using a normal map in this tunnel, while it adds a slightly different look it doesn't feel right to me, probably due to the actual tunnel lighting being faked in the shader code and needing to work out how to us it with the normals from the map. Pretty sure I am not doing that right but I am pretty happy to actually get the shader using 2 textures. Still this is keeping me opening the ide for a few hours having some fun and that's what its all about in the end ;)
Attached a zip with the original and the attempted bump mapping so you can see the difference, haven't packed the exe's as a few friends had there av software claim it was infected when upx'd :-\
Cheers
Jon
-
Can't make it work here Jon, mind you I have a shitty ATI card.
Screeny looks really great though!
-
Hmm, would have to be a very very old ati, I think any radeon hd is sm3+, mines only a hd4890 so its 2 or 3 generations old now itself, sure you have the dx dll I listed in the 1st post? If your not a big PC gamer you might not have an upto date dx install.
Cheers
Jon
-
I see what you mean about the bump not turning out as great as it could. You would probably have to not have the shader darken the tunnel and have to set up lights and such. The non bump version looks better as it is now. But as you said, you figured out how to use two textures, which mean that it was not all for nothing :)