<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=utf-8">
<meta name=Generator content="Microsoft Word 12 (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:0cm;
        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:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</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=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Don,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ok, regarding osgEarth I got it, so lets refocus only on osgTDS.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>My scene graph logic is a CoordinateSystemNode as root node, and
as childs my geocentric earthmodel and my other models.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But for easier learning a used a simple setup with the standart
osgviewer program, just to verify that osgTDS works with databases generated by
VirtualPlanetBuilder.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have a flat database which I generated with VirtualPlanetBuilder.
(The Puget example dataset)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Additional I use the house.osg from the osgTDS examples. I modified
the transform matrix at the beginning of the house.osg file, so the house
appears not on the corner of my scene, but inside my scene. Translation works
because the house is visible in my scene. I suppose it is far enough away from
the edges.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Now there is no warning like I mentioned below, but on the other
hand there is also no terrain modification, as if osgTDS wouldn’t be there.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The debug-Messages at OSG_NOTIFY_LEVEL = INFO tells me he is
triangulating something, but I can’t see any effects.. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Du you have an idea what could be the problem?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you for your help,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Torben<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> burns.don@gmail.com
[mailto:burns.don@gmail.com] <b>Im Auftrag von </b>Don Burns<br>
<b>Gesendet:</b> Freitag, 22. Mai 2009 18:44<br>
<b>An:</b> Torben Dannhauer<br>
<b>Cc:</b> osg-tds@andesengineering.com<br>
<b>Betreff:</b> Re: [osg-tds] osgTDS with coordinatesystemnode and large
geocentric Databases<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Torben,<o:p></o:p></p>
<div>
<p class=MsoNormal>On Fri, May 22, 2009 at 7:39 AM, Torben Dannhauer <<a
href="mailto:torben@dannhauer.info">torben@dannhauer.info</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p><span lang=EN-US>Hello,</span><o:p></o:p></p>
<p><span lang=EN-US> </span><o:p></o:p></p>
<p><span lang=EN-US>I discovered osgTDS for terrain modification and have some
trouble to get it working.</span><o:p></o:p></p>
<p><span lang=EN-US> </span><o:p></o:p></p>
<p><span lang=EN-US>I got the source, compiled it and integrated the files into
my OSG installation.</span><o:p></o:p></p>
<p><span lang=EN-US>osgTDS with the example data works great and has an
impressive output.</span><o:p></o:p></p>
<p><span lang=EN-US> </span><o:p></o:p></p>
<p><span lang=EN-US>Unfortunalety osgTDS seems not to work with my geocentric
database (WGS84) which I build with VirtualPlanetBuilder.</span><o:p></o:p></p>
<p><span lang=EN-US>During the application startup a message is displayed, that
the model is not or not completely over Terrain: “Terrain Deformation
Software: ERROR in Target Database Base definition: at least one
target is not completely over terrain.”</span><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><br>
SO you understand the historical implications, VPB is a newer product than
osgTDS, and osgTDS has not been kept up with advances in osg, which would
explain the difficulty you've had with integration. osgTDS is a community
supported project by design, so your work with it could be valuable in keeping
it up to snuff.<br>
<br>
The message you are getting is undoubtedly (I haven't looked at the code for
about two years), the result of your models being in a different coordinate
space than the terrain over which they are positioned. I would guess that
the solution is to use the same sort of coordinate node provided by OSG to
position your models.<br>
<br>
There may be another consideration, in that osgTDS makes some assumptions about
"which way is up", or more specifically, "which is the bottom of
the models", and may require some transformations to get things right....
(I'm not sure here, just guessing).<o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p><span lang=EN-US>I have read the Documentation but there are still some
beginner questions:</span><o:p></o:p></p>
<p style='margin-left:54.0pt;text-indent:-18.0pt'><span lang=EN-US>1.</span><span
lang=EN-US style='font-size:7.0pt'> </span><span
lang=EN-US>The osgTDS loader seems to load all targets mentioned in the .tds
file by himself. Is it possible to relocate this models in my scenery to their
right place and the terrain will always be corrected the right way?</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal>I believe that we are on the same page here regarding my
first paragraph. You probably need to group your models under a
coordinate system node. However, you may also need to build the support
for the coordinate system node into the osgTDS traversers, as this node did not
exist when osgTDS was written. <o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p style='margin-left:54.0pt;text-indent:-18.0pt'><span lang=EN-US>2.</span><span
lang=EN-US style='font-size:7.0pt'> </span><span
lang=EN-US>How is the loading logic build? Which model/target is parent/child
of which other node, and at the end of the loading process, which node is
passed back to the application as “loaded model” ?</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal><br>
There is nothing unique about osgTDS in the file loading. it works like
any other osg viewer in that all objects listed on the command line are grouped
under a group node which is then formed as part of the main scene graph.
This is not unique to osgTDS. The tds loader accepts a file named *.tds,
then uses the information therein to find the other components, which need to
preceed it on the command line. It then divides the scene graph into
"Terrain" and "Targets", manipulates the coordinates of the
terrain according to the position of the targets.<o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p style='margin-left:54.0pt;text-indent:-18.0pt'><span lang=EN-US>3.</span><span
lang=EN-US style='font-size:7.0pt'> </span><span
lang=EN-US>Is there any maximum or minimum distance up to which the terrain
will be corrected to “touch” the target?</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal>The software is designed to always connect to the target's
"bottom", which is assumed to be coordinates of the "bottom
hull", formed by the coords with lowest "z" value. If you
want to alter the behavior, you can insert targets that are used for
manipulating the terrain, but not drawn. <o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p style='margin-left:54.0pt;text-indent:-18.0pt'><span lang=EN-US>4.</span><span
lang=EN-US style='font-size:7.0pt'> </span><span
lang=EN-US>Is it possible to use osgTDS for loading highdetail terrainmodels
into larger low-detail, and osgTDS will adapt the low-level model that there is
no z-fighting or things like that? Or is it better to use osgEarth for that
purpose?</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal>I have no idea what osgEarth is. But yes, osgTDS does,
in fact, adapt the lower level model to the new set of coordinates. This
allows you to shape the surface of the terrain to your liking. <o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p style='margin-left:54.0pt;text-indent:-18.0pt'><span lang=EN-US>5.</span><span
lang=EN-US style='font-size:7.0pt'> </span><span
lang=EN-US>Is it possible to use osgTDS in combination with osgEarth? Both
projects seem to use a loader-plugin over osgDB.</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal><br>
Again, I have no idea what osgEarth is. osgDB and
"loader-plugin" however are not mutually exclusive. osgDB is
the framework by which osgTDS and other plugins work.<br>
<br>
-don <o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p style='margin-left:54.0pt'><span lang=EN-US> </span><o:p></o:p></p>
<p><span lang=EN-US>Thanks for your help,</span><o:p></o:p></p>
<p><span lang=EN-US> </span><o:p></o:p></p>
<p><span lang=EN-US>Torben</span><o:p></o:p></p>
<p><span lang=EN-US> </span><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
osg-tds mailing list<br>
<a href="mailto:osg-tds@andesengineering.com">osg-tds@andesengineering.com</a><br>
<a href="http://andesengineering.com/mailman/listinfo/osg-tds" target="_blank">http://andesengineering.com/mailman/listinfo/osg-tds</a><o:p></o:p></p>
</blockquote>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>