texture color
#1

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?
Reply
#2

Object material colors are ARGB instead of the regular RGBA.
Reply
#3

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

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

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

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

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

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)