Skip to content

Toy-Story character modelling, rendering and animation. CS475 assignment.

Notifications You must be signed in to change notification settings

vinayakvivek/Toy-Story

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy story character rendering

Compiling

    cd <project_dir>
	mkdir build
	cd build
	cmake ..
	make
  • if build succeeds, an executable toys will be created in build/
  • keyframes.txt contains saved keyframes
  • [extra] bezier.txt contains 4 control points of the bezier curve
    • camera moves along this bezier curve, once all the keyframes are completed.
  • to capture frames in play mode, make capture_frame = true in View::View() in view.cpp.
    • these frames would be saved in build/frames as frame_<id>.ppm
  • convert.sh is a script to process the saved frames and combine them to create a video.

Keyframe format

  • each line in keyframes.txt corresponds to one keyframe
  • <length (in number of frames)> <camera (rotation and position)> <rotation and position(if translatable) for all other nodes>

Key bindings

  • M: toggle mode (record / play) (default mode: record)

  • R: reset view

  • O: [in record mode] save keyframe

  • J, K and L: toggle light1, light2 and spotlight respectively.

  • B: selects Buzz model (selected by default)

  • H: selects Hamm model

  • If you have selected Buzz, parts of Buzz can be selected by the following: [key - part]

    • 0 - Hip
    • 1 - Torso
    • 2 - Neck
    • 3 - Left Upper Arm
    • 4 - Left Lower Arm
    • 5 - Left Hand
    • 6 - Right Upper Arm
    • 7 - Right Lower Arm
    • 8 - Right Hand
    • SHIFT + 0 - Left Thigh
    • SHIFT + 1 - Left Leg
    • SHIFT + 2 - Right Thigh
    • SHIFT + 3 - Right Leg
    • SHIFT + 4 - Left Foot
    • SHIFT + 5 - Right Foot
  • If you have selected Hamm, parts of Buzz can be selected by the following: [key - part]

    • 0 - Torso
    • 1 - Head
    • 3 - Front Left Leg
    • 4 - Front Right Leg
    • 5 - Back Left Leg
    • 6 - Back Right Leg
  • After selecting, parts can be rotated. (each part have rotational restrictions!)

    • W, S - along Y-axis
    • A, D - along X-axis
    • Q, E - along Z-axis
  • If you have selected 0th node in a model (select model, press 0), then the model can be translated by pressing SHIFT + [A, D, Q, E]

  • Camera can be rotated using ARROW keys, PAGE UP and PAGE DOWN.

  • Camera can be translated using SHIFT + [ARROW keys, PAGE UP, PAGE DOWN].

  • Use Z and X to zoom in and out camera respectively.

About

Toy-Story character modelling, rendering and animation. CS475 assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages