<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=iso-8859-1">
<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: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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:navy;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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:10.0pt;font-family:"Arial","sans-serif";color:navy">Hello Iņaki,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">An ElevationGrid extends in the XZ plane, the height field containing Y coordinates of the vertices. In your example, the height values are near zero, so the shape
 is near the XZ plane. The Transform adds 3193 to Y, shifting the ElevationGrid 3 kilometres up. On the other hand, the house doesn’t have a Transform, and its Y coordinates range from -9 to -3; therefore, the house is 3 kilometres below the ground.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><a href="http://www.web3d.org/x3d/specifications/OLD/ISO-IEC-19775-X3DAbstractSpecification/Part01/components/geometry3D.html#ElevationGrid">http://www.web3d.org/x3d/specifications/OLD/ISO-IEC-19775-X3DAbstractSpecification/Part01/components/geometry3D.html#ElevationGrid</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">                                                                                Sergey Bederov<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> x3d-public-bounces@web3d.org [mailto:x3d-public-bounces@web3d.org]
<b>On Behalf Of </b>Inaki Prieto Furundarena<br>
<b>Sent:</b> Thursday, May 03, 2012 6:36 PM<br>
<b>To:</b> x3d-public@web3d.org<br>
<b>Subject:</b> [X3D-Public] Problem in X3D<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I'm generating the Digital Terrain Model in X3D.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I also have some buildings that have to be placed just above of the DTM.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">However, I get a different result (see attached picture)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I think the error is inside the DTM.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I'm using the ElevationGrid to get this.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><?xml version="1.0" encoding="UTF-8" standalone="no"?><X3D xmlns="<a href="http://www.web3d.org/specifications/x3d-namespace">http://www.web3d.org/specifications/x3d-namespace</a>" height="400px" id="the-x3d-element" showLog="true" showProgress="bar"
 showStat="true" width="400px" x="0px" y="0px"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><Scene id="root"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><Transform translation="-2171.0 3193.0 0"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><Shape><Appearance><Material/><ImageTexture url="mdt.jpg"/></Appearance><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><ElevationGrid height="-0.26098633 0.5960083 1.7449951 ........" solid="false" xDimension="174" xSpacing="25.0" zDimension="334" zSpacing="25.0"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"></Shape></Transform></Scene></X3D><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Buildings are generated in following way:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><?xml version="1.0" encoding="UTF-8" standalone="no"?><X3D xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" profile="Immersive" version="3.3" xsd:noNamespaceSchemaLocation="<a href="http://www.web3d.org/specifications/x3d-3.3.xsd">http://www.web3d.org/specifications/x3d-3.3.xsd</a>"><Scene><Shape><Appearance><Material
 diffuseColor="1 1 1"/></Appearance><IndexedFaceSet convex="false" coordIndex="0 1 2 3 4 -1 5 6 7 8 9 -1 10 11 12 13 14 -1 15 16 17 18 19 -1 20 21 22 23 24 -1 "><Coordinate point="-171.59 -9.0 1.6 -171.59 -9.0 8.04 -172.34 -6.0 8.04 -172.34 -6.0 1.6 -171.59
 -9.0 1.6 -171.59 -9.0 2.42 -171.59 -9.0 8.04 -171.59 -9.0 8.04 -171.59 -9.0 2.42 -171.59 -9.0 2.42 -160.12 -6.5 -0.61 -160.12 -6.5 8.04 -171.59 -9.0 8.04 -171.59 -9.0 -0.61 -160.12 -6.5 -0.61 -161.16 -3.5 -0.63 -161.16 -3.5 8.04 -160.12 -6.5 8.04 -160.12 -6.5
 -0.63 -161.16 -3.5 -0.63 -172.34 -6.0 1.6 -172.34 -6.0 8.04 -161.16 -3.5 8.04 -161.16 -3.5 1.6 -172.34 -6.0 1.6 "/></IndexedFaceSet></Shape></Scene></X3D><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">It seems like axes were changed.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Some idea?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Iņaki Prieto Furundarena<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>