I&#39;m off to visit my parents in a few minutes (a half day drive away), so I&#39;ll be offline for a couple of days, and not quite as responsive.  I will be integrating the TDS functionality (although probably somewhat disparate of osg), into Chaskii and our MV360 product over the next three months, so I will be happy to continue dialoging on this and improving it with you.  Its been fun to look into the code again.<br>
<br>A couple more comments though:<br><br>What is  &quot;crosslike modification area&quot;?  &quot;<span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">spotlike
terrain adaption&quot;?<br><br>Tile edges are probably bent down because there is some sampling going on outside the bounds of the tile (thus values of zero for elevation).  It is probably solved by a simple clamping somewhere.<br>
<br>Take care,<br><br>-don<br></span><br><div class="gmail_quote">On Sat, May 23, 2009 at 1:23 PM, Torben Dannhauer <span dir="ltr">&lt;<a href="mailto:torben@dannhauer.info">torben@dannhauer.info</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="DE">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hi Don,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Ah, that explains why I’m in trouble getting osgTDS working. Yes
your interpretation regarding the pictures is right!</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I think there are several problems to be solved for usage of
osgTDS in OSG 2.8.1:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><span>1.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Make osgTDS compatible with
paged databases. Therefore the function TDSFileValidator::isTDSTerrainFile()
has to be expanded to the function to analyze the targets position and the
terrain files position to determine whether it is a affected tile.</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><span>2.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Discover why the tiles edges
are bended down.</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><span>3.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Discover what the “crosslike modification
area” causes.</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><span>4.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Discover what the spotlike
terrain adaption causes.</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><span>5.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">      
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Finally enable terrain modification
for desired targets.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Well, nice milestones, but… how the hell should I implement that?
</span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);" lang="EN-US">J</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"></span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">For additional communication possibilities: My Skype contact is “Torben.D”.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">BTW: I have also started a thread in the OpenSceneGraph forum in
the osgPlugin section.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Greetings from Munich,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Torben</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Von:</span></b><span style="font-size: 10pt;"> <a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>
[mailto:<a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>] <b>Im Auftrag von </b>Don Burns<br>
<b>Gesendet:</b> Samstag, 23. Mai 2009 21:13<div><div></div><div class="h5"><br>
<b>An:</b> Torben Dannhauer<br>
<b>Cc:</b> <a href="mailto:osg-tds@andesengineering.com" target="_blank">osg-tds@andesengineering.com</a><br>
<b>Betreff:</b> Re: [osg-tds] osgTDS with coordinatesystemnode and large
geocentric Databases</div></div></span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p style="margin-bottom: 12pt;">Hi Torben,<br>
<br>
Am I interpreting the four images you sent correctly?  The first two
demonstrate the problem you are experiencing when applying TDS to a database
which is converted to .ive.  The second two images are the result of
processing the original example case.<br>
<br>
Before we go much further, I should let you in on the fact that you are putting
the TDS through more paces than anyone has since it was released.  This
will explain some of the difficulty you have with it.  It is a great tool,
funded by an SBIR, and a key player in the documentation of OSG itself, but
neglected by the adopter themselves, as well as the osg community.  I will
be using the code in the application that is being developed by my company now,
so I am glad to see it get exercised a bit.</p>

<div>

<p>On Sat, May 23, 2009 at 11:32 AM, Torben Dannhauer &lt;<a href="mailto:torben@dannhauer.info" target="_blank">torben@dannhauer.info</a>&gt; wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hi Don,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">at the moment i’m
deep diving in the code </span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);" lang="EN-US">J</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">i got it running,
but not as desired *<b>smile</b>*</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">First problem:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">If I convert the
terrain0.osg from testcas1 into an .ive Model, there are problems.. the terrain
is modified for watertower and for house, but not for the line. Additinaly the
terrain is not smoothed by subdividing the triangles.</span></p>

</div>

</div>

<div>

<p>This is a mystery to me.   There are multiple
passes in processing the terrain data.  It would seem that the first pass
is working, because it is adding points to the terrain and modifying existing
point on the terrain.  Subsequent passes are accomplished on the in-memory
scene graph, so a difference in file format should not be the reason for the
difference in behavior.<br>
<br>
Hm... another sanity check.  Could you check the
&quot;applyCorrectionFunction&quot; and &quot;doSubdivision&quot; directives in
your TDS file?  Also trace these in the code in TerrainProcessor.cpp.<br>
<br>
The other thing that occurs to me, is that you might want to double check the
&quot;replaceDrawable&quot; function for osg::Geode.<br>
<br>
Please keep digging on this.. I&#39;ll be happy to provide insight where I can.</p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">


<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Second problem: I
use a paged LOD Database in .ive format with a root file and all subtiles in a
folder. I can’t add all tiles to the .tds file which lie below a target. This
should happen automatically by the coordinates. But all tiles are now modified.</span></p>

