Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Jedi-SDL based 3d engines

  1. #1

    Jedi-SDL based 3d engines

    I know that there is a possibility of using sdl with opengl, but as far as i'm concerned you have to abbandon sdl's surface managing (video) functions. Thus, the question is, does any 3d model animation engine exists that is compatible with jedi-sdl and freepascal? By compatibility, I mean stable surface mixing or drawing on pSDLsurfaces etc.

    I'm asking, because I need both sdl 2d api and some 3d api (models) for my project. Since I have some serious artists in my family, I came up with an idea of mixing prerendered, maybe hand painted 2d backgrounds with 3d models. For me it sounds perfect for an oldstyled action adventure game. The point is that models have to fit to background (cell shading?). Ecstatica 2 by Psygnosis looks just awesome, I'd like to do get similar effects (screenshots here: http://www.gamespot.com/pc/action/ec...om_clk=gsimage)

    I belive that everything could be accuired with OpenGL, but still I'd rather use plain JediSDL. So is something what you see at screenshots above is doable with sdl?

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

    Re: Jedi-SDL based 3d engines

    Quote Originally Posted by godbeast
    I belive that everything could be accuired with OpenGL, but still I'd rather use plain JediSDL. So is something what you see at screenshots above is doable with sdl?
    Actually you don't. Trust me.

    I made the transition from SDL 2D to OpenGL 2D just last year. I converted all my 2D stuff that used SDL surface routines to use only OpenGL. Why? Hardware acceleration.

    SDL does not make use of your hardware for any of the effects you will eventually want to partake in; rotation, blending, alpha test or scaling. Sad, but true. SDL surface functions and OpenGL do not play nice together.

    All is not lost though. OpenGL is GREAT for 2D. And everything runs so smooth you'll wonder why you didn't use it before. :thumbup:

    You can keep the rest of your stuff with SDL, which is great for input controls and all the window management, which is what I do. Plus if you want to take advantage of sdl_image, for loading PNG or another format you are able to do this as well.

    If you would rather have a simplified set of draw commands it is possible to make your own set and optimize according to your needs.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3

    Jedi-SDL based 3d engines

    Okay. I suppose I restart again.

    Any good wrappers or rather plain OpengGL?

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

    Jedi-SDL based 3d engines

    Use the ones that come with JEDI-SDL.

    SDL supports OpenGL, you just can't use the SDL graphics functions with it.

    The good thing about this is that OpenGL doesn't do window management for you (at least it's kind of a pain from what I've read) so you will be able to have SDL take care of it for you.

    You're basically not changing anything, but the graphics code. So it's not that bad.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    Jedi-SDL based 3d engines

    GLScene is a VERY good OpenGL wrapper for Delphi. Though its implementation in Lazarus is still a bit lacking. Its useable in Lazarus, just not to the level it is in Delphi.

    http://glscene.sourceforge.net/wikka/HomePage

  6. #6

    Jedi-SDL based 3d engines

    DeathTrucktion - http://deathtrucktion.online.fr/ a 3D car driving game, was written using JEDI-SDL with OpenGL and I believe compiles with FreePascal. Assuming you have the v1.0 from CVS it should compile without too many complaints on just about all platforms where SDL and OpenGL run.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  7. #7

    Jedi-SDL based 3d engines

    You should take a look at the phoenix lib, Andreaz (and a few others iirc) developed some time ago. I believe the general idea was to make it a wrapper for opengl. I'm not sure about it's current state, but I have seen the demos and they were quite impressive.

  8. #8

    Jedi-SDL based 3d engines

    Actually project phoenix is more about 2D games in OpenGL via SDL. Nothing to do with 3D games at all. As far as I know its still being developed on, though while the compo is going I think alot of us are more focused on our entries then on Phoenix .

  9. #9

    Jedi-SDL based 3d engines

    Ah, you're right, my bad.

  10. #10

    Jedi-SDL based 3d engines

    Thanks for your answers so far. Phoenix still looks promising anyway. Demos indeed look great for 2d, if there is a possibility of mixing it with OpenGL routines then Phoenix is what I need.

    Here is strictly what I wanna achive:

    * mostly (around 80% of gameplay) 2d view (sprites as enviroment) plus 3ds models as characters and some parts of enviroment (like trees) on top of them;

    * for rest of gameplay, 2d prerendered (painted) background and 3ds models viewed from apropraite camera. That's way I don't want to prerender character movements as sprites.

    So does any library for pure FPC (not Lazarus) fit these conditions? I belive that it's probably OpenGL

Page 1 of 2 12 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
  •