I am having a problem with one of the new features of Panda3d, the heightfield terrain. Using the following code I managed to create and display a heightfield, but I failed to give it a texture.
The terrain can be seen in the render window, but it is ‘monochrome’ and not textured. The colour could be one of the colours used in the texture, so I guess vertex colours work. I have tried to use TextureStages, but with the same result.
If anyone has an idea what I have done wrong when setting the texture, please tell me. Thanks in advance.
enn0x
The generated terrain doesn’t have texture coordinates. (I wonder if I should make that an option). Assuming you’re not using shaders, the easiest way to assign texture coordinates is using the method shown here: