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.

Newcomers DBPro Corner / A fullscreen shader adjuster

Author
Message
CSGames94
16
Years of Service
User Offline
Joined: 27th Dec 2007
Location:
Posted: 20th Sep 2008 23:16
How would you make buttons that allow you to ajust fullscreen effects in-game.
wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 24th Oct 2008 15:36
What do you mean ? You want to switch window into fullscreen ?

Try: set window off: set display mode 1024,768,32 for example

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 26th Oct 2008 23:50 Edited at: 26th Oct 2008 23:50
With my extremely limited shader knowledge I'd have to say something along the lines of SET EFFECT CONSTANT FLOAT or SET EFFECT CONSTANT VECTOR would do the trick, but you really need to know the parameters of the shader (and thus it depends on the shader you are using.)

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 28th Oct 2008 15:50 Edited at: 28th Oct 2008 15:51
The question was about MAKING BUTTONS.

You could make two small planes, objects 200 and 201 say, place them on screen, and use PICK OBJECT to check whether they had been "picked", i.e. clicked on.

If object 200 was picked reduce the effect constant by a small amount, and if 201 was picked increase the effect constant. If neither - well don't change the effect constant.

However, you are using a full-screen effect so PICK OBJECT might just pick the screen quad. I haven't got DBP handy here so I can't check for you. Could you be more specific about the kind of full-screen effect you are trying to use? Some simple code would help.

Edit Just noticed the original posting date. Oh well ...

Login to post a reply

Server time is: 2024-11-25 16:47:46
Your offset time is: 2024-11-25 16:47:46