Ask Computer Graphics Expert

Part 1:

Repeating part of Assignment 1, now create your objects, and have them move through 3D space, and rather than triangles and rectangles and circles they should be pyramids, cubes, and spheres (or approximations thereof). Objects should have solid exteriors, be coloured in some way. Your program should have basic lighting and a projection matrix. When objects are created, they should start with some initial velocity and move along a path governed by that velocity.

Basic lighting can come from the labs.

Note: Assignment 3 has you adding terrain, and objects you import from a file.

Part 2:

Allow the user to ‘pick' one of the objects in Part 1 and display some information about it in a window or on a console or the like (the information can be just the ID of the object and what colour it is or something). The hard part of this problem is called ‘picking' or a ‘pick' algorithm. You can simply search every object in the scene on every mouse click and see if the mouse intersects it (what happens if there are two objects though? Hmmm...). This question has layers of success, and I expect you to show testing on all of the cases you got working.

Part 3: Using POV ray (http://www.povray.org/) set up a scene that is conceptually similar to question 1 (some objects moving around with light). Discuss and compare performance. Feel free to base this largely on any tutorials you find on the web, the goal here is for you to see the differences and similarities to how these methods work. I expect your results will be some screen shots and ~500-1000 words of discussion.

Part 4:Maths stuff (Do this by hand).

Show the Cohen Sutherland and Liang Barksy (line clipping algorithms) for the following line segments with a
Window from (0,0) to (10,10)
a) (-4, -2), (8,12)
Window (-10,-10) to (10,10).
b) (9, -3), (-9,-9)
c) (19,8) (-16,17)
Window 0,0 to 1920,1080
d) (2496, 864), (768, 324)
A Window from (-960, -540 to +960, 540)
e) (-480, 432), (-864, -1134)

Note You must show your work for both algorithms.

Attachment:- Basic-Lighting.zip

Computer Graphics, Computer Science

  • Category:- Computer Graphics
  • Reference No.:- M92208415
  • Price:- $145

Guranteed 48 Hours Delivery, In Price:- $145

Have any Question?


Related Questions in Computer Graphics

Please read my question if you post copy and pasted code

Please read my question if you post copy and pasted code you will get a negative review. This is java In this graphical program, you are going to simulate arcade car racing game. You need a single player that is movable ...

The problemyou are to search a bitmap in rgb format and

The problem: You are to search a bitmap in RGB format and count the number of pixels which match a set of colors. The bitmap will be 1024 by 1024 pixels for the purposes of explaining this problem. The set of colors will ...

The problemsit is strongly recommended that you tackle the

The problems: It is strongly recommended that you tackle the following tasks in a modular way -- a separate standalone function for each task. Draw a rectangle as a Rectangle and as a Polygon. Make the lines of the Polyg ...

You have a program draw a rectangle on the screen and allow

You have a program draw a rectangle on the screen and allow the user to change the color/size of the rectangle. The program will store in the browser the settings of the color/size so that upon revisiting the page, the v ...

Question a describe the architecture of simple raster

Question : a) Describe the architecture of simple raster graphics system? b) Explain raster scan display processor?

The saffir-simpson hurricane scale classifies hurricanes

The Saffir-Simpson Hurricane Scale classifies hurricanes into five categories numbered 1 through 5. Write an application named Hurricane that outputs a hurricane's category based on the user's input of the wind speed. CA ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As