• Home
  • Textbooks
  • Computer Graphics with Open GL
  • Algorithmic Modeling

Computer Graphics with Open GL

Donald Hearn. M. Pauline. Baker, Warren R.Carithers

Chapter 21

Algorithmic Modeling - all with Video Answers

Educators


Chapter Questions

01:40

Problem 1

Using the random midpoint-displacement method, write a routine to create a mountain outline, starting with a horizontal line in the $x y$ plane.

Steven Clarke
Steven Clarke
Numerade Educator
01:06

Problem 2

Write a routine to calculate elevations above a ground plane using the random midpointdisplacement method, given a set of corner elevations for the ground plane.

Linh Vu
Linh Vu
Numerade Educator
03:54

Problem 3

Write a program to display the terrain generated by the routine in the previous exercise. Set up a point light source and choose appropriate rendering parameters to display the set of triangle patches that result from the routine.

Foster Wisusik
Foster Wisusik
Numerade Educator
03:37

Problem 4

Write a program to display the fractal snowflake (Koch curve) for a given number of iterations.

Grant Castaneda
Grant Castaneda
Numerade Educator
03:36

Problem 5

Modify the program in the previous exercise to allow the user to set the number of iterations with which to draw the Koch curve using a slider in the display window. The Koch curve should be redrawn each time the value of the slider is changed.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
05:19

Problem 6

Write a program to generate a fractal curve for a specified number of iterations using one of the generators in Figure 7 or Figure 8 . What is the fractal dimension of the curve?

Prathan Jarupoonphol
Prathan Jarupoonphol
Numerade Educator
03:36

Problem 7

Modify the program in the previous exercise to allow the user to set the number of iterations with which to draw the chosen fractal using a slider in the display window. The chosen fractal should be redrawn each time the value of the slider is changed.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
01:05

Problem 8

Write a program to generate fractal curves using the self-squaring function $f(z)=z^{2}+\lambda$, where the complex constant $\lambda$ is specified as input.

Hast Aggarwal
Hast Aggarwal
Numerade Educator
03:51

Problem 9

Write a program to generate a fractal curve using the self-squaring function $f(z)=i\left(z^{2}+1\right)$, where $i=\sqrt{-1} .$

Martha Richards
Martha Richards
Numerade Educator
03:28

Problem 10

Modify the programming example in Section 1 to use additional color levels in displaying the boundary regions around the Mandelbrot set.

AG
Ankit Gupta
Numerade Educator
05:58

Problem 11

Modify the program in the previous exercise to allow the colors and number of color levels to be given as input values.

Darren Wilson
Darren Wilson
Numerade Educator
03:18

Problem 12

Modify the program in the previous exercise to select and display any rectangular boundary region (the zoom area) around the Mandelbrot set.

Harshita Goel
Harshita Goel
Numerade Educator
00:23

Problem 13

Write a routine to implement point inversion, Equation 14, for a specified circle and a set of point positions.

AG
Ankit Gupta
Numerade Educator
03:24

Problem 14

Devise a set of geometric-substitution rules for altering the shape of an equilateral triangle.

Jay Patel
Jay Patel
Numerade Educator
02:53

Problem 15

Writea program for the previous exercise that displays the stages in the conversion of the triangle. Allow the user to move forward and backward through the stages using keyboard input.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
03:54

Problem 16

Write a program to model and display an exploding sphere in the $x y$ plane, using a particle system. Specify a beginning and end configuration for the explosion and divide the interval between the two into several frames, each of which the user can view by moving forward and backward using keyboard input.

Foster Wisusik
Foster Wisusik
Numerade Educator
01:30

Problem 17

Modify the program of the previous exercise to explode a firecracker (cylinder) in a similar way, allowing the user to step back and forth through each frame of the explosion.

Narendra Kumar
Narendra Kumar
Numerade Educator