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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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