I’ve some problems in the displace script
I try to explain the rebus…
The script use only greyscale tga, not compressed. After
reading the image, I’ve the imagedata stored
in a list like
pixelColor = [255, 100,255, etc…]
where each value is the greyscale value of each pixel. This is simpler
of rgb image, where I must handle 3 value for each pixel.
The problem is recover the correct index in this list using the UV coordinates.
Actually I using this formula (for not zero based list):
sizeX*U + sizeX * (sizeY *V -1)
but it dont’ work correctly for all cases. I’m begin crazy
to try the correct formula. I’m trying to study the UVexportmap
script, but it’s very complex and rgb based…