alecjacobson / computer-graphics-kinematics

Computer Graphics Assignment about Kinematics
93 stars 31 forks source link

How to properly run ./kinematics for animation? #9

Closed Panmani closed 5 years ago

Panmani commented 5 years ago

As I understand it, the key "i" is used for toggling animation. But when I printed out the size of the parameter "keyframes" in "catmull_rom_interpolation.c", it is zero. Not sure what is wrong.

alecjacobson commented 5 years ago

Well you have to implement the tasks

On Sun, Nov 18, 2018 at 15:39 Ian Y. Ma notifications@github.com wrote:

After make, I ran by typing in ./kinematics. But the robot arm does not move at all. When I print out the xzx variable, it is equal to 0, 0, 0, all the time. But when I checked the robot-arm.json file, I can see the data for animation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alecjacobson/computer-graphics-kinematics/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/ACI0mTuWGWD9zGpx-5V4yOsNwYwOZ4gBks5uwcWCgaJpZM4YoINk .

Panmani commented 5 years ago

Yeah, I have implemented the first five files. Not sure whether I am toggling the animation correctly.

ptanugra commented 5 years ago

I suggest (if you haven't) going to main.cpp and figure out how all the files are interconnected and also see the parameters that are being passed to the function call

WilsonWangTHU commented 5 years ago

@Panmani some of the bones do not come with any keyframes, but the others have. I guess that is what you observed ;p

Panmani commented 5 years ago

Sorry, I figured it out. Thank you!