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

  Trade laws should you consider when selecting a source

Which U.S. trade laws should you consider when selecting a source? You researched and determined that sources of chocolate milk in France suit your purpose. However, the tariff imposed by the U.S. government on the import of chocolate milk  (17%) fro..

  Nutrition-dieting and organic food

The Omnivore’s Dilemma touches on several specific topics that are a part of our national dialogue on food: nutrition, dieting, and organic food. This dialogue underscores the bigger picture of our need to maintain good health and wellness to live a ..

  During the play antigone be determined accurately

Can the passage of time during the play Antigone be determined accurately? The hour of the day for each scene? Act? The time b/w the scenes and act?

  The binding energy of the first level in an atom

The binding energy of the first level in an atom is 2.2´10-18 J, and the binding energy of the second energy level is 1.6´10-18 J. What is the energy of the photon that is emitted if an electron moves from the second level to the first?

  Legitimating rationales-social stratification system

In The Practical Skeptic three major forms of stratification are described: Caste, Estate and Class. (a) Briefly describe the legitimating rationales that bolster each of these stratification systems. (b) Then, discuss the ways in which legitimating ..

  Purpose of evangelism in christianity

What is the concept or purpose of Evangelism in Christianity. Has it harmed Christianity? Is there risk/reward if so?

  Making business decisions

In the first task, you need to study the “Problem Solving Using Access 2007” (pay attention to the software version!) tutorial posted on Angel, and complete the first case (ProSwing Analysis) in “Making Business Decisions”

  Postal code bar codes used to encode a zip code

Research the US postal code bar codes used to encode a zip code. Use the turtle module to draw a postal code for a given zip code.

  Emphasis on technology support for coding function

For example, is there an emphasis on technology support for the coding function? Is there an emphasis on the need for quality of coded data?

  What is the main disadvantage of a living will

What is the main disadvantage of a living will?

  Theoretical approaches in the study of personality

How does one define personality? What are the theoretical approaches in the study of personality?

  Why is wrongful interference with a contractual relationship

Why is "Wrongful Interference with a contractual relationship" a tort rather than a breach of contract? Distinguish wrongful inteference with a contractual relationship from wrongful inteference with a business relationship. What distinguishes trespa..

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