Results 1 to 9 of 9

Thread: [RESOLVED] Rotating Linked Images

Threaded View

  1. #1

    Thread Starter
    Fanatic Member sridharavijay's Avatar
    Join Date
    Sep 2002
    Location
    http://www.vijaysridhara.in
    Posts
    589

    Resolved [RESOLVED] Rotating Linked Images

    Hi ... I am developing a comic software, where the character can be posed.
    The character is built using various body parts, and each body part has the following properties
    1) Location 2) Rotation Point (Joint) and 3) Rotation Angle

    They are each individually set and a default pose is created. (You can check the first image)

    Now I want to allow the user to be able to create a new pose for this. While doing this, I have to rotate attached parts together (For example, if lower arm is rotated, the palm should rotate). Unfortunately I am unable to arrive at the right logic, probably due to my limited capability of thought. Can some one help me here ? I have attached 2nd Image which talks about it (Lower arm is rotated, but the palm is going elsewhere)

    I tried these methods
    Method A:
    1) TranslateTransform to RotLoc of Lower arm,
    2) RotateTransform by new angle required
    3) Draw Lower arm
    4) TranslateTransform to RotLoc of Palm,
    5) Rotate Transform by Palms original angle
    6) Draw Palm
    8) Reset Transform
    Method B
    1) TranslateTransform to RotLoc of Lower arm,
    2) RotateTransform by new angle required
    3) Draw Lower arm
    4) Find out new RotLoc of Palm by the sweep of newangle-old angle using two methods
    newX= oldX+ radius * cos(angle)
    newX= oldY+ radius* cos(angle)
    5) Translate to the newX,newY
    6) Rotate Transform by Palms original angle
    7) Draw Palm

    I failed in both.. Can some one throw light
    Attached Images Attached Images   

Posting Permissions

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



Click Here to Expand Forum to Full Width