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.

DarkBASIC Professional Discussion / Shader Problems...

Author
Message
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 26th Apr 2005 07:38 Edited at: 26th Apr 2005 07:39
I am having a very strange problem with a program I am making called DB Dreamer (See: http://forum.thegamecreators.com/?m=forum_view&t=52234&b=8... It is supposed to allow you to create your game levels by position, rotating etc... everything into place. Everything works except shaders. When the shaders are added, whether it be with loading effects, or using special effects like cartoon shading, the object it is applied to looses its texture and appears black. The really strange thing about it is that when the exported code from DB Dreamer is run, the shaders function correctly. I wondered if anyone knows of a bug or problem they have found with shaders, and no it's not my graphics card its an RADEON X800 XT 256mb with the latest drivers. I am using DBP v.5.8!

[center]
Worship Me OR DIE - http://www.ibse.r8.org
dre
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: West Side
Posted: 26th Apr 2005 11:38 Edited at: 26th Apr 2005 11:39
You could try getting a hold of the .fx files and doing set effect on with a texture flag of 0, leaving the current texture in place.
(edit) Sorry, saw that you said whether it be loading effects. Still, try this, maybe you missed it.

AMD Athlon 64 fx-53, 1 gig PC3200 Dual Channel Performance DDR, ATI Radeon X800 XL PCI-E, 74 gig 10000rpm HD, Abit AX8 Motherboard
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 26th Apr 2005 16:15
No, both the actual code that is run and the exported code has the flag to 0, I also tried it with 1. The effect is the same...

[center]
Worship Me OR DIE - http://www.ibse.r8.org
Unjust1
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: Missouri
Posted: 27th Apr 2005 12:38
I have a similar problem when I try using fog with my water shaded. It makes the shader stop working and looks black, but the fog looks great.
Don't know if that will help you any, but it's one thing I have ran into.
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 27th Apr 2005 16:29
Ah hah... I think that could be the problem. I'l have a look into it today!

[center]
Worship Me OR DIE - http://www.ibse.r8.org
DcZee
22
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 27th Apr 2005 23:47
I found that all the shader would do the same things you are describing if my loaded model had been scaled too much. So I tried scaling the object in my modeller, then applying small scale changes in DBPro (less than 200x seemed to work good) and then the shaders started applying properly,..also,..all the vertex shading for the hardware lighting start to work fine to. So I suspect that the problem is with lighting which is calc'd out of existence when you scale an object too much in DBPro.
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 28th Apr 2005 00:53
The scale range in DarkBASIC Dreamer is from 0 to 200 using a track bar. No automatic scaling is applied at startup or when an object is loaded so I dont think this is the problem.

[center]
Worship Me OR DIE - http://www.ibse.r8.org
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 28th Apr 2005 00:56
Ok I've finished running the test on shaders. It seems that fog is the problem. I will just add a question when shaders are used something like "Fog will disrupt shader textures, would you like to switch it off?"

[center]
Worship Me OR DIE - http://www.ibse.r8.org

Login to post a reply

Server time is: 2025-05-28 04:49:19
Your offset time is: 2025-05-28 04:49:19