<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Harold wrote:<BR>&nbsp;<BR>DirectX supports very simple points and lines as colored vertices pretty easily, but you will have to convert the double precision coordinates into single precision floats.&nbsp; You can support more symbolic points and lines by textured vertices and GDI drawing to create a bitmap that you convert into a texture.&nbsp; You can vertices organized as two triangles that form a square for points or an elongated rectangle for lines.&nbsp; You can have transparent textures, so it's ok if your vertices are bigger than your shape.&nbsp; Remember that traditional Z-ordering by drawing sequence is not really going to be used in 3D since you will be working with 3D constructs.&nbsp; In order to fill polygons properly by using triangles you have to do tessellation.&nbsp; Alternately, you can draw them as a texture on a pair of triangles like with points and lines.&nbsp; My experience is that DirectX did not support tessellation directly, but OpenGL does.&nbsp; You can use Tao open GL in order to get that to work in C#.&nbsp; So basically you could start with the mapwindow or DotSpatial tools for reading the shapefiles themselves, pick a reference scale in order to transform the geographic coordinates into floats, and then use Tao OpenGL to get the tessellated polygons.&nbsp; I am not aware of any existing tools that do that sort of thing other than what we created, but there may be something out there now.<BR><BR>Good luck. <BR><BR>...............<BR><BR>
<DIV class=ecxgmail_quote>&nbsp;</DIV>
<DIV class=ecxgmail_quote>Thank you Harold</DIV>
<DIV class=ecxgmail_quote>&nbsp;</DIV>
<DIV class=ecxgmail_quote>Not that it matters, but wouldn't a point .. presumably painted as a small square .. always face toward the screen, where two triangles representing a square has 'proper' facing and culling.</DIV>
<DIV class=ecxgmail_quote>I think that I've come across a couple of references to tesselation or triangulation&nbsp;work, but I'm not sure weather it's been open libraries. Everyone that makes 3D appears to face the same need of triangulation stuff. </DIV>
<DIV class=ecxgmail_quote>I'll finish my 3D window up with an 'openfiledialog' to pick terrain-tifs, and throw the code at you. It's not very long but does take a reference to Xna.Framework (wouldn't it be enugh to download the Xna-runtime?). It's not properly geo-coded .. the terrain raises from a flat square, so it probably&nbsp;won't work well with other data.</DIV>
<DIV class=ecxgmail_quote>About the textures .. it would be so tempting to drape a scene with an air-photo, but I'll let google about that for now. </DIV>
<DIV class=ecxgmail_quote>&nbsp;</DIV>
<DIV class=ecxgmail_quote>Carsten </DIV>                                               </body>
</html>