Author Topic: Texture on add-on won't load  (Read 561 times)

I just finished my first add-on, and everything is fine until you pick it up. When I create it with the wrench, it looks fine (the colours are loaded), but when I pick it up, it appears all black. :panda:

Download: http://www.mediafire.com/download/7tnistogdpi8x5x/Weapon_Purpleinator.zip

Someone please tell me what the problem is

By the way, I will create models for people, as that's something I'm decently good at.
« Last Edit: February 07, 2016, 12:10:21 PM by Dexger »

line 274

Code: [Select]
doColorShift = true;
colorShiftColor = "0.118 0.11 0.128 1.000";

change colorShiftColor to the purple color you want
it is RGBA on a 0-1 scale

I took the liberty of translating your purple into RGBA that you included inside the zip

RGBA
651898255
and then divide each number by 255 to get it on a 0-1 scale

RGBA
0.255 0.07 0.384 1

any texture image that is at least partially transparent will blend the color shift color with it, if you do not want to utilize color shift do not use textures that are partially transparent, ie black25 black50 blank etc.

Thanks. It works now