Raised This Month: $32 Target: $400
 8% 

Strange Angle values


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 03-25-2013 , 06:08   Strange Angle values
Reply With Quote #1

if you decompile model and open smd you see there

PHP Code:
version 1
nodes
  0 
"Bip01" -1
  1 
"Bip01 Pelvis" 0
  2 
"Bip01 Spine" 1
  3 
"Bip01 Spine1" 2
  4 
"Bip01 Spine2" 3
  5 
"Bip01 Spine3" 4
  6 
"Bip01 Neck" 5
  7 
"Bip01 Head" 6
  8 
"Bone01" 7
  9 
"Bip01 L Clavicle" 6
 10 
"Bip01 L UpperArm" 9
 11 
"Bip01 L Forearm" 10
 12 
"Bip01 L Hand" 11
 13 
"Bip01 L Finger0" 12
 14 
"Bip01 L Finger01" 13
 15 
"Bip01 L Finger1" 12
 16 
"Bip01 L Finger11" 15
 17 
"-- L knuckle" 15
 18 
"-- L Forearm twist" 11
 19 
"-- L wrist" 11
 20 
"-- L Elbow" 10
 21 
"-- L bicep twist" 10
 22 
"-- L shoulder outside" 9
 23 
"-- L Shoulder inside" 9
 24 
"Bip01 R Clavicle" 6
 25 
"Bip01 R UpperArm" 24
 26 
"Bip01 R Forearm" 25
 27 
"Bip01 R Hand" 26
 28 
"Bip01 R Finger0" 27
 29 
"Bip01 R Finger01" 28
 30 
"Bip01 R Finger1" 27
 31 
"Bip01 R Finger11" 30
 32 
"-- R knuckle" 30
 33 
"-- R wrist" 26
 34 
"-- R forearm twist" 26
 35 
"-- R Elbow" 25
 36 
"-- R bicep twist" 25
 37 
"-- R Shoulder inside" 24
 38 
"-- R shoulder outside" 24
 39 
"-- Neck smooth" 5
 40 
"-- R Butt" 1
 41 
"-- L butt" 1
 42 
"Bip01 L Thigh" 1
 43 
"Bip01 L Calf" 42
 44 
"Bip01 L Foot" 43
 45 
"Bip01 L Toe0" 44
 46 
"-- L ankle" 43
 47 
"-- L Knee" 42
 48 
"Bip01 R Thigh" 1
 49 
"Bip01 R Calf" 48
 50 
"Bip01 R Foot" 49
 51 
"Bip01 R Toe0" 50
 52 
"-- R Ankle" 49
 53 
"-- R Knee" 48
 54 
"Object04" 2
end
skeleton
time 0
  0   
-0.650078 -0.003373 -2.098142 -0.025844 0.174534 -1.569263
  1   
-2.276935 0.000003 -1.238186 -1.570795 -1.570451 0.000000
  2   1.797145 0.711796 
-0.000002 -0.200908 -0.075746 0.005867
  3   4.118605 
-0.003279 0.000000 -0.194810 0.114453 0.390686
  4   4.118601 
-0.003280 0.000000 -0.203404 0.008063 0.046666
  5   4.118600 
-0.003280 0.000000 -0.199556 -0.067774 -0.276734
  6   4.118531 
-0.003538 0.000000 0.349206 0.482323 0.290725
  7   4.443601 0.000000 0.000000 0.503907 
-0.305667 0.171201
  8   1.426626 0.072724 0.002913 2.958476 
-1.570796 0.000000
  9   
-0.800802 0.526987 1.443650 0.198689 -1.169019 -3.509682
 10   6.384776 0.000000 0.000001 
-1.071375 0.305327 -1.193393
 11   10.242682 0.000000 
-0.000002 0.000000 0.000000 -1.496207
 12   11.375562 0.000000 0.000005 
-3.546463 0.294956 0.038660
 13   0.728679 0.023429 
-1.008292 2.205863 0.711195 0.931192
 14   2.136497 0.000000 0.000001 0.000000 0.000000 
-0.078505
 15   3.115505 
-0.886041 -0.021431 -0.454452 0.000384 0.514841
 16   2.011151 0.000000 0.000000 0.000000 0.000000 1.322753
 17   1.734173 0.000003 0.000000 0.000000 0.000000 0.660685
 18   6.000001 0.000000 0.000000 
-3.199279 0.000000 0.000000
 19   11.375562 0.000000 0.000005 
-2.543555 0.147991 0.129945
 20   10.510129 0.000000 0.000000 0.000000 0.000000 
-2.318898
 21   5.500000 0.000000 
