View Full Version : Rendering to Form or Panel

08-02-2003, 09:08 PM
Can you tell me how to render OpenGL scene to form or panel (ot any VCL component). Some code will be helpfull
Thank you

09-02-2003, 06:11 PM
You might want to have a look at CGLib over at Delphi3D (http://www.delphi3d.net). I've not used it myself, but I think it should do the job. There's an example OpenGL thing that renders to a TPanel over here - the Galaxy Generator (http://dizzarian.com/code/) program. You also need some texture unit from Sulaco (http://www.sulaco.co.za) IIRC.

09-02-2003, 06:47 PM
I asked the same question a long time ago before I started to learn OpenGL and after I saw Jan Horns demo's over at sulaco. I asked him how to do things like that and he send me a very nice demo. I'll upload the demo to my website and post the link here (I'll have to use a script otherwise Tripod doesn't allow you to download from my website!).


More information on Jan Horns tutorials can be found on:


10-02-2003, 02:35 PM
Even if we are a german opengl community... have a look at our site, take in the menu "filez" and then the "templates". You will find a VCL template for OpenGL 1.2 . If any problems encounters, feel free to ask here or email me.