[DotNet-OSGeo] RE: 3D display

Carsten Troelsgaard troelsgaard53c at live.dk
Sat Jun 4 04:49:01 EDT 2011


 
Hi Ted, Michael and all
 
I threatened to throw the code at you:
 
http://cid-382e99b169b58267.photos.live.com/browse.aspx/Tiffn3D%5E_related?nl=1&uc=2
 
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. 
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). 
 
Carsten
 
'''''''''''''''''''''''''''''''''''''''''''''''''''
Uncommented source-code for Tif-Viewer

On the opening-screen press F to get an Openfile-dialog.
Pick a Tiff that presents a hight-field.
The first 400*400 'points' will be displayed.
Use mouse-drag and mouse-wheel to move the object around.
Rightclick to switch between move-object and swing-camera.

The dependancies are:

Microsoft.Xna.Framework
Microsoft.Xna.Framework.Graphics
System.Xaml
PresentationCore
WindowsBase
+ whatever for a windows form
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/dotnet/attachments/20110604/bd9887d3/attachment.html


More information about the DotNet mailing list