Projects
AGS Engine | Graphics | Ags won't draw inventory crosshair sprites if they are 32bit |
---|---|---|
Calin Leafshade | AGS seems to ignore drawing the crosshair sprite on an inventory item when mouse.Mode == eModeUseinv if the cross hair sprite given in the General Settings has an alpha channel. | |
Crimson Wizard | I am not sure what you mean by "ignore drawing" (whether what I am seeing or not). Upon testing item crosshair sprite both in 3.2.1 and 3.3.0 I observed identical behavior: 1. If crosshair sprite does not have alpha channel, it is drawn correct on both item cursors with or without alpha channel. 2. If crosshair sprite has alpha channel, it is drawn correct on item cursor without alpha channel, but when drawn over item cursor with alpha, it "cuts" a hole where the crosshair colors should be (pixels with alpha = 255). The latter seem to be a result of incorrect blending (I think I saw this bug with gui controls before). EDIT: I also tested crosshair with translucense (0 < alpha < 255 pixels). On items without alpha it is drawn partially correctly, except for that it merges its colors with magic pink background, producing unexpected color hue (although this seem to be a common issue when blending "alpha" with "non-alpha" image). On items with alpha it still cuts a hole, so it happens if pixel alpha is any value > 0. | |
Crimson Wizard | Should be fixed in 3.3.0 beta. |