FurMark
Current Version: 1.13.0
»FurMark homepage
»FurMark 1.9.x Submissions

GPU Caps Viewer
Current Version: 1.20.1
»GPU Caps Viewer homepage
»GPU DB Submissions

PhysX FluidMark
Current Version: 1.5.2
»FluidMark homepage
»FluidMark 1.4.x Submissions

GeeXLab
Current Version: 0.4.0
»GeeXLab homepage
»GeeXLab Overview

GPU Shark
Current Version: 0.8.0
»GPU Shark homepage

TessMark
Current Version: 0.3.0
»TessMark homepage

ShaderToyMark
Current Version: 0.3.0
»ShaderToyMark homepage
»ShaderToyMark Scores

Blogs
»JeGX's HackLab

Geeks3D's Articles
»GPU Memory Speed Demystified

»Multi-Threading Programming Resources

»GeForce and Radeon OpenCL Overview

»How to Get your Multi-core CPU Busy at 100%

»How To Make a VGA Dummy Plug

»Night Vision Post Processing Filter


Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples

Language

Language:

3D Graphics Search Engine:

The Geeks Of 3D

 
The Art of Texturing Using The OpenGL Shading Language

By Jerome Guinot aka 'JeGX' - jegx [at] ozone3d (dot) net

Initial draft: April 15, 2006


[ Index ]

Introduction | Page 2 | Page 3 | Page 4 | Page 5 | Page 6 | Page 7 | Page 8 | Conclusion

»Next Page



Stumble it! | | | |


GLSL Texturing Tutorial


1 - Introduction

2 - Simple Texturing

3 - Multi Texturing

4 - Environment Mapping

4.1 - Spherical Environment Mapping

4.2 - Dual Paraboloid Environment Mapping

4.3 - Cube Environment Mapping

5 - Special Textures

5.1 - Gloss Maps

5.2 - Alpha Maps

6 - Texture Warping

7 - Textures Rectangles

8 - Projective Texture Mapping

9 - Conclusion

10 - Further Reading

11 - Downloads




Required knowledge



1 - Introduction

The aim of this tutorial is to show how to implement the main techniques of texture mapping in GLSL (OpenGL Shading Language). Simple texturing, multitexturing, environment mapping (sphere, dual paraboloid and cube), texture warping, projective texture mapping as well as some examples of special textures (alpha and gloss maps) will be studied.

We will focus on texturing in the pixel shader (Pixel Texture Fetching - PTF). Texturing using vertex shader (or Vertex Texture Fetching - VTF) has been discussed in a previous tutorial: Vertex Displacement Mapping.

We will use the Demoniak3D Demo-System in order to quickly code the demos and GLSL shaders.

The texturing being a quite complex domain with infinite possibilities particularly with the use of realtime shaders, this tutorial wants before all to be an introduction to the basic techniques which, once mastered, will allow to approach all others with serenity.

Before diving into code, I would like to thank Delilah to have let me use (and warped in passing) some of her productions (in the simple and multitexturing, sphere env mapping, texture warping and texture rectangle parts). Grazie tante Delilah, ed in bocca al lupo per i tuoi esami, ce la farai, sei bravissima!

OpenGL.org





[ Index ]

Introduction | Page 2 | Page 3 | Page 4 | Page 5 | Page 6 | Page 7 | Page 8 | Conclusion

»Next Page








GLSL Hacker
»GLSL Hacker Homepage


PhysX 3 cloth demo


Normal visualizer with GS


Compute Shaders test on Radeon


Raymarching in GLSL



Geeks3D latest news


Geeks3D forum news


Misc
»Texture DataPack #1
»Asus Silent Knight CPU Cooler
Page generated in 0.07765793800354 seconds.