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 / Applying Camera Shaders?

Author
Message
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 2nd Feb 2012 19:41
Hi,

Does anyone here know how to apply camera shaders in Dark Basic Professional? How can I apply a "post" camera shader to the default camera?

Thnx!

Monsters are Ready to spill their Dark Sercrets......
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 2nd Feb 2012 21:27
2. ways:
1. set camera effect command
2. Create a plain object, set effect to it, position it in front of the camera every frame

DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 2nd Feb 2012 22:12
Quote: "set camera effect command"

but there is no documentation on that "command"?? (if there is such a command)
Do I need to update to a more recent version of DBP to use that? I am running V1.07 which is installed from the DGS disc.

Monsters are Ready to spill their Dark Sercrets......
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 2nd Feb 2012 23:43
Quote: "but there is no documentation on that "command"?? (if there is such a command)"

there's is such a command, it is highlighted in my editor, should be in your's too. Yes, there's no documentation on it. It was part of dark shader, i believe, and was later added to dbpro.

Quote: "Do I need to update to a more recent version of DBP to use that? I am running V1.07 which is installed from the DGS disc."

I don't know, probably not. If it is highlighted then you hav ethe correct version.

To find out what is the syntax just type it in the editor without parameters and compile, you'll get an error saying whats wrong and that way you will know the needed parameters

DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 3rd Feb 2012 00:55 Edited at: 4th Feb 2012 04:43
Can someone please tell me what I am doing wrong? I have been at this almost 24 hours now.
I am trying to apply a bloom effect camera shader.

I am using the default camera but haven't the slightest idea what is going on as there is no documentation for this particular subject.

Monsters are Ready to spill their Dark Sercrets......
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 4th Feb 2012 11:26
Dark Source has exactly what you are looking for... and much more¡¡¡

revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 4th Feb 2012 13:15
I just looked through my folders and found this:

It has been a very long time since I apparently created this file so I am not sure exactly where the info came from, but I would have to assume here on the forums...
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 4th Feb 2012 20:41
Quote: "Dark Source has exactly what you are looking for."

What is Dark Source?

Monsters are Ready to spill their Dark Sercrets......
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 4th Feb 2012 20:53 Edited at: 4th Feb 2012 20:54
http://www.thegamecreators.com/?m=view_product&id=2072

EDIT

Scroll down while there... for a list of included commands...

DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 4th Feb 2012 22:40 Edited at: 4th Feb 2012 22:43
it says "Camera Effect(1) has no render target information"
Any Ideas?

Monsters are Ready to spill their Dark Sercrets......
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Feb 2012 10:52
Set current camera 0?

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 5th Feb 2012 12:21 Edited at: 5th Feb 2012 12:24
Quote: "Any Ideas?"


Post your code and someone might be able to help.

Edit Have a look at the "BloomWithDarkShader" project in your Projects/Snippets folder.
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 5th Feb 2012 21:35
Quote: "Post your code and someone might be able to help."

i did, download it from my lost post.
here: https://forumfiles.thegamecreators.com/download/2312596

Monsters are Ready to spill their Dark Sercrets......
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 5th Feb 2012 21:49
Quote: "it says "Camera Effect(1) has no render target information""

the texture in a shader needs to have this defined: RENDERCOLORTARGET

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 6th Feb 2012 01:05
Quote: "i did, download it from my lost post"


Sorry, didn't see that .
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 6th Feb 2012 04:36
np

Monsters are Ready to spill their Dark Sercrets......

Login to post a reply

Server time is: 2026-07-10 04:20:13
Your offset time is: 2026-07-10 04:20:13