SlideServe
Menu
Préférences
© SlideServe · v2026

Projective Textures

carly-booker avatar
10 diapositives · 344 Views · Nov 20, 2014

Projective Textures. Michael I. Gold NVIDIA Corporation. Projective Textures. Overview Texture coordinates can be transformed by a matrix (e.g. a perspective projection) OpenGL generalizes texture coordinates to 4-component homogenous coordinates q coordinate is analogous to w

Projective Textures - slide 1
01 / 10Projective Textures
1 / 17

Télécharger la présentation

Projective Textures
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Projective Textures Michael I. Gold NVIDIA Corporation

  2. Projective Textures Overview Texture coordinates can be transformed by a matrix (e.g. a perspective projection) OpenGL generalizes texture coordinates to 4-component homogenous coordinates q coordinate is analogous to w Texture image can be subjected to a projection independent from the viewing projection

  3. Projective Textures • Use to simulate effects: • Slide projector • Spotlight illumination • Shadows • Reproject photograph of an object onto object geometry

  4. Projective Textures • Texture Projection • Define texture with a white border and set wrap mode to GL_CLAMP, texture environment GL_MODULATE • Load texture matrix with desired projection • Enable GL_EYE_LINEAR TexGen • Vertex coordinates transformed by texture matrix become texture coordinates • Draw geometry with texture mapping enabled

  5. Projective Textures • Spotlight Effects

  6. Projective Textures • Spotlight Effects • OpenGL computes spotlight illumination at vertices and interpolates -> undersampling artifacts • Use texture image as spotlight projected from light position to modulate illumination

  7. Projective Textures • Spotlight Effects 1. Initialized depth buffer 2. Clear color buffer to scene ambient value 3. Draw scene with depth test enabled, color updates disabled 4. Bind and enable spotlight texture, set texenv to GL_REPLACE 5. Enable texgen functions, load texture matrix 6. Enable blending, blend func GL_ONE, GL_ONE

  8. Projective Textures • Spotlight Effects 7. Disable depth updates, set depth func to GL_EQUAL 8. Draw scene - color buffer now contains spotlight + ambient light 9. Disable spotlight texture, texgen, texture transformation 10. Set blend func to GL_DST_COLOR, GL_ZERO 11. Draw scene with normal illumination

  9. Projective Textures • Spotlight Effects • 3 passes: • Accumulate ambient illumination and establish depth • Accumulate spot illumination • Modulate scene with accumulated illumination • Additive texenv would permit collapsing passes 1 and 2 • Multitexture extensions allow single pass rendering

  10. Projective Textures • Spotlight Effects • Back projection can produce unwanted illumination • Watch out for inexactness in rasterization when texgen enabled