D
D
Danil2015-12-01 16:15:15
Unity
Danil, 2015-12-01 16:15:15

Generating an array with the output of values ​​​​into a 2D texture, what is the best way to do it?

In the absence of knowledge of programming languages, I use “PlayMaker” in “Unity3D”. I did not figure out how to implement the following in “PlayMaker”.
Purpose: 2D map and its visualization.
The tasks are as follows:
1. An array (x, y), for example, 100x100. Array element values ​​(c, p1, p2), where c (integer), and p1 and p2 are enough values ​​per byte.
2. Random generation of three points not matching in (x, y) in an array with different color values ​​(c).
3. Uniform growth from each of the points of the three sectors of the corresponding color, until all elements of the array (x, y) with values ​​(c) are completely filled. Those. the total sum of the elements of each of the three colors differs minimally.
4. Visualization. Texture output with positions: x(width), y(height) and color c (int). "GUI Label" with texture or texture in plane.
If this is not implemented in “PlayMaker”, then how can this be done with scripts? What and how best to do, specifically?
Sincerely, Daniel.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question