Results 1 to 10 of 42

Thread: pascal and learning 3d

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    pascal and learning 3d

    Hi guys. I'd like to make a 3D game in Lazarus. I don't know opengl yet but that's one of reasons for making it 3d. It's a voxel based game so I recon I don't need sophisticated 3d engine, just some painless access to opengl surface and I'll figure out how to build and draw those meshes.
    Now, is lazarus any good for this? I'd really like to use pascal for this project but after some searching I've found that most resources are for old 2.1 opengl/ in russian/ won't compile
    Should forget my pascal sympathy and just get back to c++ or is there some working solution that I've missed?

  2. #2
    Hi Laggyluk,
    For learning opengl, I suggest you to take a look into excellent tutorials by NeHe http://nehe.gamedev.net (you can find source files there).
    For an updated opengl header file, go to http://wiki.delphigl.com/index.php/dglOpenGL.pas/en

    EDIT: NeHe has examples in many languajes, pascal is one of them, the dglOpenGL header is ready for delphi and freepascal.
    Last edited by pitfiend; 20-11-2012 at 12:34 AM.

  3. #3
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    here http://www.spacesimulator.net/index.php?p=home and here http://www.arcsynthesis.org/gltut/ you will find some more modern info. it is what I am using to figure things out.

  4. #4
    thanks I'll check it out

  5. #5
    OpenGL is in a strange situation now. You really should learn OpenGL 3.2+ today, not OpenGL 1/2. If you do use OpenGL 2, go for VAOs/VBOs and shaders instead of fixed pipeline.

  6. #6
    yeah, I'm after 3.2+ just had problem finding a basic example for pascal. And I didn't, even among those links but managed to craft it from old pascal opengl 2.1 and new 3.2 c++ tutorial.
    btw in c++ stack (or vector? the one with .push() and pop() is used for keeping and traversing matrices hierarchy in a convenient way. There's no vector class in delphi/pascal so what you guys are using instead?

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
  •  
Comodo SSL