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 SOLUTION for not loading the camera effects (dbs files)

Author
Message
DanW
21
Years of Service
User Offline
Joined: 6th Jul 2003
Location: Boston, MA
Posted: 25th Jan 2010 15:35 Edited at: 25th Jan 2010 15:37
I was having a problem loading the shaders (greyscale.dbs)
when using the dbLoadCameraEffect api.

Here's the problem.

If you do this:
dbShaderDataStart(); <= this will execute ok.
dbLoadCameraEffect("Greyscale.dbs",1,0); <=this will fail and will show the following dialog:
(Error loading camera effect ‘Greyscale.dbs’)

The solution is to open the dbs file and find any references to "compile vs_1_1" and "compile ps_1_1" and change those to "compile vs_2_0" and "compile_ps_2_0"

Thanks to Michael Johnson at TGC for suggesting this fix.

Even though it complains that it cannot find the file, it really should have displayed a dialog that the shader is not a supported version.


Dan.

Login to post a reply

Server time is: 2024-11-20 05:21:40
Your offset time is: 2024-11-20 05:21:40