Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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