I have a tiff that is 2825x3000 which I want to paint onto a surface created
from an elevation data field that is a regular grid 1113x984 (they both span
the same range of x, but the tiff has a border on the y sides). If
necessary I could crop the tiff to make the aspect ratios the same.
Your problem starts right here. No, they don't have the same range of
x. The tiff has an x range of 2825 and the elevation data has an x
range of 1113.
I know what YOU mean, but DX can't read minds, yet (version 5.x).
A tiff is a 2D grid of positions carrying colors (no data) when
ReadImage brings it in. (Use Print("rd") to see this.)
You may be able to Map the tiff colors to the elevation data, but
only after you convince DX that the tiff overlays the elev grid
appropriately. Or Construct a mesh of 2825x3000 with the same spatial
origin and extents as the elev grid, then Map the elev to this mesh.
THEN, Replace the tiff to this mesh (I don't like this idea cause
you'll get interpolated elevations, but it would work).
You certainly can't simply Replace a grid of XxY positions onto a
grid with UxW connections and expect it make sense. Replace assumes
you won't do bad things like that. (The Structuring category has
several power saws without protective covers, Replace and Remove
being my favorites for destroying things.)
Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]