-0.000001 0.323739 0.000000 0.000000
 22   6.551491 0.000000 
-0.000001 -0.634121 0.274864 -0.689831
 23   6.551491 0.000000 
-0.000001 -0.261091 0.178769 -0.287888
 24   0.800810 
-0.519910 -1.443650 -3.095763 0.979466 -0.084995
 25   6.384777 0.000000 
-0.000001 0.192442 -0.193913 -1.082347
 26   10.242681 0.000000 0.000002 0.000000 0.000000 
-2.235344
 27   11.375562 0.000000 
-0.000002 2.850600 0.516280 0.986308
 28   0.728679 0.023429 1.008292 
-1.579592 -0.319086 0.213004
 29   2.136496 
-0.000001 0.000000 0.000000 0.000000 1.282798
 30   3.115505 
-0.886040 0.021431 0.420756 0.316051 0.167189
 31   2.011151 0.000000 0.000000 0.000000 0.000000 2.082008
 32   1.734173 
-0.000001 0.000000 0.000000 0.000000 1.041739
 33   11.389366 
-0.000819 0.158785 2.110044 0.399608 0.367550
 34   6.000001 0.000000 0.000003 2.110044 0.000000 0.000000
 35   10.510130 0.000000 
-0.000001 0.000000 0.000000 -2.688468
 36   5.499999 0.000000 0.000001 
-0.040727 0.000000 0.000000
 37   6.551491 0.000000 0.000001 0.040729 
-0.090815 -0.299118
 38   6.551491 0.000000 0.000001 0.040729 
-0.090815 -0.299118
 39   4.226144 
-0.003201 0.000000 0.173859 0.283673 0.145645
 40   0.000005 
-0.000005 -3.713579 -0.000842 3.212185 -0.458739
 41   
-0.000005 0.000005 3.713579 0.020814 -3.105193 -0.377169
 42   
-0.000005 0.000007 3.619081 0.051383 -3.081070 -0.748032
 43   16.573919 0.000000 0.000000 0.000000 0.000000 
-1.785941
 44   15.128179 0.000000 0.000001 0.003383 
-0.079279 1.039262
 45   5.758665 4.244730 0.000000 0.000000 0.000000 1.570796
 46   15.708952 0.000001 0.000000 0.011303 
-0.040262 0.511482
 47   17.210194 0.000000 0.000001 0.000000 0.000000 
-2.217355
 48   0.000005 
-0.000003 -3.619081 0.021686 3.245314 -0.752397
 49   16.573919 0.000000 0.000000 0.000000 0.000000 
-1.087393
 50   15.128179 0.000000 0.000000 0.041675 
-0.071186 0.474730
 51   5.758665 4.244731 0.000000 0.000000 0.000000 1.570796
 52   15.708952 0.000000 0.000000 0.031108 
-0.049309 0.331151
 53   17.210192 0.000000 0.000000 
[B]0.000000 0.000000 -1.903016[/B]
 
54   2.824548 -5.829052 -0.008822 [B]-0.073160 1.570796 0.000000[/B
Something like this, right.
Those 3 last values are for angles but how to convert those into degrees?

Last edited by .Dare Devil.; 03-25-2013 at 06:09.
.Dare Devil. is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 03-28-2013 , 13:00   Re: Strange Angle values
Reply With Quote #2

Allright, now i know things better and solve it.
0.785398 is 45 degrees
0.785398 * 2 is 90 degrees
...
0.785398 * 8 is 380 degrees
negative values = same rules like positive values.
.Dare Devil. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-28-2013 , 13:08   Re: Strange Angle values
Reply With Quote #3

These values are in radian. You need to convert them in degree.

Degree = Radian * ( 180 / PI )
__________________
Arkshine is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 03-28-2013 , 13:47   Re: Strange Angle values
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
These values are in radian. You need to convert them in degree.

Degree = Radian * ( 180 / PI )
Thank you Arkshine!
.Dare Devil. is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 03-29-2013 , 11:48   Re: Strange Angle values
Reply With Quote #5

Hmm, now i have a problem with pitch angle.
if you set angle then 90 is up and -90 up down..
But in anim smd things are 360 degrees.
.Dare Devil. is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 03-29-2013 , 12:02   Re: Strange Angle values
Reply With Quote #6

Quote:
Originally Posted by .Dare Devil. View Post
Hmm, now i have a problem with pitch angle.
if you set angle then 90 is up and -90 up down..
But in anim smd things are 360 degrees.
Then I would assume the values of the angles range from [-PI, PI], rather than [0, 2PI].
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode