Solved

When We Create a Sprite, We Usually Completely Replace Pixel α\alpha

Question 32

Essay

When we create a sprite, we usually completely replace pixel values by those in the sprite. Suppose, however, we wish to replace pixel values by a combination with weights α\alpha from the original background, plus (α1)(\alpha-1) from the sprite, where α\alpha is in [0,1][0,1] .
State how you could do this, using only LOGICAL operators and an ADD.
For this question, assume the following: (1) You already have a sprite SαS_{\alpha} which has the character's colors all multiplied by the factor α\alpha , and black outside the character;
(2) You already have a second image of the (entire) background, already multiplied by (1α)(1-\alpha) , called B1αB_{1-\alpha} .
Answer:

Correct Answer:

verifed

Verified

Let the Mask blured image be 0 inside the character,...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions