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 / Dark Shader and GDK

Author
Message
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 11th Feb 2008 10:42
Hey guys, havin a little prob getting darkshader examples to run so I must be missing something somewhere.

I load the bloom example up and when it runs theres an error that says "Darkshader DLL not initialised".

I've gotten the gdk runtime zip from my order history and put the include (shaderdata.h) and the library (shaderdata.lib) in their respective folders. I went and had a look for the .dll in the darkshader dir, found it and stuck it in my project folder.

GDK runs just fine otherwise. Just noticed it won't even compile in release mode - What did I miss?
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 11th Feb 2008 13:28
Are you running M$ Vista?

If so, DarkShader doesn't work with GDK under Vista. I'm hoping this will get sorted out soon.

As for the project not compiling in release mode, I'm not sure what is happening here. I have attached the bloom project which compiles in both debug and release modes, so if you are not running Vista this should work!

Can you post back with your results please, I'm interested in what happens on your machine as I don't have another computer to test this on.

Projects Started: 20
Projects Completed: 0

Attachments

Login to view attachments
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 11th Feb 2008 13:52
Hey mono, thanks for the reply mate.

I'm a noob to c++ and the gdk in general, I use it off and on whenever i'm bored and not playing something like eve, wow or recently crysis

With that being said and no one else having probs it must be me and my lack of leet skills lol. I'm pretty sure I have visual c++ 2008 express compiler set up right, cos i can run the gdk templates, use gdk functions and all's good so its just something to do with trying to use shaders.

I'm on win xp pro 32bit, about 3gb system ram (i chucked 2 in as i remember during the xmas break - spending money) and using asus EAH3870 512mb video card, can run shader model 3.0 DX 10 .ect .ect so its not my hardware.

Its just something noob i'm doing lol, so mono I loaded your vc project and went to run it (was set in release mode) and i get an error compiling saying "Debugging information for 'shaderexample.exe' cannot be found or does not match. Binary was not built with debug info" (whatever that means to us noobs ) so naturally i try running it in debug mode and get the same prob, my noobish skills suggest i delete shaderexample.exe and try again, this time it compiles and runs but the program stops and says "Error loading camera effect 'bloom.dbs'" - click ok and the program closes.

I played around with the project settings and see it builds in the /bin dir, i see you've got the bloom.dbs file there and everything else so it should be working eh?

Help me lol
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 11th Feb 2008 13:58
I decided to start a new project for what might be a game (i get bored easy) and this is what i've got so far.



When I run it, the cube doesn't show. But if i remark the dbSetEffectOn function the cube shows up. I've got the textures and .fx file in the right dir, can you see what i've done wrong?

ps. ignore my noob coding
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 11th Feb 2008 13:59
Quote: ""Error loading camera effect 'bloom.dbs'""


That is exactly the same problem I'm getting. So it must just be DarkShader and GDk in general, and not just Vista.

As for the compile error it may just have been a problem with write protection or something?


Maybe if any of the TGC team can shed any light on this, I would be very grateful indeed

Projects Started: 20
Projects Completed: 0
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 11th Feb 2008 14:06
Oh, the test.fx is just the blend shader from darkshader. The 2 jpg's are in the right folder with the shader and the app. That gave me idea, moved around a few files and got the shaderdata.dll from darkshader and stuck it in the project folder.. still doesn't show the cube.
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 11th Feb 2008 14:07
I would be too, as they said it now works with the gdk and I went out and bought it and dark physics.. now i have to try and get them examples to compile lol gettin some errors there too
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 11th Feb 2008 19:12
Dark Shader doesnt appear to be working with GDK, vista or no. Possiably its working for users who are still using visual c++ 2005 express and NOT for 2008 users? Any 2005 users confirm its working or not for them please?

Bit disapointed at not being able to use my new toy.

Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 12th Feb 2008 03:08
Lmao!!! i got it working just by stuffing around. But i found some important things out....

Ok, the prob was NOT with me, wasn't my fault this time lol. The problem was that the default blend shader that comes with darkshader works fine IN darkshader. But once you save it out as a .fx file you need to open it up and change the;

PixelShader = compile ps_1_1 BlendPS( );

to;

PixelShader = compile ps_2_0 BlendPS( );

And then run it and it works fine.

Also! you DO NOT need to include shaderdata.h or the library in your project. You DO NOT need to use the function dbShaderDataStart() in your program. Just do this;



And it works. Don't ask me why I'm a noob and ain't got a clue