</div>

</div>

</blockquote>

<div>

<p>:) .  Yes, this looks like a bug.  I would venture
to guess that the tiles are all relative to a local origin, and they get
transformed by the &quot;parent&quot; node or the pager.  Thus, your
targets are going to end up hovering over all the tiles.<br>
<br>
I seem to recall this case as some unfinished work in the osgTDS project. 
It was not in our requirements list, but was something we thought, but never
got to by the time we ran out of SBIR money and I moved on to other
things.  So... enter community supported open source software.<br>
<br>
I think the fix to this is not too dificult.  It simply means that you
will need to add a Transform parent to the target list, and apply the inverse
of the location of the paged tile when evaluating whether a target&#39;s space
intersects the tile. </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">


<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I attach
sample-screenshots for the first problem.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thank you,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Torben</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">P.S:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Up to now I called
it via: myapp.exe mytds.tds mydatabase.ive</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">--&gt; the targets
mentioned in the .tds file are loaded by themselves. Have I to add them to my
console call additionally?</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Von:</span></b><span style="font-size: 10pt;"> <a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>
[mailto:<a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>]
<b>Im Auftrag von </b>Don Burns<br>
<b>Gesendet:</b> Samstag, 23. Mai 2009 20:19<br>
<b>An:</b> Torben Dannhauer</span></p>

<div>

<div>

<p><span style="font-size: 10pt;"><br>
<b>Betreff:</b> Re: [osg-tds] osgTDS with coordinatesystemnode and large
geocentric Databases</span></p>

</div>

</div>

</div>

<div>

<div>

<p> </p>

<p style="margin-bottom: 12pt;">Hi Torben,<br>
<br>
This is bringing back memories as I look through the code.  I haven&#39;t
looked at it in a while. :)<br>
<br>
I suspect there may be something amiss in the regular expression
evaluator.  I recall that Paul Martz added in the WinRegEx support because
it was regex() was lacking on windows.<br>
<br>
To test this, you might try returning &quot;true&quot; by some test of your own
(strcmp, or whatever) if you know the file is a terrain file you want
deformed.  If it works with this change, then suspect the regex
code.  Since you said you added files to your &quot;Solution&quot; I
suspect you are developing on Windows.<br>
<br>
-don</p>

<div>

<p>On Sat, May 23, 2009 at 8:59 AM, Torben Dannhauer &lt;<a href="mailto:torben@dannhauer.info" target="_blank">torben@dannhauer.info</a>&gt;
wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hi Don, </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">thank you for your immediate
response! </span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);">J</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Now i have the
osgTDs in my Solution integrated and I’m able to debug osgTDS.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">It seems that the
problem lies in TDSFileValidator::isTDSTerrainFile().</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">This function always
return false, therefore it is reasonable that no terrain adjustment is
performed.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Am I right that this
function only checks whether the filename is va,id in accordance to my
“FileNamePattern” ?</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">My Database is
paged, but TDSFileValidator::isTDSTerrainFile() return neither on my scenery
root file nor on one of the subtile file a “true”.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">My FileNamePattern
line is:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">FileNamePattern=”*” </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">-&gt; Is this the
right way to say osgTDS that he should check all loaded scenery files for
required adjustments?</span></p>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thank you for your
help, </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Torben</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

</div>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Von:</span></b><span style="font-size: 10pt;"> <a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>
[mailto:<a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>]
<b>Im Auftrag von </b>Don Burns<br>
<b>Gesendet:</b> Samstag, 23. Mai 2009 16:16</span></p>

<div>

<div>

<p><span style="font-size: 10pt;"><br>
<b>An:</b> Torben Dannhauer<br>
<b>Cc:</b> <a href="mailto:osg-tds@andesengineering.com" target="_blank">osg-tds@andesengineering.com</a><br>
<b>Betreff:</b> Re: [osg-tds] osgTDS with coordinatesystemnode and large
geocentric Databases</span></p>

</div>

</div>

</div>

<div>

<div>

<p> </p>

<p style="margin-bottom: 12pt;">I wonder if the terrain is in some geometry
primitive that osgTDS doesn&#39;t understand, or something of the kind.  I
would suggest walking through some code with the debugger.  Specifically,
look at TerrainProcessor::_processGeode and TerrainProcessor::_processGeometry
in TerrainProcessor.cpp.<br>
<br>
-don</p>

<div>

<p>On Sat, May 23, 2009 at 7:01 AM, Torben Dannhauer &lt;<a href="mailto:torben@dannhauer.info" target="_blank">torben@dannhauer.info</a>&gt;
wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hi Don,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Ok, regarding
osgEarth I got it, so lets refocus only on osgTDS.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">My scene graph logic
is a CoordinateSystemNode as root node, and as childs my geocentric earthmodel
 and my other models.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">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.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">I have a flat
