Closed ChrisBCH closed 1 year ago
I think you are seeing a feature here :) My code shows a grayscale animation if it has no input from the script that sends the current state of the CPU. The line of code that you see mixes the color version and the grayscale version. When the last input from the CPU status script arrived less than 5 seconds ago (at least I think it is seconds - might be dimensionless) it shows the color version, between 5 and 10 it gradually mixes them and from 10 seconds onwards it only shows the grayscale version. The variable "age" contains the age of the latest CPU info.
Have you tried running the cpu-udp-sender (or the alternative version linked below that)? Or do want to run it without live input from a CPU? In that case your change in the code should be fine (although you could just set gl_FragColor = outcolor).
Your explanation completely makes sense; I remember that this is described somewhere. Sorry. I don't want to use the cpu-udp-sender or something similar. I have different plans: I would like to use other triggers for the animation on the cube. I am just starting the software development. Furthermore, I also need to make changes so that it works with my 5 panels. Thanks a lot for your quick feedback. No I need to understand the OpenGL mapping...
I am in the process of adapting the project to a cube with 5 64x64 panels. I got the code (partially) running, my only problem is that my (adapted) code only display gray (i.e. no color depending on the CPU temperature). I determined it is not the panels, its the code. If I change the following two lines of code
I get the colors working. I have not yet dived deeper in the code, but this is quite strange to me. Any hint is welcome.
By the way: That is a great project, I will further develop my owen cube with 5 panels. I also 3D-printed the cube panel holders, but using my own design.