This works with the blend shader, i haven't tried any others at the moment. But if it works then atleast I can now use dark physics and shaders together http://forum.thegamecreators.com/?m=forum_view&t=123744&b=22&p=0
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 12th Feb 2008 10:08
@Sephnroth, surprised you asked that. Dark Shader and everything related work fine at latest vs2005 version.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 12th Feb 2008 11:07
Ashy,


The problem is with GDK.

I really want to love this library but it keeps stabbing me in the back with bugs, Judas.

Projects Started: 20
Projects Completed: 0
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 12th Feb 2008 13:28
Quote: "Dark Shader and everything related work fine at latest vs2005 version."



Where did you get the vs2005 version from?

Projects Started: 20
Projects Completed: 0
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 12th Feb 2008 18:28
@Morcilla: why surprised? I didnt have DarkSHADER when using vc2005. I bought Dark Shader a few weeks after upgrading to 2008 and porting all my code across, uninstalling the old IDE so I had no way to test it with 2005.

Finding out wether or not dark shader is STILL working with 2005 for 2005 users lets me know if a lib portibility issue and also tells Mike what he needs to fix

Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 13th Feb 2008 00:01 Edited at: 13th Feb 2008 00:04
Quote: "Where did you get the vs2005 version from?"


Quite a few of us bought it when it was for sale...

I have vague plans for World Domination
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 13th Feb 2008 01:21
Quote: "Quite a few of us bought it when it was for sale..."



Me included, and the commercial license none-the-less.

But as far as I'm aware DarkShader doesn't work (fully) with either VS2005 or VS2008. I have tried both, but obviously if somebody else has got it working then I must be missing something.

Projects Started: 20
Projects Completed: 0
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 13th Feb 2008 10:56
@Sephnroth, just a way of talking. Test it yourself then, you must use DGDK 120307.

@monotonic, I've tested all the shaders and so that come with DarkShader, and -all work fine- using that DGDK version.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 13th Feb 2008 13:21 Edited at: 13th Feb 2008 13:25
Morcilla,

Yeah, I'm definitely missing something then! Seems strange though that the VS2005 update works with DarkShader (fullscreen) but the VS2008 version does not.

The object shaders work, but you have to alter the shader versions inside the .fx file to 2_0 as opposed to 1_1 etc..


Edit: I don't suppose you could post a working project which uses the bloom effect or any other fullscreen effect please

Projects Started: 20
Projects Completed: 0
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 13th Feb 2008 18:32
Mike Johnson posted the code for the bloom shader, so we can see how things work, here:

http://forum.thegamecreators.com/?m=forum_view&t=99464&b=22

It should be quite straight to run it.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 14th Feb 2008 13:06
Yeah, thats just the example that comes with DarkShader, I have re-installed VS2005 and GDK + the (Beta) upgrade but it still doesn't work. Object shaders work, once you alter the version but fullscreen shaders just don't!


I'm running Vista (32 bit) what OS you running?

Projects Started: 20
Projects Completed: 0
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 14th Feb 2008 15:03
Think thats weird, right now i have a tree image showing up in a shader that comes from dbSetCameraToImage(), and i've commented out every single line to do with the tree. And get this, the image was never ever ever loaded using gdk commands, its mapped to a tree in 3d max and exported as a .x file so i don't have to load it, just the object. I've moved the directory that holds the tree and the images and it still shows up. Its seriously a pain in the butt cos i don't know why it's happening

The shader doesn't reference any images. I've been over the code again and again. I originally had a thought it might be leaked into memory so i restarted and everything. Tis a mystery alright.
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 15th Feb 2008 00:37
Lol i got fed up after afew hours and went to bed for the night, in the morning the tree image was gone. Though it was there before i went to bed. But now instead of a tree its the normal map that gets shown screwy.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 15th Feb 2008 16:05
@monotonic, which beta upgrade are you talking about? No version altering is needed for the effect files. Using XP here, maybe DarkShader doesn't run properly on Vista, but any shader and DGDK should, once VS2005 & the right DirectX9 SDK are installed.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 15th Feb 2008 16:09
The beta upgrade in the order history (v 120307).

I have DirectX SDK August 2007, I think it may well be a Vista thing.

Projects Started: 20
Projects Completed: 0
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 15th Feb 2008 16:12
Yep, ok that should be fine then. I realize now that I've tested my (compiled) DGDK project and shaders on Vista, but none of them were full-screen ones, so as you say there is a chance of being a Vista related issue.

Login to post a reply

Server time is: 2024-11-20 01:23:22
Your offset time is: 2024-11-20 01:23:22