Multi-textured Terrain in OpenGL

preview_player
Показать описание
This is a Terrain demo created using Terragen classic to generate the heightmap, and OpenGL's fixed-function pipeline to render the terrain. The texture blending is done with a combination of the GL_ARB_multitexture and GL_ARB_texture_env_combine extensions.

Check out the full article at:

Рекомендации по теме
Комментарии
Автор

But what about mipmaps? How to make them when using 3d textures?

favkisnexerade
Автор

ok I think it's a clock() issue. on linux we have to use gettimeofday...

roarc
Автор

Hey! I have to make a project in openGL : a seasons simulator (winter, spring, summer, autumn). i have your project. i've built it on windows8.1, but it don't work. it has error: fail to load the image. why?

valyk
Автор

Hi Jeremiah, awesome demo. This article is one of the best tutorials I have found online. Could this texture blending also be done using the programmable pipeline with GLSL? Any ideas?

maddie
Автор

great demo :)
I've built it on linux. everything woks except for wasd movement. there were a typo in glm eularAngles -> eulerAngles of Camera.cpp but the movement is still not working.

ps. for linux users the rough build string is this. (I usally build things like this before writing a makefile)

g++ *.cpp -o terrain $(pkg-config --cflags --libs glew) -lglut -lboost_system -lboost_filesystem -Ilib/soil -Llib/soil -lSOIL 

soil wasn't listed in system packages so i had to build it locally.

roarc