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 / Unknown camera commands

Author
Message
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 30th Jan 2014 06:59
I have a shader and an example code that shows how to implement it, it's from Dark Shader.The problem is that there are two unknown commands.They are not included in help files.First is load camera effect and the other is set camera effect.My problem is that i want to use camera for the effect different from camera 1 as it is in the example, but no success.Here is the example code:



Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 30th Jan 2014 11:02
That's most likely the same as first rendering the target camera to a fullscreen-sized image, then rendering a full-screen cube with the "camera" effect and the previously rendered screen, in other words a post process of the entire rendered scene.


"Why do programmers get Halloween and Christmas mixed up?"
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 30th Jan 2014 13:27 Edited at: 30th Jan 2014 13:27
I'm aware how things works, just do not know what refer to what in these lines:



Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Jan 2014 18:02
Could be that you need Dark Shader to even run the examples, those could well be plugin commands.

I am the one who knocks...
Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 30th Jan 2014 19:33
Yes, they are from DarkShader and no, there isn't any documentation that came with that (that I've been able to find at least).
Also I meant to write "quad/plane" up there, not "cube"

A guess from looking at the calls you posted above is that it loads a "camera effect" to ID 1, the 0 may mean that it should use a plane image as opposed to a cubemap but I really have no idea.
The effect (id 1) is then set to camera 1 with a flag of 2. Again no idea what the flag may mean; you can always try changing them around to see what happens.


"Why do programmers get Halloween and Christmas mixed up?"
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 30th Jan 2014 22:23
Did not touch first line i guess it's ok, but i succeeded with the second one.First time i try using different camera not knowing that cameras need to be called/made in order.I tried with camera 10 not having cameras from 1 to 9.Now making for example camera 1,2 and 3.When i use set camera effect 3,1,2 it uses camera 3.So first value is the camera number, second maybe the effect number and i don't know what is 2 standing for but using anything else won't do the trick.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 31st Jan 2014 00:54 Edited at: 31st Jan 2014 00:55
It tells you in the Dark Shader Help file. There used to be a .txt file giving the syntax of the commands but I can't seem to find it right now. I'll post back if I can find it.

Anyway, here's a screenshot of the relevant bit of the Help file:





Powered by Free Banners

Attachments

Login to view attachments
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 31st Jan 2014 16:03
Thank you for this information.GG helpful as always!Hope you find this txt file.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 3rd Feb 2014 14:57
Quote: "Hope you find this txt file."


Thanks for the reminder.

Found it. Don't know why I couldn't find it before.

Attached.



Powered by Free Banners

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-15 20:26:11
Your offset time is: 2025-05-15 20:26:11