Generate a heightmap and draw it as a Quad mesh

Assignment Help Other Subject
Reference no: EM132234286

Assignment -

Part A - Raster images in the form of 2D arrays are used to model terrain information in Computer Graphics. Each pixel value, represented by an element in the array, is interpreted as the amount of displacement from the floor of a surface. These raster images are also known as heightmaps.

1. The Processing code included in folder part A contains terrain information stored in an array. Add code to draw it as a Quad mesh. Make sure you incorporate peasycam and gain some familiarity with its API, in order to enable camera navigation.

2. Now generate your own terrain (represented as an array) using random values. Make it include an adjustable number of "peaks", i.e. points with considerably greater height than the rest. Allow the user to increase or decrease their number by using corresponding keys.

3. Choose a greyscale image, load it in Processing and use its pixel values to generate a heightmap and draw it as a Quad mesh. Comment on the results.

Part B - The folder part B contains a Processing method get_torus that generates a torus-shaped object. Read through the code to understand how the method is called. Make sure you are familiar with the basic concepts of GLSL programming, using your subject guide and other resources. You can find a comprehensive walk-through tutorial for shaders in Processing in, while the Book of Shaders is a very good resource for understanding and experimenting with GLSL fragment shaders.

1. Using for inspiration, implement GLSL shaders and the appropriate Processing code in order to render tile patterns on a torus. Experiment with at least two patterns inspired by the referenced site and comment on the results.

2. Extend your code so that the implemented patterns change dynamically over time. To that end, add a "time" variable to your fragment shader(s) and use it to animate the pattern. After that, add a variable that allows you to modify the pattern, based on mouse position.

3. Improvise and experiment with more sophisticated patterns and see what effects you can produce. You may use different types of random noise as well as trigonometric or other types of mathematical functions. Make sure that your patterns vary over time and that their effects are adjustable by the user.

Note - Totally need 6 processing.exe files - for part A need 3 processing.exe files and for part B need 3 processing.exe files.

Attachment:- Assignment Files.rar

Reference no: EM132234286

Questions Cloud

Accountable for accurate business communication : Who is responsible and accountable for accurate business communication?
Pros-cons and usefulness of broaden and build theory : Pros, Cons, and usefulness of "Broaden and build" theory of positive enotions by Barbara L. Fredrickson?
Prepare a report for forecast income statements : Prepare a report for presentation to the board of directors - a justified recommendation as to the most appropriate source of finance
Define functions numerator and denominator : Define functions numerator and denominator to return the numerator and denominator, and functions whole and fractional to extract the whole and the fractional
Generate a heightmap and draw it as a Quad mesh : Choose a greyscale image, load it in Processing and use its pixel values to generate a heightmap and draw it as a Quad mesh
What type of work allow you to maintain professionalism : What type of work relationship will allow you to maintain professionalism with her without jeopardizing your job, and why? Choose one of the following.
Create an appropriate greeting and closing for each email : Create an appropriate greeting and closing for each email. Follow appropriate netiquette rules for electronic communication.
What would you say in the policy : You have been asked to draft a corporate usage policy regarding the use of instant messaging. The policy should encourage the use of IM and chat.
Define the characteristics of a board of directors : Cite your forecasting conclusions that support TFC 's decision to expand to the West Coast market. Speculate as to whether or not the agency conflict discussed.

Reviews

Write a Review

Other Subject Questions & Answers

  Explain the benefits of managed care

Managed care does exist in Saudi Arabia but is not as prevalent as other countries. Draft a paper analyzing the need for or against manage care in Saudi Arabia.

  Mobilize voters to win elections and implement policy goals

Political parties mobilize voters to win elections and implement policy goals. Parties use their stated policy goals (i.e., their platforms) as a way to mobilize voter support. Generally, in order to be successful in a two-party system, parties mu..

  Development theories of ecological theory of development

"Using development theories of ecological theory of development, Erikson's theory of development, and Kohlberg's moral development..

  What was your favorite part of emergency planning

What was your favorite part of the course? How will what you have learned in this course help you professionally or even personally?

  Discuss epidemiology as the scientific basis for clinical

Discuss epidemiology as the scientific basis for clinical medicine and guideline development

  Provide an analysis of changing health care labor force

Provide a detailed analysis of the changing health care labor force, causes of these changes and the impact of these changes on the US healthcare system.

  Delegates at national womens rights conventions promoted

Throughout the 1850s, delegates at national women's rights conventions promoted reforms to. Which of the following statements most accurately characterizes the cotton planter class of the southwest?

  How does developing the skill apply to your reading

How does developing this skill apply to your reading of empirical articles, research conclusions, and your own dissertation?

  Explain the basic features of adversarial system

Specify the basic features of adversarial system. Next, support or critique the value of the adversarial system within the criminal law system in the United.

  What is the mean for the total group

A sample of N=7 scores has a mean of 11. another set of scores has N=8 and a mean of 16. if these two sets of scores are combined, what is the mean for the total group?

  Summarize the four common barriers to conducting safety

Compare and contrast the relationship between a management of change process and prevention through design.

  Is the united states making progress in reducing terrorism

Is the United States making progress in reducing or preventing terrorism

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