Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / transparency and color

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 4th Jan 2015 01:54
Is it normal behaviour for a 3d object or sprite to turn invisible when the transparency is set to 1 when then changing the colour of the object/sprite? I noticed this with both 3d models and sprites

Hail to the king, baby!
http://davidjohnwheeler.blogspot.co.uk
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Jan 2015 03:14 Edited at: 5th Jan 2015 03:18
I'm not sure about the 3d objects, but it would be normal for the sprite...

http://www.appgamekit.com/documentation/Reference/Sprite/SetSpriteColor.htm

Quote: " iAlpha - The alpha component of the color. The acceptable range is from 0 to 255. When a value of 0 is used the sprite will be invisible. When a value of 255 is used the sprite will be fully opaque."


So, a 1 would be pretty much invisible.

EDIT
After looking here I would be willing to bet that since the range is 255, then the 3d object would be the same as for the sprite...

http://www.appgamekit.com/documentation/Reference/3D/SetObjectColor.htm

So, yeah, it's normal.

Login to post a reply

Server time is: 2024-11-25 14:35:42
Your offset time is: 2024-11-25 14:35:42