Skip to main content
GameDev.net gamedev.net
🔒 Locked

Environment Maps ?

Started by GameDev.net Aug 2, 1999 at 7:12 PM 2 replies 950+ views
Original Post
GameDev.net
GameDev.net
Could someone please explain to me what an environment map is ?
Phillip Schuster
Phillip Schuster
Hi !!

An environment map is nothing else than a normal texture. Environment mapping is a different algo than texture mapping. Normal texture mapped objects have fixed UV (so texture coordinates) for every vertex. They do not change even when they are rotated.
With environment mapping, the uv's are changing when you rotate the object. So the uv's are fixed by the environment. The best example would be a sphere. While with normal texture mapping you would see the texture of different sides when you rotate the sphere (imagine a sphere with an earth texture map, first you see Europe than america, then asia, india, and so on). With Environment mapping you always see Europe even when you rotate the object, because the uv's aren't fixed to the object but fixed to the environment. I hope this is understandable.
This is normally used to create great mirror and specular lighting effects.
I hope this helps.

Phillip

Phillip Schuster
Diego
Diego
Hi, I think (but I'm not sure) that an environment map is also used for 3D "backdrops". The best example I can think of is the sky textures in Quake2. The sky texture moves differently than the other textures b/c it's in the background. Someone please correct me on this if I'm wrong.

------------------
<Diego>

-Diego"What is wrong with the world today, the government, the media, or your family?"~Papa Roach
druid-
druid-
The term usually refers to what Phillip describes (with an added notice that the UV texture coordinates are generated based on the vertex normals).

Quake2's background was a skybox, so no texture coordinate generation going on there. Without going to deep into it, a skybox is a cube mapped with textures taken from an environment rendered with 180 FOV. When it's projected in the scene, it's projected to infinity (no depth writes) and rotates with the viewpoint.

------------------
Scott Franke [druid-]
sfranke@usc.edu
druid-'s GL Journal
http://www.gamedev.net/opengl

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.