Skip to content

echiu/Project2-Toolbox-Functions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The objective of this assignment is to procedurally model and animate a bird wing.

Modeling

Reference images

This image provided the most information to me. The first thing I observed was that the overall shape of the wing is a spline with an “S” shape. The second thing I observed was that near the side of the wing closer to the body, the wing has a slight “bump”. The third thing I observed was that there are three layers of feathers, where the top layer has the darkest color. I implemented all of these observations in my procedurally modeled wing.

This image just reassured me the general shape and feather layering I observed in the first reference image was correct.

The most prominent observation I made from this reference image is that orientation of feathers. As the feathers are placed farther from the body, the more “outward” it points. I also implemented this observation in my procedurally modeled wing using a toolbox gain function.

Make wing curve

Used two splines, curve1 and curve2 in my code, to outline the general shape of the wing. It can be drawn by uncommenting out the code in the load function. This design was based on my first reference image.

Animation

Added wind force to the scene by rotating the feathers slightly by a sine toolbox function over time. The speed of the wind is just a modification of time of when the sine function is called.

Additionally, I animated my wing to flap by adding an additional sine function to the feather y translations. The speed, again, is just a modification of time of when the sine function is called. The flapping motion is the frequency of the sine function that is tweaked by the user.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • GLSL 13.7%
  • HTML 3.3%