Registriert: Sa Mai 04, 2002 19:48 Beiträge: 3827 Wohnort: Tespe (nahe Hamburg)
I personally won't suggest anybody components for creating 3d-graphics. Of course, first it seems to be easier to learn, but in fact you learn more about the component itself than about graphic programming itself. So give normal opengl programming a chance and use the headers If you really wanna use some components, I think GlScene are the best you can get in the web. I heard about another ... think it was GlExtreme or something like that. Don't know if it's worth something...
_________________ "Light travels faster than sound. This is why some people appear bright, before you can hear them speak..."
Registriert: Mi Aug 28, 2002 19:27 Beiträge: 568 Wohnort: Chemnitz / Sachsen
i don't think opengl is hard.
if you wrote a basic unit which starts opengl and do some things you never use very often in ONE program than it's easy.
i don't write everytime the whole thing, i use my unit GLBase.dcu/pas and i created a template. so i must click 3 times and then i can edit my new program. it's easier than you would think.
be smart - use opengl.
if you search for glscene docs then look at the projectsite (to find in the linksection of this site [www.delphigl.com] under something like "Bibliotheken" or so)
Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
Since OpenGL is independend of the programming language you use,you can take a look at nehe's Tuts which are used by many people to start with OpenGL.
Also take a look at the redbook (see our downloads),which is THE document for learning OpenGL.
And if you can read german,don't forget our tutorials.And if you don't mind the sloppy translation,then use something like babblefish to translate them into english.
Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
The whole Redbook is about graphics with OpenGL,do I don't know where's the problem.Hopefully you searched for the OpenGL-Redbook and not only for Redbook,as a Redbooks are also used in other fields.
And for the Nehe-Tutorials : As I said,OpenGL is independend of the used programming language,so there's no problem learning it via NeHe's great tutorials (and most of them come with a delphi-port).In C, you write glTranslatef(1.0,1.0,1.0) and in Delphi it's glTranslatef(1,1,1),so there's almost no difference.(And you even can use the 1.0 in Delphi).
Registriert: Di Sep 30, 2003 22:22 Beiträge: 78 Wohnort: irgendwo in den Korridoren der Von Braun
Sorry.. hat geschrieben:
I'm sorry i asked so many times but in red book why there isnt a chapters in graphics there! I think the examples in nehe are in C++
if your red book has something to do with Russia you downloaded the wrong one The OpenGL Programming Guide aka. the Red Book is about nothing else but graphics programming.
The Nehe Tutorials are written in C++ indeed, but since the OpenGL Commands and Variables are identical for Delphi i found it not hard to adapt it to Delphi. At the end of the Tutorials there are usually translations for lots of different programming languages, so you don't have to translate the window handling code to Delphi on your own. As said the OpenGL Commands are same for all languages, e.g:
Code:
glColor3f(1.0,0.0,1.0);
glBegin(GL_QUADS);
glVertex3f(0.0,0.0,0.0);
glVertex3f(0.0,1.0,0.0);
glVertex3f(1.0,1.0,0.0);
glVertex3f(1.0,0.0,0.0);
glEnd();
This code should do exactly the same in C++ like it does in Delphi (Draw a Quad).
Maybe try translate the delphigl.com tutorials with babelfish.altavista.com and take a look at them too, no idea how useful the result will be but its definitely worth a try!
Mitglieder in diesem Forum: 0 Mitglieder und 6 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.