Results 1 to 5 of 5

Thread: Poses of a human skeleton

  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Poses of a human skeleton

    Hello there!

    This is my first day as Qt developer and so far I'm very impressed! Thanks for the great libraries, the comprehensive documentation and an awesome GUI designer.

    Anyways. My task is to display a sketch of a human skeleton in different poses on the screen. The user gives joint angles to the software and then the skeleton changes its pose. Since I have no experience in Qt so far, I would like to listen to your advises as to what's the best way to accomplish this.

    It's not a graphical issue. I can just use lines and circles to mark the limbs and the joints. I will need a 3D representation of the skeleton and calculate the positions of the limbs by applying the joint angles to the model using...AffineTransformations? And then I need a 2D projection of the model which then I actually show on the screen. Can I even visualize the 3D model right away and make it turnable by mouse drags? I think you get the picture of what I want. What classes should I be looking into?

    Thanks a lot
    Cruz

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Poses of a human skeleton

    Your problem is more of mathematics.
    Till calculating 2D projection, it will be maths i guess.

    For complex drawings and 3D, even 2D drawings, you have OpenGL to play with

  3. #3
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Poses of a human skeleton

    I can do the math if needed, but I was hoping to find the right classes that will do the work. I looked up AffineTransformation by now and saw that it only supports 2D transformations. I suppose OpenGL is the rigth cue for a start. I need to display little rectangular areas on the screen, that show skeletons in specific poses and those areas need to be drag and droppable too. I just don't quite know where and what to look for to find the right pieces of the puzzle.

  4. #4
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Poses of a human skeleton

    For the 3D representation I would recommend libQGLViewer. It is an excellent library, which simplifies creating an opengl scene. The class Frame "The Frame class represents a coordinate system, defined by a position and an orientation" let's you create a coordinate system for each joint, which can be manipulated in relation to its parent Frame.

    In particular, check out the example Luxo

  5. The following user says thank you to spud for this useful post:

    Cruz (15th January 2009)

  6. #5
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Poses of a human skeleton

    Awesome, thank you! It's the kind of hint I was looking for. And now on to the gory details.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.