Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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