Results 1 to 5 of 5

Thread: Different rotation for different vertices

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2011
    Location
    Singapore
    Posts
    2

    Different rotation for different vertices

    Would like to find out if it is possible to perform rotation for point a and a different rotation for point b.

    Facing problem because I would like to get my stickman to simulate the walking action.

  2. #2
    V-man
    Guest

    Re: Different rotation for different vertices

    That would require skeletal animation. You either would code a vertex shader that does skeletal animation or you compute the vertices yourself and update a VBO (if you are using VBOs).

  3. #3
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Different rotation for different vertices

    Yes as stated this is skeletal animation but typically it is called skinning, and your bone animations are indexed and used with weighted values by each vertex.

    Look up vertex skinning and bone weights etc.

    A stickman is a very simple case, each stick has its own transformation matrix, essentially a stick man is the precursor to a skin and there's a lot of animation overhead per stick if that's all you're rendering.

  4. #4
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Different rotation for different vertices

    P.S. animation systems that implement this use motion capture or inverse kinematic rigs that artists manipulate to actually animate the motion.

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2011
    Location
    Singapore
    Posts
    2

    Re: Different rotation for different vertices

    thanks guys! will check that out..

    Basically I'm want to use OpenGL to simulate a stickman walking which is very much like the skeletal animation that was mentioned.

    @dorbie: I currently have the rotation values for each stick but when I use glRotatef, all the sticks follow this rotation. So how do I make it so that only the stick I require rotates?

Similar Threads

  1. Rotation of vertices
    By Cucus in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-21-2011, 07:26 AM
  2. Replies: 1
    Last Post: 04-16-2010, 02:59 PM
  3. position of vertices after rotation
    By Madcoretom in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-21-2007, 08:50 AM
  4. Replies: 1
    Last Post: 12-08-2003, 05:04 PM
  5. changing axis of rotation and center of rotation in openGL performer
    By ravishashi in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-08-2003, 04:42 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
  •  
Proudly hosted by Digital Ocean