JavaScript/WebGL


Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due


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 programin JavaScript/WebGL that draws the spacesceneshownhere. Template codeis provided to handle many ofthe aspects necessary to get basic objects rendered and moving in a scene. Use the template code found attachedhere and onthe course webpage(an introduction to the A1 base code is providedin Lab 3).For drawing objects, use only the procedures provided, e.g,drawCube0; for transforming the objects usethe 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 askedfor.Your task in A1 is to recreate this scene using the guidelines here.Submit your code as asingle zip file including everything needed Please read the entire assignment first and ensure you understand what should be submitted. There are clarifications andhints provided at the end.


  1. You have to use real-timeto 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 uniformscalings. 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 bequalitatively 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).


发表评论

电子邮件地址不会被公开。 必填项已用*标注