Re: CSQC skeletal animations played by anim name
Posted: Sun May 18, 2014 8:05 pm
Thanks for the hints Spike but, unfortunately, it doesn't work
I used for DP same code I posted yesterday in addition with yours. For FTE, I used csqc_test I found on the FTEQW src folder.
I couldn't understand the different behaviour DP/FTE you told me about the renderflags var. I searched it and I found a preprocessor "#ifndef WORKINDP" but, honestly I don't know how to set it up.
I tried:
All the above code has been put in the predraw function
I put before spawn(); in the model spawn function but I've seen no change.
I'm completely frustrated and with 0 free time available so I've to shelve this test for a bit. I'm a little disappointed because I wanted to join these tests with the ragdoll one, to create a map where toying a bit with skeletal animation and physics, but I tought that, if playing in loop a simple animation is so difficult, creating skeletal movements that react with physics is nearly impossible for my skills!
In the next weeks I'll try to search some other code on the net who someone finally succeded on this task. Nahuel made a test once but youtube video and source link are broken now.
Thanks again for your precious help
I used for DP same code I posted yesterday in addition with yours. For FTE, I used csqc_test I found on the FTEQW src folder.
I couldn't understand the different behaviour DP/FTE you told me about the renderflags var. I searched it and I found a preprocessor "#ifndef WORKINDP" but, honestly I don't know how to set it up.
I tried:
Code: Select all
self.frame1time = time-self.frame1time;
on both DP and FTE the player plays the animation at an abnormous fast pace and then stops
Code: Select all
self.frame1time += frametime;
on DP model stands still, on FTE model disappears! :shock:
I put
Code: Select all
self.frame1time = time; or self.frame1time = 0;
I'm completely frustrated and with 0 free time available so I've to shelve this test for a bit. I'm a little disappointed because I wanted to join these tests with the ragdoll one, to create a map where toying a bit with skeletal animation and physics, but I tought that, if playing in loop a simple animation is so difficult, creating skeletal movements that react with physics is nearly impossible for my skills!
In the next weeks I'll try to search some other code on the net who someone finally succeded on this task. Nahuel made a test once but youtube video and source link are broken now.
Thanks again for your precious help