About Store Forum Documentation Contact



Post Reply 
Input angle
Author Message
Dynad Offline
Member

Post: #1
Input angle
Hey,

Ive a problem with rotating the input angle.

I have a animateUpdateMatrix(C Matrix &body_matrix) that rotates some bones including the head bone.

Problem is that the angle.x/y isn't updated to the right input angle. So when i push forward its stays at the last known dir.

But what i want is when i rotate the head bone angle/dir that the input angle is updated aswell.

I just have no clue tried loads of solutions but none works properly :(

Who can help me?


Thnx,
~Dynad

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 07-26-2010 12:58 AM by Dynad.)
07-14-2010 03:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Input angle
animateUpdateMatrix is not remembered for next frames, its only applied to current frame and then forget about it

you should just modify angle.x,y manually
07-14-2010 11:22 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #3
RE: Input angle
Yes i thought that was the only solution there is.

But how can u modify the angles manually? just assign the angle.x to the matrix from the head bone or?

And when u modify the angle does it rotate the bones again?

There is always evil somewhere, you just have to look for it properly.
07-14-2010 11:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Input angle
angle.x=value smile
please play around with it
07-14-2010 12:50 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: Input angle
Ok what i try now is to have a camera bone and a head bone.

Camera bone rotates the bones i want.

Head bone is for the controller cause its needed, but it does nothing.

Problem is when i have the camera bone renamed as head, the rotation works, but when i rename it to camera it doesn't work anymore...

Why does the rotation not work anymore after i renamed the bone to camera?

I re-saved the animation as well.

There is always evil somewhere, you just have to look for it properly.
07-15-2010 05:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Input angle
what kind of rotation doesn't work?
the one performed automatically by Game::Chr when looking up/down?
it works only for bone with "head" name

I don't exactly understand, please post some sreens (of skeleton, animations, etc)
07-15-2010 05:39 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #7
RE: Input angle
Ok well maybe this pic shows what my problem is.

What i want is to rotate to camera bone and the camera bone is the parent of both arms. I don't want to rotate on the angle controller but on my own made rotation. The problem was if i rotate the camera bone it doesn't rotate the controller. So what i can do is rotate the x-axis on the camera bone and rotate on the y-axis with the angle controller. But the camera bone doesn't rotate in the x-axis.


Attached File(s) Image(s)
   

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 07-18-2010 02:07 AM by Dynad.)
07-15-2010 06:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #8
RE: Input angle
Ok problem is solved, i translate on bone matrix and works perfect.

There is always evil somewhere, you just have to look for it properly.
07-18-2010 02:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply