Background made of triangles or squares
Hi,
I am making some game and I want to fill my background over time like in next picture:
So, when user taps the screen I want to start filling my background from inside out with squares different color each. I tried solution where I made an array of images but it is too heavy for GPU. Does anyone know solution.
Thank You, Sasa G
you could write an algorithm that generates the mesh along with vertex colors. this way it's cpu and one draw for the gpu. only pushing the updated mesh data every time would increase in performance cost, but you could then break it down into meshes of let's say 64 triangles each.
Answer by Thomas-Hawk · Dec 14, 2016 at 09:53 AM
It might be tricky to accomplish without that being too GPU intensive, no matter how you go about it. I know there is movie texture support, not sure how much better that is than an image array though.
Someone online recommended someone with a similar question might look here: https://www.assetstore.unity3d.com/en/#!/content/5141
For something in that project regarding procedurally animated"Fractal Geometry" that could be used for a 2d background
Answer by Xonatron · Oct 26, 2020 at 12:38 AM
https://www.assetstore.unity3d.com/en/#!/content/5141 no longer loads. Do you know what asset this was, or if it still exists?
Your answer
Follow this Question
Related Questions
Scrolling my background Unity 5 0 Answers
Unity Android APP only in background 0 Answers
How do I make a background Image on separate camera from main? 0 Answers