clic to reload the forum home - Cliquez pour recharger le forum
The homepage Blog in englishLe blog de la page d'accueilVisit the english language forum!Allez directement au forum françaisGo to the gallery! - Allez visiter la galerie !The files to download - textures, softwares, etc.Les fichiers à télécharger : textures, logiciels, etc.3D and 2D challenges!Come and talk together in realtime - Venez tous discuter ensemble !About Polyloop.netA propos de Polyloop.net

Go Back   Polyloop - 3D & 2D Forums > English > Misc - discussions, what you want !

Misc - discussions, what you want ! Free talking is here! Your website, you car, a computer problem, then, this is the good forum!

Reply
 
LinkBack Thread Tools Display Modes
Old 14th September 2007, 15:34   #1 (permalink)
Hexagoner
 
mayito7777's Avatar
 
Join Date: Nov 2004
Location: Saint Cloud, Florida
Posts: 750
Images: 13
Newbie's Corner 4

Today we are going to talk about Bump mapping

Bump mapping is a computer graphics technique where at each pixel, a perturbation to the surface normal of the object being rendered is looked up in a heightmap and applied before the illumination calculation is done (see, for instance, Phong shading). The result is a richer, more detailed surface representation that more closely resembles the details inherent in the natural world. Normal mapping is the most commonly used bump mapping technique, but there are other alternatives, such as parallax mapping.

The difference between displacement mapping and bump mapping is evident in the example images; in bump mapping, the normal alone is perturbed, not the geometry itself. This leads to artifacts in the silhouette of the object (the sphere still has a circular silhouette).



A sphere without bump mapping.



The bump map that is applied to the image below.



This sphere is geometrically the same as the first, but has a bump map applied. This changes how it reacts to shading, giving it the appearance of a bumpy texture resembling that of an orange.

Fake bump mapping
Programmers of 3D graphics sometimes use computationally cheaper fake bump mapping techniques in order to simulate bump mapping. One such method uses texel index alteration instead of altering surface normals, often used for '2D' bump mapping. As of GeForce 2 class card this technique is implemented in graphics accelerator hardware.

Full-screen 2D fake bump mapping, which could be easily implemented with a very simple and fast rendering loop, was a very common visual effect in the demos of the 1990s.

Real bump mapping
Real bump mapping makes use of calculating vectors for each pixel determining the height map. This can be as little as two lines of code for calculating the X and Y gradient at every pixel or it can be more complex; the final result is that of calculating the slope, so code complexity may not matter. Next a code is made to have these vector point calculations aligned with the U and V axis of the bump map it came from on the normal for the normal to be adjusted correctly. Then the typical lighting transforms the normal’s U and V texture pixel shade by comparing the vector direction point in the map with the light’s normal X, Y and Z point calculation in its segments or pixels like a graph. If the point is more at the light, then it’s brighter, the points facing further away from the light actually get darker more quickly.

If low resolution lights are used like a low pixel non-filtered specular from an earlier shader model, you can see how it works up close, looking like a sweep of animation.

On a normal map instead of vectors calculated per-pixel through small coding it's stored as a certain color in the map. Then the same happens on the light's point and X and Y span.

In some cases real bump mapping can cost less than emboss bump mapping because of the number of passes and amount of texture layers required to produce it; emboss bump mapping uses 2 to 3 extra passes, while real bump mapping can be done in one extra pass or texture layer. Also, it costs less than normal mapping, as normal mapping usually needs more than one pass due to its multi-channel structure.

Requirements
Stable real bump mapping requires either a built in shader programming unit on the GPU (vertex shader) or a dedicated vector processing unit connected to the GPU. The GPU must also have multi-pass rendering capabilities or bump mapping will be the only type of texture effect available due to a two texture layer limit.

The Emotion Engine on the Sony PlayStation 2 is an example of handling bump mapping through a vector processing unit. Sony included 2 vector processors rather than a GPU shader that could be used for bump mapping operations. The system could calculate height maps independently while the per-pixel calculations were carried out in one of the vector processing units. Unfortunately this capability was not used much until nearly the end of the system's life cycle with games such as Hitman: Blood Money[1].

Most other systems, including the Sony PlayStation 3, Microsoft Xbox, Microsoft Xbox 360, and most PC graphics cards do bump mapping using pixel shaders.

Note: From Wikipedia, the free encyclopedia
__________________
Seek and ye shall find. JESUS

Hexagon 2|Carrara 6 Pro|Photoshop CS2| Painter X



http://richchurchtoday.blogspot.com/
mayito7777 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT +2. The time now is 05:02.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Polyloop - 3D & 2D Community Forum - © Thomas Roussel