Skip to main content

Posts

Showing posts from December, 2020

PA #0

Gate Gate name: ntuu.kpi@ukr.net Requirements Construct and render wire-frame model representing a Palm and 15 phalanges of your hand using 16 parallelepipeds with OpenGL API. Each finger has to be individually bent according to the parameters controlled by keyboard combinations (e.g. a/z, s/x, d/f, etc). Input Outline your hand on a sheet of graph paper. Make sure the start of the coordinate system corresponds to your wrist. * find the coordinates of every joint: P 0 i , P 1 i , P 2 i  , i = 0..4; * find the length of every phalanx: L 0 i , L 1 i , L 2 i  , i = 0..4; * find the axes of rotation of every phalanx: r 0 i , i = 0..4. Implementation aspects 1) Implement a function that draws a wireframe parallelepiped using OpenGL API: void DrawWireFrameParallelepiped(Vec3 start, float width, float height, float length); {       Draw Twelve Lines } 2) Using combinations of translations and rotations implement bending of ever