Sure you can do it there, but learning to do it on an AVR is also an excellent exercise in better coding. You could do it with a PC, too, if your just wanting to throw money at it.
Seriously, there's a lot of scope for doing it on an Uno, and no reason not to. If you want to do something with an ESP32 as a learning exercise, that's different, but don't buy a caddy for the trip to the local convenience store.
No, an ESP32 isn't a simplification. Not in any measurable sense I can think of.
yes but how should i then use for loops for exampe moving a led up and down with a delay of 500ms. how would you do that so that the cube still gets rendered?
After that's working, then think about what's going on. You've got multiple loops within your update. Why? loop() is looping, remember.
There are many 'design patterns' you could employ here. Trotting out your final target one facet at a time makes it impossible for me, or anyone else, to pick the 'best', or most appropriate, pattern to accomplish what you want.
Tell us more about the whole scope of your project.
voxel:
at the start i go through every x and y position and randomly select if the led is lit on the top or on the bottom. Then i randomly select a x y pos. again and look if the led is lit at the top / bottom and then "push" the led to the top / bottom one by one.
voxelFillup:
randomly selecting x y pos. and "dropping" a led from the top to the bottom. they stack on top in each collumn and when a collumn is full it blinks 3 times and then the whole collumn "falls" out the bottom.
randomCorner:
it starts with the outlines of the cube lit and then contracts and expands into / from a random corner.
cubeInsideCube:
its basically this in static form:
All of these animations already work and exist. They are running right now on my cube. But the code implementation with the render handling is the thing i want to change.
And the cube[x][y][z] come from the animation handling. either the value is 1 or 0 (lit or off)
Nice. However, we've been working at "See Dick Run" level, while you fail to mention your desire is to write "Moby Dick". It is NOT an inaccurate analogy.
Now that we know where you want to go, and how complex it is, I'd like to see those codes posted. You might actually have reason to move to ESP32, not sure.
I love watching noobs re-invent the wheel. But the clearCube function made me laugh the most. You should also determine the cost of using non constant looping variables.