Solved

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

Question 4

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 1α1-\alpha from the original background, plus α\alpha from the sprite, where α\alpha is in [0,1][0,1] .
State how you could do this, using only LOGICAL operators and an ADD.
Assume 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;
and also suppose you already have a second image of the (entire) background, already multiplied by (1α)(1-\alpha) , called B1αB_{1-\alpha} .

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents