Ludeon Forums

RimWorld => Mods => Help => Topic started by: CannibarRechter on August 22, 2017, 07:51:24 PM

Title: PNG file renders almost entirely black
Post by: CannibarRechter on August 22, 2017, 07:51:24 PM
Hi,

On a couple of occasions I've had PNG files that have a lot of black in them render so black they're almost a silhouette instead. The first time it happened I tried flipping to a less black item. I'm not sure what's happening here. Can someone with graphics modding skills pretty please drop this texture (attached) in their game and tell me what's happening? Thank you so much.



[attachment deleted by admin: too old]
Title: Re: PNG file renders almost entirely black
Post by: Chicken Plucker on August 22, 2017, 10:40:22 PM
I see something wrong with the .PNG by zooming in, there are some lines that fill the square that hasn't been erased properly, so they look like floating lines in the image. Maybe this has something to do with it?

Also does this clothing piece get affected by textile colors?
Title: Re: PNG file renders almost entirely black
Post by: CannibarRechter on August 23, 2017, 07:19:13 AM
Regarding the colors thing, I think you are onto something there. It's supposed to be an icon for studded leather material. I recall that I set studded leather to very black in the game. So I suppose that in addition to filtering the clothes (which works properly), it's also filtering the icon (the material when it's on the map). Using the zoom mod tool, I can see very faint red in the icon. This jibes. I'll have to play around tonite to see if there is a way to not filter the map icon while properly making the clothes black...
Title: Re: PNG file renders almost entirely black
Post by: Skcuske_Lobuk on August 25, 2017, 04:36:34 PM
Textures in RW tend to be grayish, with the ColorGenerator adding color. Like the tuque or the cowboy hat. Try setting colorGenerator class in your apparel to "<only>RGBA(1,1,1,1)</only>" (pure white) to keep your texture unmodified.
Other stuff use the color of the things they're made of, so if the colorGenerator ignores you, this might be the place to look at.
Title: Re: PNG file renders almost entirely black
Post by: CannibarRechter on August 26, 2017, 09:16:41 AM
BTW, for the record, I was revving up an old mod where I'd set the item's color to very black. So it was a problem of my own making. It had been so long I had forgotten that I'd done that. This explains why it was just the one item having the problem.