The objective of this assignment is to procedurally model and animate a bird wing. Let's get creative!
Start by forking and then cloning this repository
Search for three or more images of a bird wing (or any flying creature, really) in order to provide yourself reference material, as you're going to base your modeling and animation from these images. For the more artistic minds, feel free to sketch your own concept.
Make wing curve
Begin with a 3D curve for your basic wing shape. Three.js provides classes to create many different types of curves, so you may use whatever type of curve you prefer.
We have provided a simple feather model from which to begin. You are not required to use this model if you have others that you prefer. From this base, you must duplicate the feather to model a complete wing, and your wing should consist of at least thirty feathers. Distribute points along the curve you created previously; you will append the feather primitives to the curve at these points. Make sure that you modify the size, orientation, and color of your feathers depending on their location on the wing.
Feel free to diversify your wings by using multiple base feather models.
Add a wind force to your scene, and parameterize its direction and speed. You will use this wind force to animate the feathers of your wing by vibrating them slightly. Using Dat.GUI, allow the user to modify these wind parameters. Please note that we don't care about your feather motion being physically accurate, as long as it looks nice.
Additionally, animate the control points of your wing curve to make the wing flap, and allow the user to control the speed of the wing flapping.
Using Dat.GUI and the examples provided in the reference code, allow the user to adjust the following controls:
- The curvature of the wing's basic shape
- Feather distribution
- Feather size
- Feather color
- Feather orientation
- Flapping speed
- Flapping motion
For the Overachievers
- Make a pretty iridescent or otherwise feather appropriate shader.
- Otherwise, going the extra mile for this assignment is really in the polish!
Create a folder called
referencesto include your reference images.
README.mdto contain a solid description of your project
Publish your project to gh-pages.
npm run deploy. It should now be visible at http://username.github.io/repo-name
Create a pull request to this repository, and in the comment, include a link to your published project.
Submit the link to your pull request on Canvas.
npm, the Node Package Manager. This allows us to easily declare and install external dependencies such as three.js, dat.GUI, and glMatrix . Some other packages we'll be using make it significantly easier to develop your code and create modules for better code reuse and clarity. These tools make it signficantly easier to write code in multiple
.jsfiles without globally defining everything.
Fork and clone your repository.
In the root directory of your project, run
npm install. This will download all of those dependencies.
Do either of the following (but I highly recommend the first one for reasons I will explain later).
npm startand then go to
localhost:7000in your web browser
npm run buildand then go open
index.htmlin your web browser
You should hopefully see the framework code with a 3D cube at the center of the screen!
Developing Your Code
src directory. The main file that gets executed when you load the page as you may have guessed is
main.js. Here, you can make any changes you want, import functions
from other files, etc. The reason that I highly suggest you build your project with
npm start is that doing so will start a process that watches for any changes you make to your code. If it detects anything, it'll automagically
rebuild your project and then refresh your browser window for you. Wow. That's cool. If you do it the other way, you'll need to run
npm build and then refresh your page every time you want to test something.
Publishing Your Code
looking to score a job or internship. To aid you in this process, running
npm run deploy will automatically build your project and push it to
gh-pages where it will be visible at