21.12.2015, 05:32
Quote:
So im just wondering, Im preety new into the game with all of this object material , Ive read few threads and such, but im trying to do is quite simple, turn the object entirely yellow but seems like Im doing something wrong, its somewhat dark
PHP код:
|
Quote:
The format here is ARGB, not RGBA, which means the 00 should come first, that should make it much much less visible, or bright if you wish, I assume. Though.. try not using 00, try something a bit higher.
And also.. I'm pretty sure what you're using is white, not yellow. The color. |
Quote:
A yellow keypad close to the coordinates 0.0, 0.0, 0.0.
pawn Код:
|
However i'm not sure why need to convert it when it's coded directly... I don't think moving the last two alpha value is a hard job. Except you are lazy or will get confused, then using macros like _Zume said will do it.
Anyway if you want to make the wall with yellow color but texture stay same, then use this:
PHP код:
SetDynamicObjectMaterial(TestColor,0,-1, "none", "none",0xFFFFFF00);
If you want to make the wall texture with plain yellow color, then use this:
PHP код:
SetDynamicObjectMaterial(TestColor,0,18646, "MatColours", "yellow",0);
PHP код:
SetDynamicObjectMaterial(TestColor,0,18646, "MatColours", "yellow",0xFFFFFFFF);
There is also a plain white color texture, so you can color it with any color you like, just change the 0xFFFFFF00 (yellow).
PHP код:
SetDynamicObjectMaterial(TestColor,0,18646, "MatColours", "white",0xFFFFFF00);