<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>
Hi Ted, Michael and all<BR>
&nbsp;<BR>
I threatened to throw the code at you:<BR>
&nbsp;<BR>
<A href="http://cid-382e99b169b58267.photos.live.com/browse.aspx/Tiffn3D%5E_related?nl=1&amp;uc=2">http://cid-382e99b169b58267.photos.live.com/browse.aspx/Tiffn3D%5E_related?nl=1&amp;uc=2</A><BR>
&nbsp;<BR>
The directory also contains the 21 kb exe that is generated. It executes from my 64bit win7 pc (probably with the Xna.Framework runtime present). - anyway .. anyone new to 3D can have a go at it and try to modify the code. <BR>
The step from the stream=Decoder.Frame[0] to the finished Vertices is probably too confusing to examin in detail: The binaryReader reads consecutive values when looping x, but changes position a whole stride of the original tiff for every y loop (I open a 6000*6000 tiff and look at 400*400). <BR>
&nbsp;<BR>
Carsten<BR>
&nbsp;<BR>
'''''''''''''''''''''''''''''''''''''''''''''''''''<BR>
Uncommented source-code for Tif-Viewer<BR><BR>On the opening-screen press F to get an Openfile-dialog.<BR>Pick a Tiff that presents a hight-field.<BR>The first 400*400 'points' will be displayed.<BR>Use mouse-drag and mouse-wheel to move the object around.<BR>Rightclick to switch between move-object and swing-camera.<BR><BR>The dependancies are:<BR><BR>Microsoft.Xna.Framework<BR>Microsoft.Xna.Framework.Graphics<BR>System.Xaml<BR>PresentationCore<BR>WindowsBase<BR>+ whatever for a windows form<BR>&nbsp;<BR>                                               </body>
</html>