Texturing Terrain!!! (Help me save my keyboard)

Hey

This is my first post as I have only just found this board. Here goes:

I have written a program that generates a 3d representation of an image (landsat images etc) which kinda works fine. What I want to do is overlay the original image over the top to give a realistic look to the generated terrain but I do not seem to know how to do it. Please could some one suggest a way and point me in the right direction as my keyboard has teeth marks in it and I’m not sure how long its going to last. ???

I hope my request for help isn’t too vague, but I am really very stuck on this which is a bit annoying as this really should be the simplest part.

ps. the image is 128 x 128 pixels, the generated terrain matches that size so in theory I should be able to stretch it across the image with little effort.

You have two options.

  1. If the resolution is low (128 x 128 sounds low) consider using vertex coloring.
  2. Use texture mapping. There is a good explanation in the J3D tutorial.

Cheers I managed to get the terrain textured earlier today. Decided to go right back to basics and start again so that almost seems to be sorted now, only problem remaining is that the texture comes through green. Ideas any one as I do not see a reason for this?

Ooops sorted that too!!! ;D

Makes you wonder doesn’t it? ;D