Write an interactive webgl program

Assignment Help Computer Graphics
Reference no: EM13909738

Transformations

Write an interactive WebGL program that stores points and colors in GPU memory once, then uses matrix transformations to modify the scene in various ways.

Requirements

1. Store the vertices and colors in GPU memory.

2. Use the built-in hidden-surface removal.

3. Use matrix transformations to perform the following tasks:

a. Perspective projection - farther objects should appear smaller than closer objects.

b. Translation (displacement to a different location)

c. Object duplication - use the same object definition and matrix transformations to replicate an object (or objects) at least 10 times in the scene.

d. Scaling - resizing and/or stretching

e. Animation - automatic or in response to input. Animation should be implemented using the setTimeout and requestAnimFrame function.

4. Make the renderings original and attractive. Your graphics should not look similar to anyone else's in the class, nor to any provided examples.

5. Update the window title to describe the program.

6. Below the canvas element, add a content section for debugging information that (at the very least) includes a count of the number of points used. Do not hard code the information. Instead, draw from your JavaScript variables. The information may be displayed in a textarea, text box, on a button, as an alert that responds to a button, etc.

7. Put any project notes at the bottom of the HMTL page, including whether you did extra credit, added any special features, or have any issue with your project.

8. (Extra credit) Allow more than one view of the scene.

Tips

• For simplicity, consider defining all object centered at the origin, then translating them to where they belong.

• With no lighting effects, surfaces with no color interpolation will appear flat.

• The order of triangle vertices should follow the right-hand rule: specified in counter clockwise order for the side facing the viewer.

Reference no: EM13909738

Questions Cloud

Production department of a process manufacturing system : During April, the production department of a process manufacturing system completed a number of units of a product and transferred them to finished goods.
The production department described : The production department described in Exercise 20-8 had $ 850,000 of direct materials and $ 650,000 of direct labor cost charged to it during April.
What is the beta of the acme assets : Acme currently has a capital structure of 20% debt to total assets, based on current market values. The current debt is riskless and more debt can be taken on, up to a limit of 35% debt, without making the debt risky and losing the firm's ability ..
What primary advantages of the capital asset pricing model : What are the primary advantages and disadvantages of the Capital Asset Pricing Model (CAPM) compared with the Constant Dividend Growth Model for use in pricing common stock?
Write an interactive webgl program : Write an interactive WebGL program that stores points and colors in GPU memory once, then uses matrix transformations to modify the scene in various ways.
The production department in a process manufacturing system : The production department in a process manufacturing system completed 80,000 units of product and transferred them to finished goods during a recent period. Of these units, 24,000 were in process at the beginning of the period.
What is expecte number of user able to continue using system : What is the probability that a particular user, say user 1, is able to continue using the system? What is the expected number of users able to continue using the system?
Calculate the monthly return for each stock or etf : Calculate the monthly return for each stock or ETF. For stocks and the ETF, do this the normal way, but make sure you are moving the correct way through time! For the T-Bill, the rate you download is the annualized percentage return.
Plasminogen for directional subcloning : Design PCR primers to amplify Kringles 2-4 of human plasminogen for directional subcloning into PBluescript. Show the exact sequence where the PCR product is directionally ligated (2 restriction enzymes) into the vector ( don't show all the interv..

Reviews

Write a Review

Computer Graphics Questions & Answers

  Given a 2-d point at position 20 30 show the results and

given a 2-d point at position 20 30 show the results and intermediate steps for a translation of 10 35 a rotation of 45

  How graphics will be used in the site

how graphics will be used in the site

  1 what are the three key stages and phases that

1. what are the three key stages and phases that characterize multilateral negotiations?a.nbspthe pre-negotiation stage

  Analyze security requirements and develop a security policy

analyze security requirements and develop a security policy that fully addresses them. the project will enable the

  What are the advantages of 3d-printing

What are the advantages of 3D-Printing and what are the disadvantages?

  Network design based question

Suggest a network design for a customer that has fifty remote locations in addition to a central headquarters. Half of the remote locations are needed to connect or stay on line with central headquarters.

  Equation for tangent cubic spline using mspline and mgeom

We are given the following boundary conditions for cubic spline section: Give equation P0(u) for tangent to this curve in terms of Mspline and Mgeom.

  Enhance the buttonviewer program so that it prints the time

Enhance the ButtonViewer program so that it prints the time at which the button was clicked.

  1 on a day to day basis what are the general issues you

1. on a day to day basis what are the general issues you might deal with as a manger in the humane society animal

  How to work on datasturetur assignment how to work on

how to work on datasturetur assignment how to work on datasturetur assignment how to work on datasturetur assignment

  1 what is a business process and why do businesses use them

1. what is a business process and why do businesses use them? why are efficient business processes key to maximizing

  Organized to focus more on organizational

As you probably have noted, this course is organized to focus more on organizational and enterprise level issues than on individual or group behavior. There are other courses in the program that allow you the opportunity to reflect on lower le..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd