karansher / computer-graphics-kinematics

Computer Graphics Assignment about Kinematics
0 stars 0 forks source link

Weird positioning of model parts #10

Closed gnguralnick closed 1 year ago

gnguralnick commented 1 year ago

When I run kinematics with the default arguments, my model looks like this

image

For some reason, the dot to control the inverse kinematic movement and the bone approximations there are shrunken. I'm really not sure where the issue is, would love some advice.

fares-soliman commented 1 year ago

its cause you didnt divide ure V coordinates you generated by the w value (4th value in generated vertex vector)

gnguralnick commented 1 year ago

i'm doing that but it doesn't seem to change anything when i debug, the w coordinates are all just 1 so dividing by them doesn't change anything

gnguralnick commented 1 year ago

fixed, i needed to set a default weight value of 0 in linear_blend_skinning rather than 1 - it was causing my vertices to get all blown up