<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Well, I don&#8217;t actually use Draw.Point &#8211; from within D3D, I set up an array of points in a vertex buffer and render them using POINTLIST.&nbsp; Which is the same thing, essentially, I think.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-mpg<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> dotnet-bounces@lists.osgeo.org [mailto:dotnet-bounces@lists.osgeo.org] <b>On Behalf Of </b>Carsten Troelsgaard<br><b>Sent:</b> Wednesday, June 01, 2011 3:27 PM<br><b>To:</b> dotnet@lists.osgeo.org<br><b>Subject:</b> RE: [DotNet-OSGeo] RE: 3D display<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>&nbsp;<br>I asked in on the Draw.Point becourse I havn't used it myself and am puzzled on what Michael uses it for. I'm bound to the facetted effect you get from vertices with color and normal. The bmp below is painted as a model with textured&nbsp;vertices .. it's example-code that I cannot replicate becourse I get lost in the Xna pipeline. But I could swap my own heightfield into it&nbsp;<br>&nbsp;<br><a href="http://cid-382e99b169b58267.office.live.com/self.aspx/Gimmi/snap.bmp">http://cid-382e99b169b58267.office.live.com/self.aspx/Gimmi/snap.bmp</a><br>&nbsp;<br>It's got the blurred effekt that I don't want. If zoom and other input is swift, I can live with an 'unnormal' facetted&nbsp;look. I alwayes stayed away from using textures, becourse it's just one step away from shifting focus from a well-defined comprehensieve&nbsp;tema to a&nbsp;look-alike reality. I'm somewhat artistic educated too (arthandwork), and it's my experience that you can make people imagine anything .. provided you have their confidence. It sounds personal, but it's not. Cheeting has to be very professional if it has to be. I hope that I can convey an impression of a&nbsp;'modelle' world .. which ought not be too difficult. I assume that it's going to a background to some specific tema. My cheeting in real&nbsp;drawing would be eqvivalent to adding a fog-factor to enhance the focus.<br>&nbsp;<br>The zoom in will have a limit either way one go about it. If I did have unproblematic&nbsp;access to aeial photography, I probably would use it none the less .. along with shaded facettes.&nbsp;&nbsp;<br>I've failed to use Models. I'll have to revert to all DirectX features to get to create and&nbsp;save one - or build it with an external tool. The way that heightFields are transmitted in ie&nbsp;tif, I'm not sure that I get a display&nbsp;gain by putting it in&nbsp;a model, but it would be a snug one to save and load.&nbsp;<br>&nbsp;<br>Carsten<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>Ted wrote:<br>&nbsp;<br>Yes.&nbsp; I have also found that trying to make 3D systems behave like cartographic systems is not very rewarding.&nbsp; Performance wise, it works much faster with simply defined colored vertices as points, rather than using textured billboards.&nbsp; If the billboards are allowed to have geographic scaling, that is they get larger when you zoom in, then performance is usually ok, but you have 6 vertices for each point.&nbsp; The same texture can be reused, so mostly you are looking at memory bloat from the additional vertices.&nbsp; If, on the other hand, you simply want the fancy symbol to remain about the same pixel size, you are talking about rebuilding the vertex model each time the user zooms in or out.&nbsp; This is computationally expensive and impractically slow for larger numbers of points.&nbsp; Completely nonviable for point clouds.&nbsp; However, you could always use simple vertices until you zoom into a certain point, and then for a small number use the billboard strategy.<br><br>If you are creating your triangles from a terrain map, then yes, we have done draping and it works pretty well.&nbsp; The recommendation I have in the draping case is to give up on the notion that the point symbol should have about the same pixel size continuously as you zoom in and out.&nbsp; That way, you only create one texture and then you can zoom in, zoom out, rotate and everything else using very fast GPU operations.&nbsp; When you zoom in close enough the texture becomes pixelated, so you might want different models for different scales like we talked about before.&nbsp; Once you zoom in past a certain point, you swap out your low-res vertex/texture for a higher definition model that is only for a small region.&nbsp; Building the model took some time for us, but only because we were creating it directly from shapefiles.&nbsp; In reality you would want to pre-construct the models (vertex/texture pairings) and save them using DirectX formats so that everything would work quickly while you are running things.&nbsp; In practice, people want to be able to change the vector content, so you might want to just stick with simple colored vertex points and lines.<br><br>Ted<br><br><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>On Wed, Jun 1, 2011 at 12:28 PM, Michael P. Gerlek &lt;<a href="mailto:mpg@flaxen.com">mpg@flaxen.com</a>&gt; wrote:<o:p></o:p></span></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>&gt; Not that it matters, but wouldn't a point .. presumably painted as a small<br>square .. always face toward the screen, where<br>&gt; two triangles representing a square has 'proper' facing and culling.<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Yeah, I looked into that idea too some time ago, when I was trying to use<br>WPF/Silverlight directly to render a point cloud. &nbsp;The technique is called<br>&quot;billboarding&quot;, and it is a horrible way to render points... &nbsp;It bloats your<br>point budget, and the appearance is really bad at various scales. &nbsp;Using the<br>GPU's native notion of a point is *much* better.<br><span style='color:#888888'><br>-mpg</span><o:p></o:p></span></p><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br><br>_______________________________________________<br>DotNet mailing list<br><a href="mailto:DotNet@lists.osgeo.org">DotNet@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/dotnet" target="_blank">http://lists.osgeo.org/mailman/listinfo/dotnet</a><o:p></o:p></span></p></div></div></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p>&nbsp;</o:p></span></p></div></div></body></html>