Tuggummi
20th November 2003 12:04 UTC
Brightness by Resolution?
Just wondering, i have this background flow & pattern that uses additive blending scope and very small values for color (24 for each channel). The problem is that it looks correct & "full" in my screen size and some small fullscreen sizes (320x240), but higher resolutions tend to be a bit emptier looking, now this can be fixed if i change the brightness of the scope a bit larger.
What i just need to know is that would there be any point at trying to make the brightness of the scope depend on the screen size with W & H. Could there be any problems? Should i just use Width or just Height, or both of them? What about if the resolution the user is using is smaller than mine?
Is there any point at it at all, or should i just stick to the static value and pray that the viewer uses a correct res?
sidd
20th November 2003 12:48 UTC
well, ive never done it to control brightness, but ive used similar ideas before. Just multiplying everything by w*h*0.001 or somthing.
If you were afraid of people using too big or too small res's then just cap the result with min and max's.
eg: brightness=min(max(brightness*w*h*0.001,0.2),0.8)
of course you would do as much as you can of that in /frame.
i hope this is at all what you were talking about.
Tuggummi
20th November 2003 15:32 UTC
Yeah, that's basicly what i mean. Im just wondering will it work on every setting...
I was thinking about 5 minutes later when i posted this a method like this:
bright=(w/mywidth+h/myheight)*halfofthecurrentbrightness
Im guessing this would compare the the users height to my height and same with the width then just multiply that with half-of-the-current-brightness.
hmm... i'll have to test this.
But if there is something utterly wrong with this whole idea, please let me know.
UnConeD
21st November 2003 01:08 UTC
The brightness is affected by the area, so you need to multiply w and h, not sum them.
Zevensoft
21st November 2003 01:50 UTC
Try min(h,w)? The reason for this is to keep the aspect correct, so that if you change the aspect you dont get problems.
UnConeD
21st November 2003 01:53 UTC
Then it'd be sqr(min(h,w))..