Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Alpha flag only between 2.6-100 visible #139829
07/06/07 08:41
07/06/07 08:41
Joined: Nov 2004
Posts: 4
L
LTplus Offline OP
Guest
LTplus  Offline OP
Guest
L

Joined: Nov 2004
Posts: 4
Alpha flag only between 2.6-100 visible

found out that the alpha of an entitity
with a value below 2.5 makes it invisible.

So you can't fadeIN clouds - they are shown
first of all when they reached entity.alpha > 2.5

This is bad for finetuning of skies...

example:

// The Sky
entity the_sky1
{
type = <the_sky02.tga>;
layer = 100; // display above view entities & PANELS with layer 1
view = camera; // same camera parameters as the default view
}

...

the_sky1.x = sky1_temp.x;
the_sky1.y = sky1_temp.y;
the_sky1.z = sky1_temp.z;
the_sky1.transparent = on;
the_sky1.alpha = 0;// 2.6 = SCHWELLENWERT ab dem ENT sichtbar wird
the_sky1.visible = on;

// fadeIN...
while ((the_sky1.alpha < sky1_alpha) && (ltp_v_sky1_on > 0) && (ltp_v_sky_on > 0))
{
the_sky1.alpha += 0.01*time_step;
wait(1);
}

the_sky1 turns up sharp at the_sky1.alpha = 2.6;
because 2.6 seems to be a threshold value

Does anyone know if this is a bug, or is
there a workaround ?

Re: Alpha flag only between 2.6-100 visible [Re: LTplus] #139830
07/06/07 08:47
07/06/07 08:47
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
I have not noticed it, but isn't 2.6 a very low, almost invisible value? Anyway if this happens on your 3D card there's probably no workaround, except maybe for giving your sky an already-transparent alpha channel texture.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1