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

  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