Results 1 to 10 of 179

Thread: nxPascal

Hybrid View

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

    nxPascal

    I'm in process of renewing my game engine, started as Next3D here:
    http://www.pascalgamedevelopment.com...hp?5722-Next3D
    Next3D was reserved name even though i don't think it was at 2007. Anyway nxPascal hit no search results.

    nxPascal is a free game engine that tries to remain lightweight and portable. It is compilable under latest Lazarus on possibly all operating systems, and at least Delphi 7. So far this covers:
    - 2D and 3D OpenGL graphics.
    - Demos on most features, for both Lazarus and Delphi.
    - 2D, 3D and much of gaming supporting math.
    - Particle engine.
    - Pathfinding with own rough but fast algorithm.
    - Network class supporting TCP and UDP.
    - Optional sound wrappers for OpenAL and BASS.
    - Class for handling and rendering a user interface with buttons, listboxes etc.

    Basically, they are all building blocks, separate units. You might choose to just want to use part of the features presented here, if you wish to use another graphics engine or something else. nxGL supports custom window creation, so you can do all that different way, but still being able to use even graphics features of this engine.

    Project home: https://github.com/Zaflis/nxpascal

    Old links:
    code.google.com http://code.google.com/p/nxpascal/
    Change log: http://code.google.com/p/nxpascal/source/list
    Downloads: http://code.google.com/p/nxpascal/downloads/list
    Wiki-help: http://code.google.com/p/nxpascal/wiki/Introduction
    Attached Images Attached Images
    Last edited by User137; 13-05-2015 at 06:42 PM.

  2. #2
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    I was wondering what happened to your site and if you had decided to move on to something else. I was considering adapting your gui to a framework I've been working on for a while this would require some big changes do to the design I have in mind.

  3. #3
    I suppose these are in good shape again I updated all the demos again, there is 5 for each lazarus and delphi.
    nx_src.zip http://www.sendspace.com/file/p9odle
    nx_demos.zip http://www.sendspace.com/file/rqualg

    Texture demo should now look like this:

    With most processes down i got that massive 13000 fps with lazarus compiled version. Delphi got to "over 9000" too, lol.

    So i got the render settings wrapped up with new features SubBlend that can be used for very cool dark flames, and front/back face culling (visibility). New 5th demo is about custom window creation, and basically how you can integrate nxPascal with other graphics libs. That is handled by new compiler directive in nxGL.pas

  4. #4
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    Thanks for sharing, I had a little trouble getting the demos to work. first the version of dglOpenGL you are using would not compile with lazarus/linux. I downloaded the newest version and that fixed that problem. second problem required me to add ReadOpenGLCore to the CreateGlWindow code. I only got about 60 - 120 fps guess my gfx card is too wimpy. I think that more demo's would be quite helpful in getting others to make use of your work.

  5. #5
    Have you a compiled demos archive too ?
    Current (and lifetime) project: FAR Colony
    https://www.farcolony.com/

  6. #6
    Have you a compiled demos archive too ?
    Demos are still working (and i wish to add more of them in the future), but i don't include compiled executables in packages. Would you have an idea for additional demo?

    Finally got myself coding again, and the result is new nxSound.pas
    It is using Noeska OpenAL header, for which i'm not sure how to give proper credit to... It is compiling and running fine with Lazarus and Delphi, like other units.

    It is simplified OOP approach, and its autocreating/destroying itself by just adding nxSound in uses list. Like OpenAL, this supports multiple buffers and sources with 3D positional sound. Buffers and sources are separately stored, essentially letting multiple sources use same buffer, the sound file.

    This is a simple example that plays ding sound:
    Code:
    procedure TForm1.FormCreate(Sender: TObject);
    begin
      sound.AddSource('ding', sound.AddWAV('ding.wav'));
      if nxError<>'' then showmessage(nxError);
    end;
    
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      sound.source[0].Play;
    end;
    In other news GL UI is able to drag its windows with mouse...

    I'll update the engine packages and download links if there is interest to.
    Last edited by User137; 26-06-2011 at 09:17 PM.

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
  •