[X3D-Public] Problem in X3D

Iñaki Prieto Furundarena prieto.inaki at gmail.com
Thu May 3 07:36:02 PDT 2012


Hi all,

I'm generating the Digital Terrain Model in X3D.
I also have some buildings that have to be placed just above of the DTM.

However, I get a different result (see attached picture)

I think the error is inside the DTM.
I'm using the ElevationGrid to get this.

<?xml version="1.0" encoding="UTF-8" standalone="no"?><X3D xmlns="
http://www.web3d.org/specifications/x3d-namespace" height="400px"
id="the-x3d-element" showLog="true" showProgress="bar" showStat="true"
width="400px" x="0px" y="0px">
<Scene id="root">
<Transform translation="-2171.0 3193.0 0">
<Shape><Appearance><Material/><ImageTexture url="mdt.jpg"/></Appearance>
<ElevationGrid height="-0.26098633 0.5960083 1.7449951 ........"
solid="false" xDimension="174" xSpacing="25.0" zDimension="334"
zSpacing="25.0"/>
</Shape></Transform></Scene></X3D>

Buildings are generated in following way:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><X3D xmlns:xsd="
http://www.w3.org/2001/XMLSchema-instance" profile="Immersive"
version="3.3" xsd:noNamespaceSchemaLocation="
http://www.web3d.org/specifications/x3d-3.3.xsd"><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>



It seems like axes were changed.

Some idea?

Thanks in advance

Best regards

-- 
Iñaki Prieto Furundarena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20120503/5028d8e8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X3D_problem.JPG
Type: image/jpeg
Size: 35601 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20120503/5028d8e8/attachment-0001.jpe>


More information about the X3D-Public mailing list