Advertisement

Terrain Texturing

Started by January 03, 2003 09:22 AM
4 comments, last by arkansas 22 years, 2 months ago
Hey I made a terrain with a grayscale image. But now I want to put more than one texture on there. I tried to do it via the point height. When the point got a certain height, he is supposed to bind a snow texture (mountains) and everything under this height is supposed to be covered by a earth texture. Well.. It''s not working exactly as I thought. The problem is that it changes the texture at a certain x coordinate and not at the wanted y coordinate. Am I doing it the wrong way or did I forget something?? arkansas
Maybe you can send in a picture of whats goin wrong?
Advertisement
i would suggest using multitexturing to get your snow wher eu want. It sounds like your trying to map certian triangles denoted by the height. Using multitexturing woudl also allow you to get a better looking effect as you can fade into the snow etc. This would only work if you knew the terrain ahead of time. Not to well if you will be mapping random terrain.

Then again mayb ei''m talking out of my @$$?

IT Administrator / Software Engineere
http://drdsoftware.cjb.net
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
Maybe your x, y, or z coordinates are somehow switched. Instead of checking for y coordinate as hight, try checking for x or z coordinate as hight.
hey

But if I would use multitexturing it would been done the same way, wouldn''t it. The problem is, I can''t make stuff like multitexturing because I''m working with a laptop. The video card doesn''t support it.
I also had the idea with the switched coordinates before. I mean it can''t be, but I was so damn frustrated that I tried that too.

If somebody is interested I could send a screen shot via email.

It doesn''t matter which coordinate I use. When I tell it to start at height 100 it starts at x 100. Could it be that the problem is that I''m working with GL_TRIANGLE_STRIP and 2 Vertices??

This topic is closed to new replies.

Advertisement