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 / Bloom Shader Not Displaying

Author
Message
Game Master1330
18
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 10th Jul 2012 23:52 Edited at: 11th Jul 2012 19:01
Hey,
I bought Dark Shader and tried to use the bloom (never had much luck with shaders

When i run it, it just shows a black screen and nothing else...

EDIT: I have managed to narrow it down to the camera number... I took the working example and tried to change the camera number in all the commands but it doesn't work for some reason... is Quad.fx specific to a camera number?

This works:


This doesn't:



Any help appreciated

Matt

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Jul 2012 08:46
All I can do is make some random guesses, it would help to see a working example and not just the relevant code.

set vector4 1, width, height, 0, 0
Did you define width and height to be the screen's dimensions?

Did you position the plain object in front of the camera? I think that has to be done in order to see it.

Are you calling update_bloom in your main loop?

TheComet

Game Master1330
18
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 11th Jul 2012 09:46
ive done all that you said (i think quad.fx moves the object, as in the example code which works, there is no moving of the object...

I have managed to narrow it down to the camera number... I took the working example and tried to change the camera number in all the commands but it doesn't work for some reason... is Quad.fx specific to a camera number?

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Jul 2012 13:56
Quote: " I took the working example and tried to change the camera number"


Why not show us the code that works and the code that doesn't? Then we all know exactly what you have tried to do.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 11th Jul 2012 17:16
tagging in >.<

Game Master1330
18
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 11th Jul 2012 19:18
i added in the working code so you can see what i've changed

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Jul 2012 21:22 Edited at: 11th Jul 2012 21:43
Quote: "i added in the working code so you can see what i've changed"


Thanks.

Quote: "This works:"


It doesn't.

Could you fix it before I change it out of all recognition?

Edit

Sorry couldn't resist. I've fixed it. Here's the "working code" I'm using:



Will now check your other snippet.

Edit2

Just looked at your second snippet. When you make a new camera you need to make sure the cameras are numbered consecutively - in other words when you use camera 4, cameras 1, 2 and 3 must exist even if you don't use them. Lee says this is no longer the case but I don't think this is right in all cases (as here). Perhaps this is a side effect of the Dark Shader commands such as set camera effect and sync camera which Lee tends to leave alone?

Whatever the reason this works:

Game Master1330
18
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 11th Jul 2012 22:26
thanks a lot for helping with that its been annoying me for days

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330

Login to post a reply

Server time is: 2026-07-07 15:09:25
Your offset time is: 2026-07-07 15:09:25