LOL Math

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Locked
N|K
Posts: 63
Joined: Wed Sep 23, 2009 11:11 am

LOL Math

Post by N|K »

Does anyone find that the engine ignores 'alphaGen const' under a value of 0.10?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Engine limitation?

Post by obsidian »

0.1 = 10% opacity.

It's not that it ignores it, it's just incredibly subtle that you may not see it.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
N|K
Posts: 63
Joined: Wed Sep 23, 2009 11:11 am

Re: Engine limitation?

Post 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
N|K
Posts: 63
Joined: Wed Sep 23, 2009 11:11 am

Re: Engine limitation?

Post 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
N|K
Posts: 63
Joined: Wed Sep 23, 2009 11:11 am

Re: Engine limitation?

Post by N|K »

Success.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Engine limitation?

Post 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.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Engine limitation?

Post 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.
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

Re: Engine limitation?

Post by MKJ »

much like our decimal system dictates
rgoer
Posts: 798
Joined: Sun Aug 17, 2003 7:00 am

Re: Engine limitation?

Post by rgoer »

best troll in the last five years
rgoer
Posts: 798
Joined: Sun Aug 17, 2003 7:00 am

Re: Engine limitation?

Post by rgoer »

seriously, two decimal points, this thread owns
N|K
Posts: 63
Joined: Wed Sep 23, 2009 11:11 am

Re: Engine limitation?

Post by N|K »

rgoer.. I wouldn't be suprized if you weigh over 100Kg.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Engine limitation?

Post by obsidian »

Oooo... burn. Aren't you witty!

Mean mean moderators, locking all our threads.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Locked