Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help with shaders

Author
Message
zao420
20
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 27th Dec 2005 23:39
I know shaders are a problem with dgsdk was hoping to luk out and have this one work.

i converted the db pro shader from Ninja Matt. it is the grass/field shader.

here is the code i did. i didn't change any of the shader code witch can be found here http://homepages.nildram.co.uk/~moonrise/matt/Grass10.zip



i commented the code where it craps out on. can some one test this and see if it crashes on them too.

thanks

http://cavesoft.no-ip.com
WIP Version of my site. Usally it is offline.
http://dev-cavesoft.no-ip.com
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 29th Dec 2005 12:35 Edited at: 29th Dec 2005 12:41
That's kind of surprising, because the error always arise at the dbLoadEffect line:

That usually means that the .fx file is not able to even compile, but you get the error much later, what compiler are you using? VC 2003 here.

I made some changes to the .fx file so that the error does not appear (it compiles! First one to me), but the shader isn't working either. The landscape.x appears black I also tried texturing manually the object from stage 0 to 4 with no luck either. Well half a step almost

(I'm having problems pasting the code, see next post)

Attachments

Login to view attachments
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 29th Dec 2005 12:46 Edited at: 29th Dec 2005 13:06
Here is the modified .fx file that compiles at run time:
-uh-

Ok, since it doesn't allow me to post the full code(don't know why), I'll post the differences:

Instead of:

Use:


Instead of:

Use:


Instead of:

Use:


Instead of:

Use:



However I still feel a litle bit like we are wasting our time. Not a word from TGC people except to tell that it works well for them, but none of us get it working. I cannot believe that we paid for a DX7-looking engine (so far).
zao420
20
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 29th Dec 2005 14:02 Edited at: 30th Dec 2005 03:55
thanks for the help, i am using vc 2003.
i am not at home right now will try those changes and see what happens. i don't think it is going to work though. will just go back to working on my other code, and maybe there will be an upate sometime next year that shaders will work right.

http://cavesoft.no-ip.com
<img src="http://www.blueforge.net/playing/img.php?style=2&tokenID=jFVJzIEIyverJpVKQJzu" border=0>
zao420
20
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 30th Dec 2005 02:28
so i got it to run and yea just a black model. it was sad. so i ran it all in debug mode with direct x in debug mode. noticed there is lots of memory leaks and d3d errors. check it out below.

i removed most of the warnings. wonder it some of those errors are cause by the shader. i had shader debuging on as well but doesn't seam to have any errors there.



http://cavesoft.no-ip.com
WIP Version of my site. Usally it is offline.
http://dev-cavesoft.no-ip.com
zao420
20
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 30th Dec 2005 03:56
test post

http://cavesoft.no-ip.com
<img src="http://www.blueforge.net/playing/img.php?style=2&tokenID=jFVJzIEIyverJpVKQJzu" border=0>
zao420
20
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 30th Dec 2005 03:57
sorry about those extra post needed to fix sig

Dark Game SDK
18
Years of Service
User Offline
Joined: 9th Sep 2005
Location:
Posted: 6th Jan 2006 14:42
I am also struggeling with the shader effects. I can compile the FX file with the first version of DGSDK. The version 1.1 resp. 1.1.1 seems to cause the crashes. In DBPro, there are no issues. I found in other forums nice examples for use of shader effects.

Login to post a reply

Server time is: 2024-05-07 00:37:08
Your offset time is: 2024-05-07 00:37:08