Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/24/26 01:52
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 7,375 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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