Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: OpenGL 3.x with Delphi

  1. #1

    OpenGL 3.x with Delphi

    With the dglOpenGL header up to date ( http://wiki.delphigl.com/index.php/dglOpenGL.pas/en ) and an delphi hello world example for OpenGL 3.x to be found. (i may have overlooked it).
    I decided to write one using http://www.opengl.org/wiki/Tutorial:..._(C%2B%2B/Win) as a guidance.

    So here is the result:
    http://www.noeska.net/downloads/OpenGL3xAPI.zip

    Have fun with it. Of course feedback is welcome here.
    http://3das.noeska.com - create adventure games without programming

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Re: OpenGL 3.x with Delphi

    Very cool! Finally someone using OpenGL 3.x
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3

    Re: OpenGL 3.x with Delphi

    Finished some more examples from http://nopper.tv/opengl_3_2.html

    Here are the examples in delphi: http://www.noeska.net/ogl3xexamples.zip

    Bugs:
    - i dont trust the cubemapping example, or it could be the tga reader flipping textures.
    - the particle system does not work with the the shape textures due to in the fragment shader gl_PointCoord is always 0. But instead it shows red squares as points.
    http://3das.noeska.com - create adventure games without programming

  4. #4

    Re: OpenGL 3.x with Delphi

    Hi! What is better to use? Delphi X which is Direct X or Open GL? ...
    Please Advise... Thanks...
    code your Idea

  5. #5

    Re: OpenGL 3.x with Delphi

    There is no "better" choice, just pick one and see if you like it. DelphiX is really nice for beginners because It has a lot of classes made for you. OpenGL doesn't have that, but its really powerfull too.

    @Noeska: Great, I'll definitaly use those samples to make a new OGL 3.x engine.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  6. #6

    Re: OpenGL 3.x with Delphi

    thanks master
    Can you advice me on what should I focus for?
    I Love Delphi but most game are made of C++ , I hate OOP in C++ that's why I preferred to use Delphi with its PASCAL OOP. But I still want to focus on C++ because most game programming jobs are for C++ Developers.

    Thanks
    code your Idea

  7. #7

    Re: OpenGL 3.x with Delphi

    If I may toss my ten cents:

    C++ is the most common programming language, but it doesn't matter it's the best there is. It's certain that if you're thinking about a job in professional game development, you have to focus on learning C++. I can say it's not the best choice for a beginner.

    On the other hand, if you're ambitious enough, you can try and make a game yourself in Delphi and then look for a publisher. I'm not entirely sure, but you can use Steam as your distribution platform, too. The fact Delphi isn't as popular as C++ doesn't mean that you can't make a game/engine/decent commercial app in it! If you ask me, I believe that Delphi isn't worse than C++, it's even better. But it's one of the controversial topics, so maybe I'll stop adding fuel to the fire.

    If you are still uncertain which development API you should choose, I'd suggest OpenGL. It's fairly simple, the headers are available for Delphi, and it's easy to convert examples written in different programming languages, too. It's the best choice if you want your engine to be cross-platform.

    Uff, I hope I dispelled your doubts.

  8. #8
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Re: OpenGL 3.x with Delphi

    @Chrono: You could make DelphiGL to counter the easy of DelphiX (srry for late reply, I just read the thread)
    NecroSOFT - End of line -

  9. #9

    Re: OpenGL 3.x with Delphi

    While reading OpenGL specs, I noticed this:
    [...] Edge flags and fixed-function vertex processing - ColorPointer, EdgeFlag-
    Pointer, FogCoordPointer, IndexPointer, NormalPointer, Secondary-
    ColorPointer, TexCoordPointer, VertexPointer, EnableClientState, DisableClientState,
    and ClientActiveTexture (section 2.; Frustum, LoadIdentity,
    LoadMatrix, LoadTransposeMatrix, MatrixMode, Mult-
    Matrix, MultTransposeMatrix, Ortho, PopMatrix, PushMatrix, Rotate,
    Scale, and Translate (section 2.12.2; Enable/Disable targets
    RESCALE NORMAL and NORMALIZE (section 2.12.3); TexGen*
    and Enable/Disable targets TEXTURE GEN * (section 2.12.4, Material* [...]
    This was put in the "Deprecation Model" section, which means these functions are marked deprecated. If so, does that mean that, for example, the glLoadIdentity procedure is old, too and shouldn't be used? How do I replace it then?

  10. #10

    Re: OpenGL 3.x with Delphi

    Quote Originally Posted by Brainer
    This was put in the "Deprecation Model" section, which means these functions are marked deprecated. If so, does that mean that, for example, the glLoadIdentity procedure is old, too and shouldn't be used? How do I replace it then?
    Afaik the new way is to send the transformation matrices to the GLSL shaders and using the shaders to transform the geometry.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •