View Full Version : Environment Mapping!?
02-08-2000, 07:34 AM
Has anyone got an idea how to do Environment Mapping on Polygons?
Can it be obtained only by using OpenGL Extensions or is there any other way!
Thanks for your Help in advance!
you can easily obtain environment mapping with the opengl sphere map.
however, it is not a real EM... much like chrome effects in old demos.
// activate sperical EM texture coord generation
// for this to work properly, you need to specify almost one normal per face
// since the sphere mapping algorythm need to know how your faces are oriented about the viewer (origin)
// activate screen blending mode, don't light primitives
// make texture ready
glBindTexture(GL_TEXTURE_2D,<texture id> );
<draw your primitives w/normals>
should be everything you need to start...
I have an example of doing environment mapping with and without an OpenGL extension on my webpage. The examples are on my programming page, they are the first two programs at the top of the page.
02-08-2000, 12:24 PM
Thanks a lot for your Help!!
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.