OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: BumpMapping
View page
Source of version: 7
(current)
!BumpMapping A graphical technique that causes a flat surface appear to have depth by altering lighting on the surface according to in-scene lights and camera position. This is commonly used to increase the perceptual complexity of a model without increasing the amount of geometry in the model itself. It is similar to parallax mapping, and operates on a principle similar to normal mapping. Ogre fully supports all of your normal/bump mapping needs. Normal mapping and bump mapping are almost identical, therefore I will be referring to the two techniques collectively as: Normal mapping. !!What is Normal Mapping? Normal mapping is a texturing technique that allows for the program to use the surface normal values of a high polygon object to simulate the same lighting on a lower polygon object. The results are striking when combined effectively and is an extremely effective technique to increase the realism of your objects at much less cost than using the actual high polygon mesh. !!What is the difference between normal and bump maps? [http://en.wikipedia.org/wiki/Normal_mapping|This article] sums up the differences pretty well. !!How can I make normal maps? Using freely available tools from ATI, NVIDIA, and a program called ORB (open render bump) you can take your two meshes (high and low polygon count) and generate a normal map. There is a [http://nifelheim.dyndns.org/~cocidius/normalmap/|free normal map tool for GIMP]. Blender modeling tool has [http://www.blender3d.org/cms/Normal_Maps.491.0.html|special resources for Normal maps]. You can also use Blender with the ATI normal mapper: ((Tools: Blender|#ATI .nmf Interface|ATI .nmf Interface)) TSGames also provides a free to use way of simply generating normal maps from textures. [http://www.tsgames.de/content/Normal_Map_Generator-137.html|Look it up here]. Note: You can use the tool in english and german. [http://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop|Free NVidia Normal map filter for Photoshop] !!How do I use normal maps in Ogre? By creating a proper .material script silly. Check out the official docs for more information along with the Dot3Bump demo that comes in the official ogre download. Specifically the files in \media\materials\scripts\Examples-Advanced.material - the materials are Examples/BumpMapping/MultiLight and similarly named items. Note that they reference vertex and fragment programs defined in Cg to do the heavy lifting. You also need to generate tangent vectors for your meshes if the normal map is in tangent space. Ogre can do this for you ahead of time if you use the '-t' parameter to the command line tools OgreXmlConverter or OgreMeshUpgrade. Otherwise, you can generate them in code like this: {CODE(wrap="1", colors="c++")}unsigned short src, dest; if (!pMesh->suggestTangentVectorBuildParams(src, dest)) { pMesh->buildTangentVectors(src, dest); } {CODE} !!Limitations of Normal Maps Normal maps may be the bee's knees but don't get carried away. Along with everything there are some downsides: * They do incur a performance hit larger than an ordinary texture * Without a good base model/unwrapping, normal maps can sometimes cause lighting distortions
Search by Tags
Search Wiki by Freetags
Latest Changes
One Function Ogre
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
...more
Search
Find
Advanced
Search Help
Online Users
196 online users