Author Topic: Item Transparency  (Read 2876 times)

Ive tried taking the "()" away, using true, false, False/True, changing the color shift values, adding an extra 0 to the end of said color shift values. None of that worked.

What am I missing?


both colorshiftColor = "0 0 0"; and colorshiftColor = "0 0 0 0"; will be completely black and completely invisible.

Also
doColorShift = true;

both colorshiftColor = "0 0 0"; and colorshiftColor = "0 0 0 0"; will be completely black and completely invisible.

Also
doColorShift = true;

I have tried true, each time it comes out black or invisible like you said with the "colorshiftColor". With "doColorShift = true;" alone, it spawns solid.

Here's how colorshift works

Code: [Select]
0 0 0 0 = black invisible
r g b a

If you understand how RGBA works, you need to set the 0s to a decimal number between 0-1.

In RGBA, it's between 0-1, 0-255, or 0-FF. In this case, 0-1.
So if you wanted it to be red: 1 0 0 1
If you wanted it to be red and slightly transparent: 1 0 0 0.9

etc.

When I spawn my item, the transparent pieces on the model stay transparent as they should. But if someone picks the item up, those transparent pieces become solid when the item re-spawns again.

Can anything be done about this, and if so, what?
This might be a hardware issue. What GPU do you have.

Code: [Select]
0 0 0 0 = black invisible
r g b a
Yea I understand how RGB works. As a Graphic Design student it would be silly if I didn't.

My graphics card is an: ATI Radeon HD 4200
It must be a problem with it because I just confirmed that any item with transparent pieces, become solid after re-spawn. At-least I know others shouldn't see it that way.

Yea I understand how RGB works. As a Graphic Design student it would be silly if I didn't.

My graphics card is an: ATI Radeon HD 4200
It must be a problem with it because I just confirmed that any item with transparent pieces, become solid after re-spawn. At-least I know others shouldn't see it that way.
Do others see it that way? Have someone join your server and see if the same thing happens to them.

Also, one of the guns I made does something like this, it's a red rocket launcher (made red using the colorshift of course) and when it is spawned initially, it's bright white and pitch black, then when it's picked up once, it returns to the standard color. It could just be a default code/engine issue that's out of our hands, considering that I have a similar card as you (Radeon HD 4330)
« Last Edit: July 06, 2011, 01:44:06 PM by takato14 »

Do others see it that way? Have someone join your server and see if the same thing happens to them.

This was my initial plan. Ill report back later.
« Last Edit: July 07, 2011, 12:15:32 AM by Mr.Noßody »

Later: No, it was still solid for the both of us, with both True and False colorshift.

I really hope it's not a problem with the game's engine.

I really hope it's not a problem with the game's engine.

May i ask, did you copy paste the code i gave into the script or did you find the lines in the script yourself?

May i ask, did you copy paste the code i gave into the script or did you find the lines in the script yourself?

I replaced the "true" in "doColorShift = true;" with (False/True);, then added "colorShiftColor = "0 0 0";" below it. The colorshiftcolor was not in my original code.

There was initially a doColorShift = false; in my code.

There was initially a doColorShift = false; in my code.

Okay, good.
Change that fasle to true. That should fix it.