MediusEcho / ParticleHats

Customizable particle plugin
https://www.spigotmc.org/resources/particlehats.1007/
GNU General Public License v3.0
14 stars 3 forks source link

Custom Particle Types rendering with pink or black background #20

Closed NagisaStreams closed 3 months ago

NagisaStreams commented 3 months ago

I looked into the types of extra effects that the plugin comes with as a base, and I can tell they all use a pink background. If I use the pink background for my image, it puts it in-game. if I do not put a background, I get a black background. If I am missing something please let me know, I just want to make a logo float above the player.

This is on version v 4.5.0 on 1.20.4

Initial Image (Downscaled) ZPLOGO

Attempted Edit zppixel3

Ends up looking like this. 2024-06-10_16 40 22

Version without the pink: 2024-06-10_16 41 16

MediusEcho commented 3 months ago

It looks like there might be some variations in the pink color. I recreated the image using pink (255, 0, 255) and it works.

before_after

NagisaStreams commented 3 months ago

I went and tried editing it again to 255, 0, 255 and got the same result. Sorry if I'm just missing something.

EDIT: Some of the white wasn't all completely white. I went and fixed this, and it did not fix the issue. I cannot find any pink not being the same color. If I paint bucket the background, it selects every pixel except the white.

2024-06-10_20 53 37_2

from zptest4

Here is the image in an editor showing it is 255, 0, 255 (bottom right) image

MediusEcho commented 3 months ago

Inspecting some of the pixels in Gimp shows that the background color is not all uniform, there are pixels that range from (254, 0, 255) to (255, 0, 254). I used Gimp's Select by Color tool with a 0 threshold to outline the pixels that don't match.

gimp_select_by_color

NagisaStreams commented 3 months ago

Guess the editor I'm using is just bad. Thank you I will try again when I get home.

NagisaStreams commented 3 months ago

I eventually got it to work by using Gimp and manually checking each pixel. Thank you for all the help!