Yeah that will work, ....even simpler with an array.
[code:3cig86vh]+ Array: For Each element
-> Sprite: Set relative displacement at (Array.CurrentX-1, Array.CurrentY-1) to XYZ(0, 0, ImageManipulator.GetR(Array.CurrentX-1, Array.CurrentY-1)) UV(0, 0) 100 % [/code:3cig86vh]
Ok perhaps not as simple to figure out for those who have trouble with 0 based stuff, but ehh..
Keep in mind you would still need a third loop if you want to do some comparisons, like applying a color filter to a certain range, etc.
[quote="Madster":3cig86vh]and displacing a different sprite instead of the heightfield pretty much gives you textured 3D backgrounds.
Wohoo! Now we can talk about something else
All you have to do is change the frame after wards, unless you want to export the mesh.
Also, I might point out, that this doesn't have to be just for grayscale. You could use this for bumpmapped, or baked maps(aka normal maps) as well, by adding a green loop, and a blue, but of course it would take much longer to process.