Thanks for your contribution. Just tried out your sample, they are nice. How can I use opengl within my lazarus UI program? I want to embed such an opengl window inside a TPanel, and in its Paint method, do the opengl rendering. Is that possible? How? Dennis