database which I generated with VirtualPlanetBuilder. (The Puget example
dataset)</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">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.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">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.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">The debug-Messages
at OSG_NOTIFY_LEVEL = INFO tells me he is triangulating something, but I can’t
see any effects.. </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Du you have an idea
what could be the problem?</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thank you for your
help,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Torben</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;">Von:</span></b><span style="font-size: 10pt;"> <a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>
[mailto:<a href="mailto:burns.don@gmail.com" target="_blank">burns.don@gmail.com</a>]
<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> <a href="mailto:osg-tds@andesengineering.com" target="_blank">osg-tds@andesengineering.com</a><br>
<b>Betreff:</b> Re: [osg-tds] osgTDS with coordinatesystemnode and large
geocentric Databases</span></p>

</div>

<div>

<div>

<p> </p>

<p style="margin-bottom: 12pt;">Hi Torben,</p>

<div>

<p>On Fri, May 22, 2009 at 7:39 AM, Torben Dannhauer &lt;<a href="mailto:torben@dannhauer.info" target="_blank">torben@dannhauer.info</a>&gt;
wrote:</p>

<div>

<div>

<p><span lang="EN-US">Hello,</span></p>

<p><span lang="EN-US"> </span></p>

<p><span lang="EN-US">I discovered osgTDS for terrain modification and have some
trouble to get it working.</span></p>

<p><span lang="EN-US"> </span></p>

<p><span lang="EN-US">I got the source, compiled it and integrated the files into
my OSG installation.</span></p>

<p><span lang="EN-US">osgTDS with the example data works great and has an
impressive output.</span></p>

<p><span lang="EN-US"> </span></p>

<p><span lang="EN-US">Unfortunalety osgTDS seems not to work with my geocentric
database (WGS84) which I build with VirtualPlanetBuilder.</span></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></p>

</div>

</div>

<div>

<p><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&#39;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&#39;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
&quot;which way is up&quot;, or more specifically, &quot;which is the bottom of
the models&quot;, and may require some transformations to get things right....
(I&#39;m not sure here, just guessing).</p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">


<div>

<div>

<p><span lang="EN-US">I have read the Documentation but there are still some
beginner questions:</span></p>

<p style="margin-left: 54pt; text-indent: -18pt;"><span lang="EN-US">1.</span><span style="font-size: 7pt;" lang="EN-US">       </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></p>

</div>

</div>

</blockquote>

<div>

<p>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. </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">


<div>

<div>

<p style="margin-left: 54pt; text-indent: -18pt;"><span lang="EN-US">2.</span><span style="font-size: 7pt;" lang="EN-US">       </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></p>

</div>

</div>

</blockquote>

<div>

<p><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
&quot;Terrain&quot; and &quot;Targets&quot;, manipulates the coordinates of the
terrain according to the position of the targets.</p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">


<div>

<div>

<p style="margin-left: 54pt; text-indent: -18pt;"><span lang="EN-US">3.</span><span style="font-size: 7pt;" lang="EN-US">       </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></p>

</div>

</div>

</blockquote>

<div>

<p>The software is designed to always connect to the target&#39;s
&quot;bottom&quot;, which is assumed to be coordinates of the &quot;bottom
hull&quot;, formed by the coords with lowest &quot;z&quot; value.  If you
want to alter the behavior, you can insert targets that are used for
manipulating the terrain, but not drawn.   </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">


<div>

<div>

<p style="margin-left: 54pt; text-indent: -18pt;"><span lang="EN-US">4.</span><span style="font-size: 7pt;" lang="EN-US">       </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></p>

</div>

</div>

</blockquote>

<div>

<p>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. </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">


<div>

<div>

<p style="margin-left: 54pt; text-indent: -18pt;"><span lang="EN-US">5.</span><span style="font-size: 7pt;" lang="EN-US">       </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></p>

</div>

</div>

</blockquote>

<div>

<p><br>
Again, I have no idea what osgEarth is.  osgDB and
&quot;loader-plugin&quot; however are not mutually exclusive.  osgDB is
the framework by which osgTDS and other plugins work.<br>
<br>
-don </p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">


<div>

<div>

<p style="margin-left: 54pt;"><span lang="EN-US"> </span></p>

<p><span lang="EN-US">Thanks for your help,</span></p>

<p><span lang="EN-US"> </span></p>

<p><span lang="EN-US">Torben</span></p>

<p><span lang="EN-US"> </span></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
osg-tds mailing list<br>
<a href="mailto:osg-tds@andesengineering.com" target="_blank">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></p>

</blockquote>

</div>

<p> </p>

</div>

</div>

</div>

</div>

</div>

<p> </p>

</div>

</div>

</div>

</div>

</div>

<p> </p>

</div>

</div>

</div>

</div>

</blockquote>

</div>

<p> </p>

</div></div></div>

</div>


</blockquote></div><br>