I need input on a possible bug in v3.5.0
#50
(01-25-2023, 09:59 PM)TerryRitchie Wrote:
(01-24-2023, 03:10 PM)TempodiBasic Wrote: @Terry  a feedback on alpha channel

on the right the demo 5 in which the alpha 0 has been set on _rgb32(0)  (because in my pictures the background to be transparent is black).

_RGB32(0) is not valid. Remember, _RGBA32(0,0,0,0) and _RGB32(0) are not the same. _RGB32(0) returns the value of 4278190080 because _RGB32(0) is actually 255,0,0,0 (11111111000000000000000000000000) 11111111 = Alpha, 00000000=Red, 00000000=Green, 00000000=Blue.

I agree _RGB32(0) and _RGBA32(0,0,0,0) are not the same and they give back different results.

What I am trying to say you is that using a sprite (PNG files) with no already set transparent color (see my sprites made by WPaint) I got the overlapping of sprite and bad collision detect. 
BUT we set the transparent color (alpha) on the background color I get a good working of the code with NO mistakes in collision detection.
SO (imho) this minor aspect of the already or not set the transparent color is relevant for a good working of your demo.
Reply


Messages In This Thread
RE: I need input on a possible bug in v3.5.0 - by TempodiBasic - 01-27-2023, 05:58 PM



Users browsing this thread: 14 Guest(s)