+ Exercise 1: OpenGL Texture Using the functions we learned in our lecture, map myTexturel...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
+ Exercise 1: OpenGL Texture ■ Using the functions we learned in our lecture, map myTexturel texture to the 3D teapot object. Now change the value of glTexEnvf function to GL_MODULATE OpenGL Lab OpenGL Lab glTexEnvi( GL TEXTURE_ENV, GL_TEXTURE ENV_MODE, GL REPLACE); 4 glTexEnvi( GL_TEXTURE ENV, GL TEXTURE ENV MODE, GL MODULATE); + Exercise 3: Texture coordinates & parameters Now, change the quad texture coordinates to larger than 1 (i.e. the minimum coordinates giTexCoord2f(0, 0) & the maximum coordinates glTexCoord2f(3.0, 3.0)) 00 gITexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); gITexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T. GL_REPEAT); Exercise 4: Texture coordinates & parameters Now, using the same code in Exercise 3 just change the mapped texture to myTexturel Also change the texture parameter to GL_CLAMP giTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); gITexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); + Exercise 1: OpenGL Texture ■ Using the functions we learned in our lecture, map myTexturel texture to the 3D teapot object. Now change the value of glTexEnvf function to GL_MODULATE OpenGL Lab OpenGL Lab glTexEnvi( GL TEXTURE_ENV, GL_TEXTURE ENV_MODE, GL REPLACE); 4 glTexEnvi( GL_TEXTURE ENV, GL TEXTURE ENV MODE, GL MODULATE); + Exercise 3: Texture coordinates & parameters Now, change the quad texture coordinates to larger than 1 (i.e. the minimum coordinates giTexCoord2f(0, 0) & the maximum coordinates glTexCoord2f(3.0, 3.0)) 00 gITexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); gITexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T. GL_REPEAT); Exercise 4: Texture coordinates & parameters Now, using the same code in Exercise 3 just change the mapped texture to myTexturel Also change the texture parameter to GL_CLAMP giTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); gITexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
Expert Answer:
Answer rating: 100% (QA)
The images youve provided show a series of slides detailing exercises related to applying textures in OpenGL Heres a breakdown of the exercises that a... View the full answer
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
For the given mathematical system, determine which of the five properties of a commutative group do not hold. P 4 4 4 4 4
-
In our development of consumer theory, we made a big point about the fact that neoclassical economics does not put much stock in the idea of cardinally measuring utility (in terms of units of...
-
In Exercises use a computer algebra system to analyze the graph of the function. Label any extrema and/or asymptotes that exist. f(x) || 1 xx2
-
Mary Zimmerman decided to purchase a new automobile. Being concerned about environmental issues, she is leaning toward the hybrid rather than the completely gasoline four-cylinder model....
-
Tech Support Services has the following unadjusted trial balance as of January 31, 20Y5: The debit and credit totals are not equal as a result of the following errors: a. The cash entered on the...
-
Differentiate among the four principal types of selection techniques.
-
Wangs Concrete Service notes that the number of jobs each month follows the following distribution: 10 with probability 0.15, 11 with probability 0. 20, 12 with probability 0.20, 13 with probability...
-
What are the roots of the equation x^(2)-2x+2=0 in simplest a+bi form?
-
The Genola Company manufactures insulated windows. Costs for March were as follows. Direct labor $53,000 Indirect labor 18,000 Salary of corporate vice president for advertising Direct materials...
-
What is wrong with a q-q plot that shows a strong "backwards 5" shape (the ends point up an It shows long tails O It shows short tails Nothing-it is approximately normal shows a distribution that is...
-
You are the manager of a soccer team, and you need to decide which players to trade for the next season. Table 1 below describes the current players on your team that are up for contract renewal,...
-
Vytrill Ltd makes two products, Alpha, and Beta. The following data is relevant for year 3: Material prices: Material M Material N R2 per unit R3 per unit Direct labour is paid R10 per hour....
-
Crossland would like to move to just-in-time (JIT) system of purchasing its goods from Essel and as a result Essel is contemplating major changes to its working practices. Essel's CEO has asked you,...
-
The roots of an equation are values that make it zero. For example, x - 1 X 0 (x 1)(x + 1) = 0 I Then x = 1 or x = -1 makes eq. 13 zero. Let's verify this. Taking x = 1 1 1 = 1-1=0 I1 (15) For a...
-
Consider a logistic map defined by the recursive relation Xn+1 = n (1 - n), (1) defined within the parameter range 0 < < 4. (a) Write (and attach) PYTHON code to simulate the logistic map. For an ap-...
-
Considering there are no budget constraints. You are given information on the following two projects: Project A: It has an initial investment of 10,000. Then cash flows for the subsequent 4 years are...
-
7. FALSE DILEMMA 8. GANDWAGON Definition: Fallacy example: How to revise argument: Definition: Fallacy example: How to revise argument:
-
In this exercise, we consider some policy issues related to public support for schoolsand the coalitions between income groups that might form to determine the political equilibrium. A: Throughout,...
-
The prediction that unrestricted trade causes a convergence of wages across the trading countries seems quite stark: Is it really the case that U.S. wages will converge to the wages in the third...
-
In this exercise, we explore the concept of elasticity in contexts other than own-price elasticity of (uncompensated) demand. (In cases where it matters, assume that there are only two goods). A. For...
-
Basic Concepts by considering the simple one-dimensional steady flow between two parallel plates, Figure 1.1. The area of each plate $A_{y}=1 \mathrm{~m}^{2}$ and the gap between the two plates is...
-
By making use of the analogies between the various transport models for molecular transport of conserved quantities, describe how you would set up an experiment to solve each of the following...
-
A slider bearing consists of a sleeve surrounding a cylindrical shaft that is free to move axially within the sleeve. A lubricant (e.g., grease) is in the gap between the shaft and the sleeve to...
Study smarter with the SolutionInn App