My Account


RSS
oZone3D.Net RSS Feeds»RSS 2.0 Feeds

Blogs
»The Geeks Of 3D
»Demoniak3D Blog
»JeGX's Infamous Lab

Sponsors

Modul8: real time video mixing and compositing


Link to Us

oZone3D.Net 100% Realtime 3D

»All Links

Search
Google
Web
oZone3D.Net

Web Partners

www.benchmarkhq.ru
www.tdt3d.com
www.steph3d.net
www.g-truc.net
www.worldpcspecs.com


Banners Exchange

cgindia.blogspot.com
grapejuice.c.la
www.game-lab.com
www.cooki3d.org


Links Exchange

»CYGAD's 3DXtra
 
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







Language:


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


GPU Caps Viewer
Current Version: 1.4.2
»GPU Caps Viewer
»GPU DB Submissions


FurMark
Current Version: 1.3.0
»FurMark
»Benchmark Submissions
Page generated in 0.076950788497925 seconds.