Jesse Posted November 21 Share Posted November 21 (edited) I want to parse *.ani files, and i borrowed code from other forums, but still has problem with it. I think the *.ani file's rotation data has something wrong(must be parsing or format wrong). Edited November 26 by Jesse Link to comment Share on other sites More sharing options...
Engineer shak-otay Posted November 21 Engineer Share Posted November 21 (edited) Why can't I get rid of the feeling that people only want results? This way you won't get any answers, imho. I remember having cared for bones (more or less) on Xentax, January 2019. Search there (here's some archives in the forum). Search for Animation 1_mainsequence.smd. Though I have no idea who created it. loop bones 0: (NoeBone:0,Bip01,'Scene Root',-1), pos 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, rot 1: (NoeBone:1,Bip01 Footsteps,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1)), pos 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, rot 2: (NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1)), pos rot 18.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 3: (NoeBone:25,Bip01 Spine,'Bip01 Pelvis',(NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1))), pos 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, rot 18.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 4: (NoeBone:26,Bip01 Spine1,'Bip01 Spine',(NoeBone:25,Bip01 Spine,'Bip01 Pelvis',(NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1)))), pos rot 18.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 5: (NoeBone:13,Bip01 Neck,'Bip01 Spine1',(NoeBone:26,Bip01 Spine1,'Bip01 Spine',(NoeBone:25,Bip01 Spine,'Bip01 Pelvis',(NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1))))), pos rot 18.0, ... Edited November 21 by shak-otay 1 Link to comment Share on other sites More sharing options...
Jesse Posted November 22 Author Share Posted November 22 16 hours ago, shak-otay said: Why can't I get rid of the feeling that people only want results? This way you won't get any answers, imho. I remember having cared for bones (more or less) on Xentax, January 2019. Search there (here's some archives in the forum). Search for Animation 1_mainsequence.smd. Though I have no idea who created it. loop bones 0: (NoeBone:0,Bip01,'Scene Root',-1), pos 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, rot 1: (NoeBone:1,Bip01 Footsteps,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1)), pos 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, rot 2: (NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1)), pos rot 18.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 3: (NoeBone:25,Bip01 Spine,'Bip01 Pelvis',(NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1))), pos 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0, rot 18.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 4: (NoeBone:26,Bip01 Spine1,'Bip01 Spine',(NoeBone:25,Bip01 Spine,'Bip01 Pelvis',(NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1)))), pos rot 18.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 5: (NoeBone:13,Bip01 Neck,'Bip01 Spine1',(NoeBone:26,Bip01 Spine1,'Bip01 Spine',(NoeBone:25,Bip01 Spine,'Bip01 Pelvis',(NoeBone:14,Bip01 Pelvis,'Bip01',(NoeBone:0,Bip01,'Scene Root',-1))))), pos rot 18.0, ... I'm sorry I didn't describe my problem clearly, I was edit my topic about the problem, and uploaded the test files. 1 Link to comment Share on other sites More sharing options...
Engineer shak-otay Posted November 22 Engineer Share Posted November 22 (edited) btw, who's the author of the py script? MrAdults (Rick) himself? Which Noesis version did you use? With latest Noesis I get an error: Traceback (most recent call last): File "X:\noesisv4474\plugins\python\_fmt_sof_skin.py", line 48, in checkSkinLoad loadTexture = LoadTexture(textureFileName) File "X:\noesisv4474\plugins\python\_fmt_sof_skin.py", line 352, in __init__ self.parse() File "X:\noesisv4474\plugins\python\_fmt_sof_skin.py", line 363, in parse texture.name = os.path.splitext(self.textureName)[0] AttributeError: 'NoneType' object has no attribute 'name' edit disabled the texture. What's the problem? That the frog fades away upwards? Edited November 22 by shak-otay 1 Link to comment Share on other sites More sharing options...
Jesse Posted November 22 Author Share Posted November 22 (edited) 2 hours ago, shak-otay said: btw, who's the author of the py script? MrAdults (Rick) himself? Which Noesis version did you use? With latest Noesis I get an error: Traceback (most recent call last): File "X:\noesisv4474\plugins\python\_fmt_sof_skin.py", line 48, in checkSkinLoad loadTexture = LoadTexture(textureFileName) File "X:\noesisv4474\plugins\python\_fmt_sof_skin.py", line 352, in __init__ self.parse() File "X:\noesisv4474\plugins\python\_fmt_sof_skin.py", line 363, in parse texture.name = os.path.splitext(self.textureName)[0] AttributeError: 'NoneType' object has no attribute 'name' edit disabled the texture. What's the problem? That the frog fades away upwards? My Noesis version is 4.474(the latest). I don't know who is the script's original author, I borrowed and make some changes from zenhax. the frog's animations is not like normal. frog example: result of the script: in game client: other example: result of script(same script like frog): in game client: So, I think the data parsing of the rotation might be a bit problematic. But I lack the knowledge about animation. Edited November 22 by Jesse Link to comment Share on other sites More sharing options...
Engineer shak-otay Posted November 22 Engineer Share Posted November 22 (edited) To make a more detailed analysis you could export from Noesis (including "Additional animation output") then import to blender. Maybe use FBX for it. I tried .dae and there's some issues. (But for me imported dae anims always had issues in blender, haha, so dunno whether those are related to what the _fmt_sof_skin.py produced in Noesis.) edit: used FBX and I don't see an issue (not being too familiar with anims, though). The root bone moves a little bit strange at the end of the jump, maybe. Edited November 22 by shak-otay 1 Link to comment Share on other sites More sharing options...
Jesse Posted November 23 Author Share Posted November 23 12 hours ago, shak-otay said: To make a more detailed analysis you could export from Noesis (including "Additional animation output") then import to blender. Maybe use FBX for it. I tried .dae and there's some issues. (But for me imported dae anims always had issues in blender, haha, so dunno whether those are related to what the _fmt_sof_skin.py produced in Noesis.) edit: used FBX and I don't see an issue (not being too familiar with anims, though). The root bone moves a little bit strange at the end of the jump, maybe. I tried export FBX from Noesis, than import FBX to blender and unity3d, but the animation is same as Noesis's preview. So, I think the issue is on the script. Link to comment Share on other sites More sharing options...
Engineer Solution Durik256 Posted November 24 Engineer Solution Share Posted November 24 accumulate rotations 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now