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

Thread: 3D tutorial or sample

  1. #1

    3D tutorial or sample

    Ok, I've searched around the web a bit, and didn't find what I was looking for. I'd like to find a simple sample application that uses Jedi-SDL to load a given model format (I'm not picky) and displays it to the screen. It would be nice if it used the models animation stuff (bones, keyframes, whatever).

    Finally it would be awesome if it had random land height generation incorporated into it.

    Well documented or with tutorial is a must.

    Anyone know of such an animal?

    Sorry if I used wrong terminology, but I'm not a 3D guy at all

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

    3D tutorial or sample

    Well from what I've been told and to my understanding, you'd have to use the OpenGL libraries bundled with SDL to do this. And OpenGL does not have any loaders or formats that it specifically uses. (Unlike Direct3D and it's X format.)

    You'd have to write the loader yourself using whatever format you feel most comfortable with or find convenient. There are many around though, I'm sure that you'll find on of good use.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3

    3D tutorial or sample

    JEDI-SDL has a MD2 Model viewer , and also Cal3D ( not 100% working ) which uses skeletal animation. Both use OpenGL for rendering. Also there is a random land height generation demo as part of the 3D demos, IIRC. Grab the latest release from http://jedi-sdl.pascalgamedevelopment.com and look through the demos and Cal3D directories.
    <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 =-

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

    3D tutorial or sample

    Ok... what Dom said.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    3D tutorial or sample

    Would that be the latest nightly build link at: http://www.pascalgamedevelopment.com...DI-SDLv1.0.zip

    If so, can you please point out the MD2 loader example? I can't seem to find it at all. I found the NEHE folders, would it be in one of those?

  6. #6

    3D tutorial or sample

    Quote Originally Posted by WILL
    Well from what I've been told and to my understanding, you'd have to use the OpenGL libraries bundled with SDL to do this.
    A slight side topic,believe it or not you can use DirectX 9 with SDL,My InfinitEngine does this. I use SDL to create the window and handle input and then I use DirectX 9 against that

    I can't remember where I saw how to do this, but it is possible.
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  7. #7

    3D tutorial or sample

    Actually, JumpStart can run in either OpenGL or DirectX modes using SDL. Optimizations are in place for both, but you still get better speed results with OpenGl for some reason.

  8. #8

    3D tutorial or sample

    Ok, after quite a bit of Google and Code Search I managed to find an old version of JEDISDL_MDLViewer. Some tweaks of the source and pointing it to the latest version of jedi-sdl (at least the latest according to the site, I think) and it compiles and runs. Problem is, the screen is blank. Nothing, nadda, zilch, zip...

    Any ideas whats wrong, or where the current version of the demos are? I can't seem to get to the SVN and the download I talked about earlier doesn't have anything but NeHe and Cal3D stuff in it.

    Download: http://www.eonclash.com/PGD/ModelViewer.zip

  9. #9

    3D tutorial or sample

    My mistake, appologies for wasting your time. I thought I had included the ModelViewer and the BSP Renderer in this release, but I remember now that I have not had the time to clean up the code for this release. Can you please download this version - http://jedi-sdl.pascalgamedevelopmen...odelViewer.zip
    this includes an Win32 exe which, if you don't pass anything via the command line, should default by loading and playing the Blade animation. Please confirm that this works for you. Be aware that the code is still unclensed , but hopefully it will get you started.

    I did start writing a class wrapper a few years ago that would load a variety of 3D models using OpenGL, but again got distracted and never finished it. There is also an MD5 example that I can dig out if you want to see that one.

    Quote Originally Posted by jdarling
    Problem is, the screen is blank. Nothing, nadda, zilch, zip...

    Any ideas whats wrong, or where the current version of the demos are?
    I have not looked at your code, but my guess is that you have not passed the correct path to the Model directory you want to load via the command line.
    <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 =-

  10. #10

    3D tutorial or sample

    Good to know I'm not crazy .

    Yeah, that version worked just fine. Some more google code searches turned up an interesting result for an MD2 loader though that has animation interpopulation and proper cleanup built in.

    In case anyone wants a sample, I've updated the MD2 loader to work with Jedi-SDL and updated the application to work with the new unit/class.

    Download (same as before) at: http://www.eonclash.com/PGD/ModelLoader.zip

    Hey Dom, it might be worth getting a hold of the deltasoft guys and seeing if you can incorporate some of their stuff directly into Jedi-SDL. As a lot of things they have could be useful and are already public domain.

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
  •