Python OpenGL and PyOpenGL - s02e13 - color picking p2

preview_player
Показать описание
Improving the picking functionality by reading back the color values from a custom frame buffer object.

Рекомендации по теме
Комментарии
Автор

Really great tutorials on python and OpenGL!

One thing though...right now the selection cubes are not moving.In your case that is not an issue since they remain in the same place.On my end, even though the code is 1:1 I get the green cube rotating around it's center...and the red and blue rotating around the green cube.

All good but when you click to stop them rotating you have to click on place where the blue(right) cube was before rotation to stop the blue(right) cube, and the same with the red one.
Before ...when the selection was not on this custom frame buffer...I could click on the red cube, even if it was in the (start)position of the blue one and that stopped the red cube.

NikolaNevenov
visit shbcf.ru