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

  Pursue technologies such as those associated-virtual reality

Why do we pursue technologies such as those associated with virtual reality? Going back to one of our definitions of technology, what problem are we trying to solve? What are the risks associated with these technologies?

  Find the best example of qualitative research

Which one of the following is the best example of qualitative research? a. Comparing average achievement test scores for students at three different schools.

  Different perspectives on middle age in adulthood

Erikson, Helson, and Levinson provide different perspectives on middle age in adulthood. Describe each of these theories as it relates to middle adulthood. On the basis of your readings, compare and contrast these theories. Which one gives a better e..

  Hypertensive and is exhibiting ecg changes

A patient is hypertensive and is exhibiting ECG changes consistent with an inferior Myocardial Infarction you should consider the possibility of?

  Pharmaceutical calculation training manual to assist

If you were compiling a pharmaceutical calculation training manual to assist new pharmacy technicians, what two (2) best practices would you emphasize that you learned in this course?

  How concept analysis increases nursing knowledge

Thoughts on how concept analysis increases nursing knowledge, contributes to nursing research and informs and clarifies nursing practice? Discuss nursing knowledge in terms of emancipatory knowledge, empirical knowledge, aesthetic knowledge, personal..

  Identify a country with a national tourism board

Identify a country with a national tourism board. What are the benefits of having a national department of tourism? What are the negative aspects?

  Gathering and analysis in research techniques

My research problem is "Does the amount of time child spends in church with his/her parents make a stronger bond between that child and his/her parents later in life?

  Raped population growth during the eighteenth century

As a result of the raped population growth in colonial America during the eighteenth century,

  Law and ethics

According to the majority opinion in the Lucas case, what two types of regulatory action automatically trigger compensation as takings, without a court needing to examine the circumstances in a case-specific way?

  Managerial skills needed to communicate

how do you instill zn appreciation in your trainees of the managerial skills needed to communicate in a multicultural organization?

  Chloroform and either rapidly affect cells

What characteristics of cell membranes may explain why fat-soluble sub stances such as chloroform and either rapidly affect cells?

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