We are developing a program for our studies and now have a problem for a couple of days. The program in general generates a generic terrain using the diamond square algorithm. Now, to make it more user-friendly, we wanted to built something like a "back-step" in history of generation process. To be more precise: We draw every single step while generating a terrain fitting our requirements. If we now, perform this back-step and then make a new forward step based on this old step everything is still fine. But then, if we perform a back-step, the terrain won't be drawn anymore.
The interesting stuff is, that while debugging, it looks like the GPU has every data it needs to draw.
When repeating this process, all terrains that got back-stepped won't be drawn anymore. In addition, we know the data is still alive, because the generation process can continue without any problems.
TBH, I don't print any code in here atm, because it would be huge sequences of code to understand, what is happening.
Has anybody any idea, why something like this can happen in OpenGL?
Aucun commentaire:
Enregistrer un commentaire