SA-MP Forums Archive
CreateObject darker texture problem - 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: CreateObject darker texture problem (/showthread.php?tid=661248)



CreateObject darker texture problem - Ripster - 28.11.2018

So my problem is, when I retexture a platform, it changes the texture to the chosen one, but it also darkens it, giving it an almost like "shadowy", dark texture and not only to the chosen platform but also to some of the other objects' too.. Can somebody help me?

https://imgur.com/a/qoGLMGD

Код:
Platform = CreateObject(11511, -1489.72070, 2617.60132, 69.05655,   0.00000, 0.00000, 0.00000);
SetObjectMaterial(Platform, 0, 11511, "des_nw", "desertgryard256", 0xFFFFFFFF);
SetObjectMaterial(Platform, 3, 11511, "des_nw", "desgrassbrn", 0xFFFFFFFF);
SetObjectMaterial(Platform, 8, 11511, "des_nw", "desgrassbrn", 0xFFFFFFFF);



Re: CreateObject darker texture problem - Ripster - 28.11.2018

I have solved it. '0xFFFFFFFF' change to '0' and everythings fine


Re: CreateObject darker texture problem - ItsRobinson - 28.11.2018

Future reference:

0xAARRGGBB

AA: Alpha (opacity, 00 = invisible | FF = full visible)
RR: Red (00 = no red in the color | FF = full red)
RR: Green (00 = no green in the color | FF = full green)
RR: Blue (00 = no blue in the color | FF = full blue)

If you had set it to
0x00FFFFFF
You wouldn't have seen anything