Hi all,
what settings would I have to use to consider black as a colour instead of absolute transperancy?
umm…so (0, 0, 0, 0) would mean its all black?
and (0, 0, 0, 0.5) would mean its black, but with semi transperancy
and (0, 0, 0, 1) means its absolute transperant?
thx all team
Since you only want to blend alpha values here, you’d do something like setting the source param to GL_ONE and the destination to GL_SRC_ALPHA, GL_DST_ALPHA or GL_ONE_MINUS_SRC_ALPHA, etc. Play with the alpha blending values.
thx monkeyMan,
heres the parameters that I used, and it works great.
AlphaState as1 = display.getRenderer().getAlphaState();
as1.setBlendEnabled(true);
as1.setSrcFunction(AlphaState.SB_SRC_ALPHA);
as1.setDstFunction(AlphaState.DB_ONE_MINUS_SRC_ALPHA);
as1.setTestEnabled(false);
as1.setTestFunction(AlphaState.TF_GEQUAL);
as1.setEnabled(true);
so basically the standard! :)