|
|
« Reply #296 on: January 30, 2011, 09:18:09 AM » |
|
I GOT MY BONES WORKING PERFECTLY!!!
here's my code on them: http://www.pasteit4me.com/2172005
and here's a sample bone from the tmp: < bone Tail1 3,15 0 -3.9999999899e-06,0.0,-0.427565008402 0.0,0.0,-90.0 1.0,1.0,1.0 1.0,0.0,0.0,0.0|0.0,1.0,0.0,0.397000014782|0.0,0.0,1.0,-0.301451027393|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.0|-0.0,1.0,-0.0,-0.397000014782|0.0,-0.0,1.0,0.301451027393|0.0,0.0,0.0,1.0 >
the format: < bone bone_name parent,child(grid) is_connected(bool) locX,Y,Z rotX,Y,Z scaX,Y,Z bind inv_bind >
EDIT: oh yea... the is_connected (CONN) var doesn't work right :/
how could I set that accordingly??
EDIT2: I think I might have an idea:
if parent < (0-1): CONN = 0 else: CONN = 1
EDIT3: that worked perfectly here's pachi's bone structure in blender:
you can compair it to these:
< bone Pachirisu 0,0 1 0.0,0.0,0.0 0.0,0.0,0.0 1.0,1.0,1.0 1.0,0.0,0.0,0.0|0.0,1.0,0.0,0.0|0.0,0.0,1.0,0.0|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.0|-0.0,1.0,-0.0,0.0|0.0,-0.0,1.0,0.0|0.0,0.0,0.0,1.0 > < bone Origin 1,1 1 0.0,0.0,0.0 0.0,0.0,0.0 1.0,1.0,1.0 1.0,0.0,0.0,0.0|0.0,1.0,0.0,0.0|0.0,0.0,1.0,0.0|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.0|-0.0,1.0,-0.0,0.0|0.0,-0.0,1.0,0.0|0.0,0.0,0.0,1.0 > < bone Waist 2,2 1 0.0,0.397004008293,0.12611399591 0.0,0.0,90.0 1.0,1.0,1.0 0.0,-1.0,0.0,0.0|1.0,0.0,0.0,0.397004008293|0.0,0.0,1.0,0.12611399591|0.0,0.0,0.0,1.0 0.0,1.0,-0.0,-0.397004008293|-1.0,0.0,-0.0,0.0|0.0,-0.0,1.0,-0.12611399591|0.0,0.0,0.0,1.0 > < bone LThigh 3,3 1 4.80000016978e-05,-0.285930007696,-0.0578869991004 -180.0,0.0,-90.0 1.0,1.0,1.0 1.0,-0.0,0.0,0.285930007696|0.0,-1.0,0.0,0.397052019835|0.0,0.0,-1.0,0.068226993084|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,-0.285930007696|0.0,-1.0,-0.0,0.397052019835|0.0,-0.0,-1.0,0.068226993084|0.0,0.0,0.0,1.0 > < bone LFoot 4,4 1 0.0,0.271604001522,0.0 0.0,0.0,0.0 1.0,1.0,1.0 1.0,0.0,0.0,0.285930007696|0.0,-1.0,0.0,0.125448018312|0.0,0.0,-1.0,0.068226993084|0.0,0.0,0.0,1.0 1.0,0.0,0.0,-0.285930007696|0.0,-1.0,-0.0,0.125448018312|0.0,-0.0,-1.0,0.068226993084|0.0,0.0,0.0,1.0 > < bone RThigh 3,5 0 4.80000016978e-05,0.285930007696,-0.0578869991004 0.0,0.0,-90.0 1.0,1.0,1.0 1.0,0.0,0.0,-0.285930007696|0.0,1.0,0.0,0.397052019835|0.0,0.0,1.0,0.068226993084|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.285930007696|-0.0,1.0,-0.0,-0.397052019835|0.0,-0.0,1.0,-0.068226993084|0.0,0.0,0.0,1.0 > < bone RFoot 4,6 1 0.0,-0.271604001522,0.0 0.0,0.0,0.0 1.0,1.0,1.0 1.0,0.0,0.0,-0.285930007696|0.0,1.0,0.0,0.125448018312|0.0,0.0,1.0,0.068226993084|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.285930007696|-0.0,1.0,-0.0,-0.125448018312|0.0,-0.0,1.0,-0.068226993084|0.0,0.0,0.0,1.0 > < bone Spine 3,7 0 0.243059143424,0.0,0.0 0.0,0.0,0.0 1.0,1.0,1.0 0.0,-1.0,0.0,0.0|1.0,0.0,0.0,0.639819025993|0.0,0.0,1.0,0.12611399591|0.0,0.0,0.0,1.0 0.0,1.0,-0.0,-0.639819025993|-1.0,0.0,-0.0,0.0|0.0,-0.0,1.0,-0.12611399591|0.0,0.0,0.0,1.0 > < bone Head 4,8 1 0.460072994232,0.0,0.0 0.0,0.0,-90.0 1.0,1.0,1.0 1.0,0.0,0.0,0.0|0.0,1.0,0.0,1.09989202023|0.0,0.0,1.0,0.12611399591|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.0|-0.0,1.0,-0.0,-1.09989202023|0.0,-0.0,1.0,-0.12611399591|0.0,0.0,0.0,1.0 > < bone LEar 5,9 1 0.433147013187,1.21945202351,-0.0354570001364 0.0,0.0,88.0054321289 1.0,1.0,1.0 0.0348026454449,-0.999320209026,0.0,0.433147013187|0.999320209026,0.0348026454449,0.0,2.31934404373|0.0,0.0,1.0,0.0906569957733|0.0,0.0,0.0,1.0 0.0348077937961,0.999468028545,-0.0,-2.33318710327|-0.999468028545,0.0348077937961,-0.0,0.352185338736|0.0,-0.0,1.0,-0.0906569957733|0.0,0.0,0.0,1.0 > < bone REar 5,10 0 -0.433147013187,1.2194570303,-0.0354570001364 180.0,0.0,-88.0054321289 1.0,1.0,1.0 0.0348026454449,-0.999320209026,0.0,-0.433147013187|-0.999320209026,-0.0348026454449,0.0,2.31934905052|0.0,0.0,-1.0,0.0906569957733|0.0,0.0,0.0,1.0 0.0348077937961,-0.999468028545,0.0,2.33319211006|-0.999468028545,-0.0348077937961,-0.0,-0.352185159922|0.0,-0.0,-1.0,0.0906569957733|0.0,0.0,0.0,1.0 > < bone LArm 4,11 0 0.289499014616,-0.319108009338,0.0859630033374 -180.0,0.0,-90.0 1.0,1.0,1.0 1.0,-0.0,0.0,0.319108009338|0.0,-1.0,0.0,0.929318070412|0.0,0.0,-1.0,0.212076991796|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,-0.319108009338|0.0,-1.0,-0.0,0.929318070412|0.0,-0.0,-1.0,0.212076991796|0.0,0.0,0.0,1.0 > < bone LHand 5,12 1 0.0,0.0,-0.28024199605 0.0,0.0,0.0 1.0,1.0,1.0 1.0,0.0,0.0,0.319108009338|0.0,-1.0,0.0,0.929318070412|0.0,0.0,-1.0,0.492318987846|0.0,0.0,0.0,1.0 1.0,0.0,0.0,-0.319108009338|0.0,-1.0,-0.0,0.929318070412|0.0,-0.0,-1.0,0.492318987846|0.0,0.0,0.0,1.0 > < bone RArm 4,13 0 0.289499998093,0.319108009338,0.0859630033374 0.0,0.0,-90.0 1.0,1.0,1.0 1.0,0.0,0.0,-0.319108009338|0.0,1.0,0.0,0.929319024086|0.0,0.0,1.0,0.212076991796|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.319108009338|-0.0,1.0,-0.0,-0.929319024086|0.0,-0.0,1.0,-0.212076991796|0.0,0.0,0.0,1.0 > < bone RHand 5,14 1 0.0,0.0,0.28024199605 0.0,0.0,0.0 1.0,1.0,1.0 1.0,0.0,0.0,-0.319108009338|0.0,1.0,0.0,0.929319024086|0.0,0.0,1.0,0.492318987846|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.319108009338|-0.0,1.0,-0.0,-0.929319024086|0.0,-0.0,1.0,-0.492318987846|0.0,0.0,0.0,1.0 > < bone Tail1 3,15 0 -3.9999999899e-06,0.0,-0.427565008402 0.0,0.0,-90.0 1.0,1.0,1.0 1.0,0.0,0.0,0.0|0.0,1.0,0.0,0.397000014782|0.0,0.0,1.0,-0.301451027393|0.0,0.0,0.0,1.0 1.0,-0.0,0.0,0.0|-0.0,1.0,-0.0,-0.397000014782|0.0,-0.0,1.0,0.301451027393|0.0,0.0,0.0,1.0 > < bone Tail2 4,16 1 0.0,0.0990779995918,-0.683709025383 90.0,78.5461120605,90.0 1.0,1.0,1.0 0.0,0.0,1.0,0.0|0.198571234941,0.980048000813,0.0,0.496078014374|-0.980048000813,0.198571234941,0.0,-0.985160052776|0.0,0.0,0.0,1.0 0.0,0.19858622551,-0.980121970177,-1.06409132481|-0.0,0.980121970177,0.19858622551,-0.290577739477|1.00000011921,-0.0,0.0,0.0|0.0,0.0,0.0,1.0 > < bone Tail3 5,17 1 1.09466505051,0.0449969992042,0.0 0.0,0.0,-2.63988900185 1.0,1.0,1.0 0.0,0.0,1.0,0.0|0.153216540813,0.988122165203,0.0,0.757546246052|-0.988122165203,0.153216540813,0.0,-2.04904913902|0.0,0.0,0.0,1.0 0.0,0.153237894177,-0.988259851933,-2.14107775688|-0.0,0.988259851933,0.153237894177,-0.434660553932|1.0,-0.0,0.0,0.0|0.0,0.0,0.0,1.0 > < bone Tail4 6,18 1 1.18681299686,0.0,0.0 0.0,0.0,12.5423269272 1.0,1.0,1.0 0.0,0.0,1.0,0.0|0.364133238792,0.931247830391,0.0,0.939385652542|-0.931247830391,0.364133238792,0.0,-3.22176527977|0.0,0.0,0.0,1.0 0.0,0.364200443029,-0.931419670582,-3.34294033051|-0.0,0.931419670582,0.364200443029,0.29840606451|1.0,-0.0,0.0,0.0|0.0,0.0,0.0,1.0 >
my UD'd bones code: http://www.pasteit4me.com/2165009
|
|
« Last Edit: October 06, 2022, 05:31:14 PM by DarkPikachu »
|
Logged
|
|
|
|
|