CreateObject darker texture problem
#1

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);
Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)