[X3D-Public] Problem in X3D

Iñaki Prieto Furundarena prieto.inaki at gmail.com
Mon May 7 05:37:15 PDT 2012


Hello Sergey,



I export buildings from other 3D standard to X3D.

In the other standard XY is the ground and heights are indicated by the Z



Is possible to extend the ElevationGrid in XY plane?

Or I have to change the geometry of the buildings?



Thanks in advance


Best regards

On 5 May 2012 15:11, Bederov, Sergey <bederov at cortona3d.com> wrote:

>  Hello Iñaki,****
>
> ** **
>
> 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.****
>
> ** **
>
>
> http://www.web3d.org/x3d/specifications/OLD/ISO-IEC-19775-X3DAbstractSpecification/Part01/components/geometry3D.html#ElevationGrid
> ****
>
> ** **
>
>
>                                   Sergey Bederov****
>
> * *
>
> ** **
>
> *From:* x3d-public-bounces at web3d.org [mailto:x3d-public-bounces at web3d.org]
> *On Behalf Of *Inaki Prieto Furundarena
> *Sent:* Thursday, May 03, 2012 6:36 PM
> *To:* x3d-public at web3d.org
> *Subject:* [X3D-Public] Problem in X3D****
>
> ** **
>
> 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****
>
> ** **
>



-- 
Iñaki Prieto Furundarena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20120507/61ae867d/attachment.html>


More information about the X3D-Public mailing list