The programmable rendering pipeline is composed of many steps to get us from object models to pixels on the screen. This assignment tests your understanding of transformations and hierarchical transformations that are essential to the construction of scenes, animation, and character geometry.
Write a program in JavaScript/WebGL that draws the space scene shown here. Template code is provided to handle many of the aspects necessary to get basic objects rendered and moving in a scene. Use the template code found attached here and on the course webpage (an introduction to the A1 base code is provided in Lab 3). For drawing objects, use only the procedures provided, e.g., drawCube(); for transforming the objects use the functions provided by the template code, e.g., gRotate(theta,x,y,z);. See the video below for an example of exactly what is being asked for. Your task in A1 is to recreate this scene using the guidelines here. Submit your code as a single zip file including everything needed. Please read the entire assignment first and ensure you understand what should be submitted. There are clarifications and hints provided at the end.
1.You have to use real-time to synchronize your animations. (2 Marks).
2.Space jelly tentacle modelling: The body has two scaled spheres, and each tentacle has 5 ellipses (also scaled spheres). (4 Marks).
3.Space jelly tentacle animation (moving wave) (4 Marks).
4.Space jelly tentacle positioning (3 tentacles) (3 Marks).
5.Space jelly animation: The Space jelly must float in a circle around the character. It should always be aligned with the tangent of the circle. (4 Marks).
6.Astronaut modelling: Helmet with visor, two arms (just a single segment each), two legs (upper leg, lower leg, and feet), NASA patch and the various inlets/outlets (6 Marks).
7.Astronaut body animation: The character should move (oscillate) in both the x and y world directions. (2 Marks).
8.Astronaut leg and arm animation: The legs of the character should kick (both hips and knees rotate) as shown in the video. Note that the feet do not move. The arms should also rotate. (6 Marks).
9.The stars should be randomly seeded behind the foreground objects and move offscreen. You should generate a set of spheres with random uniform scalings. When these move offscreen you should reset their locations offscreen. In this way the number of star objects remains static (they are reused after they fly off-screen) (4 Marks).
10.You do not have to match the exact motion or dimensions of the objects shown in the examples. However, your scene should fit in the window (see 14) and be qualitatively and visually similar to the sample (4 Marks).
11.Programming style (comments, functions) (2 Marks).
12.The scene should be 512x512. (-2 Marks if it is not).
13.You have to submit a SINGLE file called <firstname-lastname>.zip that includes all the necessary files. (-2 Marks if you do not).
14.You have to include a readme.txt file that describes in full detail which of the required elements you have implemented successfully and which ones you have not. (-4 Marks if you do not).
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。