13
Texture Jackie Hundley

Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

  • View
    216

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

TextureJackie Hundley

Page 2: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Color Mapping These are full color images that These are full color images that are applied to the model's are applied to the model's surface. Any markings or graphics surface. Any markings or graphics are incorporated into the color are incorporated into the color map. The completed model below map. The completed model below wears a total of 131 texture maps.wears a total of 131 texture maps.

Page 3: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Bump Mapping

Bump mapping can give the visual illusion Bump mapping can give the visual illusion of the presence in the surface of small of the presence in the surface of small bumps, holes, irregularities, carvings, bumps, holes, irregularities, carvings, engraving, scales, and so on; if managed engraving, scales, and so on; if managed efficiently, this can be achieved at a very efficiently, this can be achieved at a very small fraction of the rendering time that small fraction of the rendering time that would be necessary for an object with would be necessary for an object with similar characteristics modeled as similar characteristics modeled as geometry.geometry.

Page 4: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Bump Mapping Bump mapping can give the Bump mapping can give the visual illusion of the presence in visual illusion of the presence in the surface of small bumps, the surface of small bumps, holes, irregularities, carvings, holes, irregularities, carvings, engraving, scales, and so onengraving, scales, and so on.

Page 5: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Diffusion Mapping Depending on  values, the Depending on  values, the surface will appear dull and dirty surface will appear dull and dirty or bright and clean. Works well for or bright and clean. Works well for illustrating grease grime and worn illustrating grease grime and worn paint.paint.

Page 6: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Turbulence

A simple turbulence function can A simple turbulence function can be computed by summing many be computed by summing many different frequencies of noise different frequencies of noise functionsfunctions.

Turbulence can be used to Turbulence can be used to generate beautiful 3D marble generate beautiful 3D marble textures. The idea is simple. Fill textures. The idea is simple. Fill space with black and white stripes, space with black and white stripes, using a sine wavefunction. Then using a sine wavefunction. Then use turbulence at each point to use turbulence at each point to distort those planes.distort those planes.

Page 7: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into
Page 8: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

The snake was rendered with a color texture map for the skin markings and a bump map for the scales.

Page 9: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Textures and Cylinders

Page 10: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

//First the pencil body - this uses a 6-sided cylinder...

PencilTexture = TextureLoad("pencil.bmp", GL_FALSE, GL_LINEAR, GL_LINEAR, GL_REPEAT);

gluQuadricNormals(PencilObj, GLU_FLAT);

glBindTexture(GL_TEXTURE_2D, PencilTexture);

gluCylinder(PencilObj, 5.0, 5.0, 40.0, 6, 2);

Page 11: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

//Then the ends - a cone at the tip and a flat cone at the base...

LeadTexture = TextureLoad("lead.bmp", GL_FALSE, GL_LINEAR, GL_LINEAR, GL_REPEAT);

gluQuadricNormals(PencilObj, GLU_SMOOTH);glBindTexture(GL_TEXTURE_2D, LeadTexture);

gluCylinder(PencilObj, 5.0, 0.0, 7.5, 6, 2);

/*Normally we might use a disk shape for this, but unfortunately the texture coordinates don't match up...*/

gluCylinder(PencilObj, 5.0, 0.0, 0.0, 6, 2);

Page 12: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

References

http://www.cs.nps.navy.mil/people/faculty/capps/4473/projects/01Summer/textures/2d%20texture%20mapping.htm

http://developer.nvidia.com/object/cube_map_ogl_tutorial.html

http://www.cs.berkeley.edu/~ug/slide/docs/slide/spec/spec_frame_hierarchy.shtml

Foley, J, A. Dam, S. Feiner, and J. Hughes. Computers Graphic: Principles and Practice, 2d. Reading, MA: Addison-Wesley.

Wright, R. and M. Sweet. Color, lighting, and materials. In OpenGL Super Bible, 2d. Indianapolis: Waite Group Press.

Page 13: Texture Jackie Hundley. Color Mapping These are full color images that are applied to the model's surface. Any markings or graphics are incorporated into

Questions?Thank you