How to check the Completion scenario for my drawing?
Hi Guys, I am doing a painting like game and am using GetPixels and SetPixels to do it. I am drawing it in a texture. My question is how to check the that i drawn completely in that texture, so that i can show my game to an end. Please anyone give a solution. Am working on this for a week>:((( Thanks in advance.
Answer by Fadayed · Jul 29, 2016 at 03:42 PM
Hey Murali, I have been building a similar game, "cleaning simulation" , one way to do that would be to compare the colors of your textures to each other, I used Getpixel32, for both the original texture and the one i painted, so i ended up with 2 color32 arrays which i could compare to know the percentage of difference between the textures now. However, comparing RGB values is a nuisance unless you are using very different colors, which is not my case, so i have to convert to HSB. hope that this was helpful
Your answer
Follow this Question
Related Questions
Change Texture2D readable flag at runtime (or at least a workaround to do that) 0 Answers
RenderTexture to Texture2D very slowly 0 Answers
Programmatically "Stamping" an image on a Texture2D. 0 Answers
Turning every color in an image to many GameObjects ? 0 Answers
Changing dinamically a texture 0 Answers