PDA

View Full Version : Texture Mapping on irregular mesh



mphanke
03-31-2002, 01:46 AM
glHi,

I have a model which looks more or less like that:
I......I
I......I
I.I~~I.I
I.I~~I.I
I.I~~I.I
I.I~~I.I
I.I~~I.I

Legend:
I -> Border of Model
. -> Inside Model
~ -> Outside Model

The other thing is the model isn't flat. The texture I have is the same size as the model (but still power of 2).
What would be the fastest way to compute the UV-Coordinates?

glThanks,

Martin