从photocan到aframe的transfort xyz

时间:2018-07-05 20:19:18

标签: geometry aframe 3d-modelling 3d-model

(我是一名新手,仅用两天时间就从事VR +几何等工作。)

我解释了这个问题

1.-我拍摄了3个球形图像(矩形)

2.-我使用Agisoft Photoscan软件并运行Align Photos,然后我检查了图像位置,看起来不错

3.-我保存在XMl中,并获得了如下所示的坐标XML

      <camera id="0" sensor_id="0" label="R0010141" enabled="1">
    <transform>9.8984421907426468e-001 -3.8295523329461449e-002 1.3690096733837437e-001 -5.5803204919555904e-001 -2.9263518639695472e-002 -9.9729749081960961e-001 -6.7389622952906306e-002 1.3368811907484165e-001 1.3911171209529472e-001 6.2699024696029795e-002 -9.8828981774582825e-001 2.3837201735341838e+000 0.0000000000000000e+000 0.0000000000000000e+000 0.0000000000000000e+000 1.0000000000000000e+000</transform>
    <orientation>1</orientation>
    <reference x="2.08039166666667" y="41.4722694444444" z="128.71" enabled="1"/>
  </camera>
  <camera id="1" sensor_id="0" label="R0010142" enabled="1">
    <transform>9.9744408108884119e-001 -3.5698220438174069e-002 6.1894605244603169e-002 -3.4403293093961423e-001 -3.1448918887913041e-002 -9.9716773126250158e-001 -6.8318966836281594e-002 1.0442832385483597e-001 6.4158168627378956e-002 6.6197830677016969e-002 -9.9574172183957310e-001 1.1314554250150513e+000 0.0000000000000000e+000 0.0000000000000000e+000 0.0000000000000000e+000 1.0000000000000000e+000</transform>
    <orientation>1</orientation>
    <reference x="2.08039166666667" y="41.4723111111111" z="128.79" enabled="1"/>
  </camera>
  <camera id="2" sensor_id="0" label="R0010143" enabled="1">
    <transform>9.9923050671455771e-001 -3.4870802942148026e-002 1.7956100721974084e-002 -6.1984932946518863e-002 -3.3539417062586792e-002 -9.9699996810153624e-001 -6.9757946562650622e-002 6.4333550177933546e-002 2.0334747455271213e-002 6.9102031140232320e-002 -9.9740232972368004e-001 -1.4471026427005093e-001 0.0000000000000000e+000 0.0000000000000000e+000 0.0000000000000000e+000 1.0000000000000000e+000</transform>
    <orientation>1</orientation>
    <reference x="2.08041944444444" y="41.4723138888889" z="128.78" enabled="1"/>
  </camera>

(很好玩!)

4 .-现在,我尝试使用图像安装框架库并在位置上链接链接 框架代码如下:

<a-sky id="image-360" radius="10" src="#R0010141" ></a-sky>

      <!-- Image links. -->           
      <a-entity id="links" layout="type: line; margin: 1.5" position="2.08039166666667 41.4723111111111 128.79">
        <a-entity template="src: #link" data-src="#R0010142" data-thumb="#R0010142-thumb"></a-entity>           
      </a-entity> 

我刚刚加载了第一张图像,并且在框架上看起来不错,然后尝试为第二张图像设置position =“ 2.08039166666667 41.4723111111111 128.79”->(这是从photocan软件获取的xyz,但图像链接未出现在框架上。

有什么主意吗?预先感谢

0 个答案:

没有答案