Page 1 of 1

LOL Math

Posted: Sun Nov 01, 2009 11:37 pm
by N|K
Does anyone find that the engine ignores 'alphaGen const' under a value of 0.10?

Re: Engine limitation?

Posted: Mon Nov 02, 2009 12:22 am
by obsidian
0.1 = 10% opacity.

It's not that it ignores it, it's just incredibly subtle that you may not see it.

Re: Engine limitation?

Posted: Mon Nov 02, 2009 2:23 am
by N|K
I am making a mockup HDR for something and have made 99 squares as small as the editor allows and making each square opacity 99.. 98.. 97 away from the thing that is to look like it glows, and then as soon as I start going under 10% opacity, it gives me a result of something that looks like 80% opacity..

alphaGen const 0.9.9245

Re: Engine limitation?

Posted: Mon Nov 02, 2009 2:34 am
by N|K
Perhaps the engine is parsing it as 90.9245%... If I added a 0 infront would it parse it off as a 9?

alphaGen const 0.09.9245

Re: Engine limitation?

Posted: Mon Nov 02, 2009 2:46 am
by N|K
Success.

Re: Engine limitation?

Posted: Mon Nov 02, 2009 3:23 am
by obsidian
Uhh... that really doesn't make any sense. Numbers are normalized, # / max value.
% values of 0 to 100 = 0.0 to 1.0

0.09.9245 is not a number on any number system. You can't have 2 decimal points in a number.

Quake 3 is probably trimming off everything following the second decimal since it doesn't know what to do with it.

Re: Engine limitation?

Posted: Mon Nov 02, 2009 4:11 pm
by ^misantropia^
obsidian wrote:Quake 3 is probably trimming off everything following the second decimal since it doesn't know what to do with it.
This.

Re: Engine limitation?

Posted: Mon Nov 02, 2009 4:24 pm
by MKJ
much like our decimal system dictates

Re: Engine limitation?

Posted: Mon Nov 02, 2009 10:43 pm
by rgoer
best troll in the last five years

Re: Engine limitation?

Posted: Mon Nov 02, 2009 10:44 pm
by rgoer
seriously, two decimal points, this thread owns

Re: Engine limitation?

Posted: Tue Nov 03, 2009 1:16 am
by N|K
rgoer.. I wouldn't be suprized if you weigh over 100Kg.

Re: Engine limitation?

Posted: Tue Nov 03, 2009 1:23 am
by obsidian
Oooo... burn. Aren't you witty!

Mean mean moderators, locking all our threads.