SA-MP Forums Archive
texture color - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: texture color (/showthread.php?tid=616128)



texture color - Mister0 - 31.08.2016

I try to color this texture https://textures.xyin.ws/?page=textu...impoolbtm1_128
he is white and I try to make it lightblue I mean this color 0x51AEAEC8
the texture is like this

SetObjectMaterial(CreateObject(...), 0, 8460, "vgseland03_lvs", "swimpoolbtm1_128", 0xFFFFFF);
and I put the color at finale but is invisible not that color,
SetObjectMaterial(CreateObject(...), 0, 8460, "vgseland03_lvs", "swimpoolbtm1_128", 0x51AEAEC;
What can I do?


Re: texture color - Vince - 31.08.2016

Object material colors are ARGB instead of the regular RGBA.


Re: texture color - Marricio - 31.08.2016

This include could be useful for you to convert RGBA to ARGB.

https://sampforum.blast.hk/showthread.php?tid=590770


Re: texture color - Mister0 - 31.08.2016

and what colour is argb -65281 or this 0xffff00ff?
An exemple please? what I need to put to color my texture?


Re: texture color - Marricio - 31.08.2016

pawn Код:
RGBAToARGB(-65281); // returns ARGB as integer



Re: texture color - AbyssMorgan - 01.09.2016

If you need convert decimal to hex
PHP код:
printf("%08x",-65281); 



Re: texture color - Mister0 - 01.09.2016

What is the color for textures? ARGB or RGBA? and what is ARGB and witch of them are rgba? -65231 or 0xffff00
There is not a generator online to convert this color? 0xffff00ff


Re: texture color - Stinged - 01.09.2016

Quote:
Originally Posted by Mister0
Посмотреть сообщение
and what is ARGB and witch of them are rgba? -65231 or 0xffff00
What?

RGBA and ARGB are hex formats

0xRRGGBBAA
0xAARRGGBB

0xFFFFFFFF


AA stands for Alpha, so basically the visibility of the color.