Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 1 of 1

Thread: Animating Model with Rotation About Single Axis

  1. #1
    Newbie Newbie
    Join Date
    Aug 2018
    Posts
    1

    Animating Model with Rotation About Single Axis

    I am currently using assimp to import various parts of a robot model but would like to animate/skin it in my OpenGL environment to simulate a range of motion.
    To my understanding, this isn't really supported in OpenGL especially since I am dealing with .obj files.
    I was curious if there was an implementation to support joints that rotate about one axis/point in my model.

    For reference a majority of my code follows this series:
    assimp loading - https://www.youtube.com/watch?v=yQx_...ZYV-6g6n62vet8
    github repository - https://github.com/SonarSystems/Modern-OpenGL-Tutorials

    I've also attached an image of a single joint in my model for visuals. Basically these parts interlock and should rotate within each other
    Any help or direction would be appreciated!

    Edit: My current attempt to implement this comes from http://ogldev.atspace.co.uk/www/tuto...utorial38.html however to my understanding the tutorial assumes you have a mesh that is already boned in some way whereas my .obj is missing this information which lead me to think I should implement my own vertex/bone struct in my code.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot from 2018-07-27 16-14-19.jpg 
Views:	57 
Size:	18.4 KB 
ID:	2818  
    Last edited by BeanJXW; 08-06-2018 at 11:19 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •