Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
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
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
floatv(variable) #182076
02/04/08 19:14
02/04/08 19:14
Joined: Jun 2004
Posts: 62
O
Oberon3d Offline OP
Junior Member
Oberon3d  Offline OP
Junior Member
O

Joined: Jun 2004
Posts: 62
Hi.

I want to pass an alpha valuefrom an entity into a shader so I can modify the outColor.a of a shader and fade it away.

The problem I have is that I can't get my head around the 32 IEEE values thing.
and the floatV and floatr aren't helping me...any ideas?....

Thanks a lot.

Re: floatv(variable) [Re: Oberon3d] #182077
02/04/08 19:19
02/04/08 19:19
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
What is your problem with floatv?

Re: floatv(variable) [Re: Slin] #182078
02/04/08 20:30
02/04/08 20:30
Joined: Jun 2004
Posts: 62
O
Oberon3d Offline OP
Junior Member
Oberon3d  Offline OP
Junior Member
O

Joined: Jun 2004
Posts: 62
my problem is that for the outColor to be fully visible the value required is 31, if i make it 32 it is fully invisible....

I don' know what the reason can be for this.
Anyone can tell me what is the right way to use a variable from a script in a shader?

Is the only way through floatV or floatR?

Thanks a lot.

Re: floatv(variable) [Re: Oberon3d] #182079
02/04/08 20:56
02/04/08 20:56
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
my.skill41 = floatv(my.alpha/100);

Re: floatv(variable) [Re: Slin] #182080
02/04/08 23:35
02/04/08 23:35
Joined: Jun 2004
Posts: 62
O
Oberon3d Offline OP
Junior Member
Oberon3d  Offline OP
Junior Member
O

Joined: Jun 2004
Posts: 62
just tried it.

Works perfectly. Thank you for your help .


Moderated by  Blink, Hummel, Superku 

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