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

Thread: 3D models with animations

Hybrid View

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

    3D models with animations

    https://www.pascalgamedevelopment.co...dels-in-Delphi

    There's some good question.. what do you people use to animate skeletal models in your games? i'm aware of glscene's smd support, but that's about it, what else is supported and availible, what do you use?
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  2. #2
    Had same question few years back, didn't really find anything usable. In result I've dropped my pascal game coding and moved to Unity/UE4

  3. #3
    I never used skeletal animation, but Castle Engine has skeletal support for both 3D and 2D. May be you should take a look.
    No signature provided yet.

  4. #4
    I've spent a few days researching this, and have actually found quite a lot of support for skinned animations in pascal, but information is scarce and some of it is outdated.:

    GLTF - another masterpiece by bero, i haven't checked this out yet, but it's actively developed and bero is known for his quality and complete work:
    https://github.com/BeRo1985/pasgltf
    https://github.com/KhronosGroup/glTF-Blender-Exporter

    FBX & Collada

    assimp ( collada: animations yes, fbx: animations yes (with some limitations regarding file version, if fails, try autodesk converter to change version, converter is here: https://www.autodesk.com/developer-n...erter-archives ) )
    https://github.com/assimp/assimp/blo...scal/Readme.md ( a 2012 version but has 2016 updates, no clear information how to build a dll / so library, no examples )
    https://github.com/assimp/assimp/wik...knowledge-base
    has a model viewer: http://cms.assimp.org/index.php/viewer - it can help see if your files will work with your project

    X3D (animations: yes), MD3, COLLADA (animations: ? ):
    Castle engine: https://github.com/castle-engine - https://castle-engine.io/features.php#section_data / https://castle-engine.io/vrml_x3d.php
    - from castle engine: https://castle-engine.io/view3dscene.php

    File formats:
    DCal3D "Cal3D" part of jedi - https://master.dl.sourceforge.net/pr...JEDI-SDLv1.zip
    loads DCal3D files (at least it claims to do so), but you will find it hard to find a good working blender or 3dsmax exporter.

    half-life 2 smd:
    tripledashgarlic: http://www.igrodel.ru/ - custom written animation loader, loads half-life 2 smd files.
    glscene: https://sourceforge.net/p/glscene/co...es/GLSceneLCL/ / https://sourceforge.net/p/glscene/co.../GLFileSMD.pas
    glscene supposedly also has md5 support (verify claim that md5 is supported in glscene !! ):

    totally custom:
    3d studio max 7 script exporter to custom file format - complete implementation http://xproger.mentalx.org/export_anim.html
    It seems like a pretty clear case that going for modern GLTF by bero would most likely work best for skeleton animation needs, assimp would be 2nd best choice (provided that library works, it has zero examples).
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  5. #5
    I have to add that bero's gltf loader has SIGNIFICANTLY progressed, and looks like ready for prime time use, it just lacks documentation and more examples:

    https://www.youtube.com/watch?v=i8AOAUP8KsM
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  6. #6
    Which one have I to chose for animated models and few dependencies (more compatibility with mobile devices)?

  7. #7
    Quote Originally Posted by gerdich View Post
    Which one have I to chose for animated models and few dependencies (more compatibility with mobile devices)?
    Very definitely GLTF 2.0, because it will simply become or already is the new open industry standard. See https://github.com/KhronosGroup/glTF...ster/README.md and you can convert COLLADA .DAE and .FBX files and other 3D file formats into GLTF 2.0 files (.GLTF/.GLB, where a .GLB file is a file with the GLTF JSON stub data together with a binary buffer overlay with the actual data as such as vertices, textures, and so on.) with (semi-)official tools.

    More and more software will support GLTF 2.0. for example Windows 10 itself already has native GLTF support since about the Windows 10 3D Creators Major Update (and not only with their WMR VR thing, but also beyond it, for example, Windows 10 can open and show GLTF 2.0 3D models natively with the (at least at me) preinstalled Microsoft 3D Builder UWP app), and furthermore also available at Microsoft Office (at least PowerPoint) and so on. And Facebook also supports e.g. GLTF 3D models in the posts. and so on and so on and so on.

    Either way, GLTF 2.0 will quickly become the dominant 3D file format, I guess.

  8. #8
    Bero this is all really good news!

    I've been (and probably others too) looking for animation capable file format + good pascal support for a really long time, GLTF promises a lot, and looks like really good to use.

    I hope your loader & viewer progress further, i couldn't get it working with freepascal yet (not sure what the problem is, i reported it on github)

    Can your gltf system use separate models for animating skeletons? like, have 1 gltf model to store all the different animations, and 10 other different models which are animated with those animations?

    What about partial animations - playback more than 1 animation at a time (on separate bones - example aim animation + combining different straight + strafe walking animations ), and manual bone override / transform for IK + ragdoll?

    I know it's a lot of questions but your work always gets me really excited, your projects are exactly what i need for my games / projects.
    Last edited by JernejL; 30-08-2018 at 09:23 AM.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  9. #9
    First of all, GLTF 1.0 is not compatible with GLTF 2.0, so don't try to load GLTF 1.0 models with PasGLTF, but really only GLTF 2.0 models, like with the other GLTF loaders from the C/C++ ecosystem also now as well, GLTF 1.0 is simply obsolete now, since GLTF 2.0 exists. At least my (now fixed) PasGLTFViewer FPC build has no problems to load GLTF 2.0 models, so I guess, that you tried to load a GLTF 1.0 model and not a GLTF 2.0 one.

    PasGLTF is already completely GLTF 2.0 base-spec-core feature-complete, minus non-spec-core extensions such as the Draco compression extension, in other words, the current further work is only tidying up, optimizing and refining work.

    And the UnitGLTFOpenGL.pas is just only a code template, that means, you yourself must adapt this code template unit to your own needs (for example for multiple animations at the same time) and to your own engine, because a really-universal-requirements loader would be either too overkill or almost impossible, because each engine and application purpose has its own data structures and design concepts, so that the UnitGLTFOpenGL.pas is really just only a code template and not a unit for real use. Only the acutal PasGLTF.pas GLTF 2.0 loader&writer unit is intended for productive use.

  10. #10
    Wow! That's 100 times more than I was expecting. Where is the documentation? Can I use it with converted files from DazStudio, Poser, iClone, Unity3d ...? Is Ultimate Unwrap3D capable to convert? What about the zlib license and the limitations for commercial use? Does it worK with OSX, Android and iOS?

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
  •