PDA

View Full Version : Rendering to Form or Panel



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

Alimonster
09-02-2003, 05: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.

TheLion
09-02-2003, 05: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!).

http://members.lycos.co.uk/lionprod/extdl.php?filename=downloads/jan_horn_vcl_star_demo.zip&text=Jan%20Horns%20VCL%20Demo

More information on Jan Horns tutorials can be found on:

http://www.sulaco.co.za/

Phobeus
10-02-2003, 01: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.

Ceyas