- Home /
How to merge two images at runtime?
What I want to do is cull the difference between two images and prioritize the first...
Image A is a picture of something. Say, a kitchen. Image B is the same picture, only there's 'items' around the kitchen. More than one easily.
I want to be able to control what players can see in image B based on what they have taken and what they havent. For example, if there are 2 items visible, and I did the work manually (which I dont want), I would have to render out 4 individual images (A, B, B(item 1 gone, item 2 there), B(item 1 there, item 2 gone)). Doing the work manually means the moment I add any more items the workload increases exponentially. I need some kind of automated solution that can cull the difference in the two images back down to image A.
Ideally I want the workflow to decrease to needing only two images regardless of the amount of items in the scene (of course nothing can overlap), and a script handle the difference on it's own. Is what I'm asking make sense?
Answer by Cherno · May 21, 2015 at 06:40 AM
Why not just have an image with no items in it, and then showing or not showing the items by drawin g them on top via UI, OnGUI or whatever?
Your answer
Follow this Question
Related Questions
How to render one object on top of another in URP? 0 Answers
Blacksmith Atmospheric Scattering failing in Unity 5.5 2 Answers
Edge Detection script [Legacy Image Effect] - NOT working on mobile (iOS, Android) 0 Answers
Does anyone know why my rim shader effects water shader? 1 Answer
Texture masked glow post effect 0 Answers