Environment Map Example?

Hi,
does anyone have a code fragment example of an environment spherical map texture in jogl? I have 2D textures working, but can’t find an example of environment mapping.
Thanks
-j
???

You can take a look at Xith3D - it has functional support for spherical map texture, as well as working example.

If you need pure JOGL example, take a look at NeHe Lesson 23 - it demonstrates spherical map very well.

Yuri

I found NeHe lesson 23 in the mean time, and it works!
;D
Thanks
-j
::slight_smile:

sorry for the super-newbie question but what is an environment map? Just a complete environment like a sky and land textured on a sphere around you, or what?

[quote]Just a complete environment like a sky and land textured on a sphere around you, or what?
[/quote]
In simple words, yes. Not nesessary on sphere, but in the case above on semi-sphere, in more complicated (and more interesting) case on a cube. Not only sky and land, but it’s also possible to put other objects on the env texture to ptoduce realistic reflections.

Yuri