1. Homepage
  2. Programming
  3. CS4410 Computer Graphics - Homework 2 - Visualizes random polygons

CS4410 Computer Graphics - Homework 2 - Visualizes random polygons

Engage in a Conversation
University of Missouri - St. LouisUSUMSLCS4410Computer GraphicsVisualizes random polygonsWebGL

cs4410 Computer Graphics hw2 CourseNana.COM

Requirements: CourseNana.COM


CourseNana.COM


CourseNana.COM

• Write a WebGL program that creates and visualizes random polygons (n-gons). Name your source code hw2.html and hw2.js. The program should meet the following requirements: CourseNana.COM

–  Set the title of the program to “hw2” (must appear as such on title bar). CourseNana.COM

–  The program generates 20 random polygons at random positions with random colors (see Fig. 1). CourseNana.COM

–  Each polygon must have a random number of vertices (between 3 and 9). CourseNana.COM

–  Each polygon must continuously rotate and scale (see accompanying video on Canvas). Note that the rotation must be done in-place about its own center, not about the origin. Hint: first translate the polygon to the origin, then rotate, then translate it back to its original position. CourseNana.COM

–  The scaling must go back and forth between scaling factors of 1 and 0 as upperbound and lowerbound, respectively. CourseNana.COM

–  Each time you hit F5 (refresh), the canvas must display a new set of 20 random polygons rotating and scaling in-place (See Fig. 1 – 2). CourseNana.COM

–  The file multi hexagons.js should provide some hints on how to generate an array of polygons. CourseNana.COM

CourseNana.COM

Figure 1: Rotating and scaling polygons 1 CourseNana.COM

  CourseNana.COM

CourseNana.COM

Figure 2: Rotating and scaling polygons 2 CourseNana.COM

What to submit: CourseNana.COM

  • Submit all your source files (.html, .js) that are needed for compilation, including library files/folders. Miss-

ing library files/folders will incur point deduction. CourseNana.COM

  • Make sure your library folder/files are in the right location relative to your main program (.html), such that when your main program (.html) is clicked as is, it should run without problem. Failure to do so will incur point deduction.

How to submit: CourseNana.COM

• Use Canvas Assignment Submission system to submit your source files.
• Make sure to zip all your files/folders into
hw2.zip, then submit your hw2.zip as a single file. CourseNana.COM

Policy CourseNana.COM

    • Do all the assignments on Chrome Development Tools using HTML, JavaScript, and GLSL ES.
    • At the top of each source file, provide comments specifying the author, date, and a brief description of the file.
    • Source code must contain enough comments here and there to make it easy enough to follow. Insufficient comments could lead to point deduction.
    • Incomplete program will get almost no credit (e.g., program does not run due to compile errors or program terminates prematurely due to run-time errors).

Thou shall not covet thy neighbor’s code. If identical (or nearly identical) submissions are found among students, every student involved will get automatic zero for the assignment. The same goes for copying existing code from online source. CourseNana.COM

• If a student makes multiple submissions, only the last submission will be considered valid. CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
University of Missouri - St. Louis代写,US代写,UMSL代写,CS4410代写,Computer Graphics代写,Visualizes random polygons代写,WebGL代写,University of Missouri - St. Louis代编,US代编,UMSL代编,CS4410代编,Computer Graphics代编,Visualizes random polygons代编,WebGL代编,University of Missouri - St. Louis代考,US代考,UMSL代考,CS4410代考,Computer Graphics代考,Visualizes random polygons代考,WebGL代考,University of Missouri - St. Louishelp,UShelp,UMSLhelp,CS4410help,Computer Graphicshelp,Visualizes random polygonshelp,WebGLhelp,University of Missouri - St. Louis作业代写,US作业代写,UMSL作业代写,CS4410作业代写,Computer Graphics作业代写,Visualizes random polygons作业代写,WebGL作业代写,University of Missouri - St. Louis编程代写,US编程代写,UMSL编程代写,CS4410编程代写,Computer Graphics编程代写,Visualizes random polygons编程代写,WebGL编程代写,University of Missouri - St. Louisprogramming help,USprogramming help,UMSLprogramming help,CS4410programming help,Computer Graphicsprogramming help,Visualizes random polygonsprogramming help,WebGLprogramming help,University of Missouri - St. Louisassignment help,USassignment help,UMSLassignment help,CS4410assignment help,Computer Graphicsassignment help,Visualizes random polygonsassignment help,WebGLassignment help,University of Missouri - St. Louissolution,USsolution,UMSLsolution,CS4410solution,Computer Graphicssolution,Visualizes random polygonssolution,WebGLsolution,