Use the techniques of projection or ray tracing

Assignment Help Other Subject
Reference no: EM13309846

Design Your Own Planets

This assignment is an exercise in lighting and texture mapping, together with projection geometry/ray tracing.Write a Java program that renders an imaginary science fiction scene from the point of view of a space probe approaching a hypothetical "ocean planet" with an orbiting rocky moon together with a distant gas giant planet in the background. These fictional planets orbit a star near the Orion Nebula.

A jpg file of the Orion Nebula is provided on the course website. Use this as your background image. Your imaginary planet and moons should have surface detail rendered on them. To achieve this you can use the texture mapping technique. Some image files are provided that you can use as texture images.

A start-up program is given. This provides the (x, y, z) coordinates for each of the ocean planet, moon, and gas giant. The origin of this coordinate system is the projection point and the eye point. The size and location of the projection plane is also specified in the start-up code. You will need to use the techniques of projection/ray tracing so that projected sizes of the planet on the image come out correctly.

Note: a graphical user interface is not required in this assignment. Your program should directly display the rendered scene to the screen upon running the program. Note also that here you will be working directly with spheres which have simple properties (no input "wireframe" data are required).

For lighting the planet and moon surfaces, you need to decide on their surface properties using some appropriate combination of ambient, diffuse, and specularillumination models. You can choose any values to give the effect you want, but note that water behaves as a specular reflector. You may assume that these surfaces are illuminated by a single Sun emitting white light and you may choose any appropriate location of this light source.

The best performance will be obtained if you draw the scene onto a JavaBufferedImageand then draw the image to the screen.

Do not use Java 3D. Do not use java.awt.GradientPaint.

A sample scene is provided at the course website. You may render your scene in any way you like. However, your scene should clearly demonstrate the effects of the various lighting techniques and it should give some impression of depth.

Reference no: EM13309846

Questions Cloud

Find the most probable position of the particle : A particle is described by the wave function Ψ(x) ={ Axe^-ax, x>0 and Ψ(x) ={ 0, x≤0, Find the most probable position of the particle
Explain the order of the reaction with respect to sucrose : What is the order of the reaction with respect to sucrose and the value of the rate constant k
Obtain the resonance frequency : Consider an LC Circuit in which L = 500 mH & C = 0.100 microF. What is the resonance frequency
Discuss the health care professional and stakeholder : Discuss the health care professional and stakeholder roles and responsibilities in quality and risk management within a health care delivery system, including organizational mission, vision, goals, and objectives.
Use the techniques of projection or ray tracing : The size and location of the projection plane is also specified in the start-up code. You will need to use the techniques of projection/ray tracing so that projected sizes of the planet on the image come out correctly.
What is benzoin condensation : What is benzoin condensation and what are the results of it and the uses of this reaction and a detailed assignment of it
What is the height of the building : A rock is thrown from the roof of a building, with an initial velocity of 10.0 m/s at an angle of 30.0 ° above the horizontal. What is the height of the building
What is the difference between significance and meaningfull : What is the difference between significance and meaningfulness? Which one is more important to experimental results and why do you think so?
Determine the axial displacement of the piston : In a piston-cylinder assembly, 20 KJ of boundary work is being done on the piston. determine the axial displacement of the piston

Reviews

Write a Review

Other Subject Questions & Answers

  Glorious revolution in england and america

I would like to know which of the 4 statements would be the most correct in regards to the following statement. The Glorious Revolution in England and America...

  Why is the concept of environmental sustainability important

Why is the concept of environmental sustainability important, and why should it be studied? What are the historical patterns surrounding sustainable and unsustainable human interactions with the environment?

  Internet technologies and robotics

how the combination of Internet technologies and Robotics will displace jobs in the next ten years.

  Mass of a hypothetical spherical asteroid

Find the mass of a hypothetical spherical asteroid 2 km in diameter and composed of rock with average density 2500 kg/m3. (b) Find the speed required to escape from the surface of this asteroid. (c) A typical jogging speed is 3 m/s.

  Balanced diet-unsaturated fats and proteins

I was also wondering what are some benefits that unsaturated fats and proteins provide when included in a balanced diet?

  What is minimum number of kilocalories

Ingrid is a gymnast who trains on average for two hours each day. She supports her daily activity by consuming 2,500 kilocalories per day. What is the minimum number of kilocalories she should consume from carbohydrate?

  Discuss implications of both forms of the patient’s diseases

Essay in which you discuss implications of both forms of the patient’s diseases, HIV and AIDS, from the perspective of HIPAA confidentiality

  Empathy from an egocentric point

How does empathy from an egocentric point of view differ from empathy from a sociocentric point of view? How was Rogers empathic with members of the training group in Brazil?

  Clean air and the air in the laboratory

Assume that the clean air and the air in the laboratory are at the same temperature and pressure and that the laboratory air is perfectly mixed throughout the purging process.

  Jungle to raise awareness to the plight of factory workers

Sinclair wanted The Jungle to raise awareness to the plight of factory workers as much as he wanted it to highlight unsanitary conditions.

  Corporate responsibility is an issue

Corporate responsibility is an issue that involves many companies and industries and implies ethical choices. Consider one of the following examples and evaluate to what extent the company is responsible to society at large:

  Minority investors

Minority investors in Telefonica's South American subsidiaries are unhappy with the parent corporation. Suppose you are a senior manager at the parent corporation.

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