前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >全景学习:Krpano

全景学习:Krpano

原创
作者头像
Hikari
修改2021-10-08 10:05:09
1.1K0
修改2021-10-08 10:05:09
举报
文章被收录于专栏:用户7090782的专栏

20210927

Krpano版本号:1.20.9

New features of new version:

相比1.19版本以及之前的版本而言,这个版本直接drop all images into the software then start making the panorama.

在chrome的开发者模式下观测到不同的全景网站的特点,重点观察了:https://campus-vr.ust.hk/tour.html

在开发者模式下查找源代码的同时还可以simulate 不同设备下的操作。

Virtual tour of HKUST by MTPC:

Base: krpano 1.19

According to the source files, 可伸缩式侧边栏是利用了bootstrap以及其他的framework生成,而对于krpano官方自带的plugins这个并没有特别多的应用。

Tutorials:

1.

https://www.youtube.com/channel/UCi4C1V7MQqtt6tbD7mYfntg
https://www.youtube.com/channel/UCi4C1V7MQqtt6tbD7mYfntg
Welcome screen/ intro (example)
Welcome screen/ intro (example)

20210928

主要的事情:intro screen.

1. intro page of the panorama:在intro页面:

需要注意的两个属性,一个是bgcapture,描述如下,在bgcapture=“true” 之后,可以捕捉到鼠标对于intro这一个layer的操作,前提除了如下描述之外,还需要:enabled="true".

在设置bg页面这个操作里面:

方法一是:set

这里注意到使用了句点表示法
这里注意到使用了句点表示法

方法二是:加上一个tween, 这相当于一个渐变的效果,关于这个属性的描述如图:

delayed call of tween
delayed call of tween

20211001

1. Google Map plugin

这个plugin直接在官方文档中复制源码到tour.xml中

plugin的源码如下:

代码语言:html
复制
<plugin name="map" devices="html5"
        url="googlemaps.js"
        align="leftbottom" width="400" height="300" x="0" y="0"
        keep="true"
        key=""
        maptype="satellite"
        language=""
        lat="..."
        lng="..."
        zoom="1"
        tilt="0"
        heading="0"
        controls="zoom|maptype"
        poi="false"
        activespotenabled="false"
        bgcolor="0x000000" bgalpha="0.0"
        onmapready=""
        onmaptypechanged=""
        onmapmoved=""
        onmapzoomed=""
>
  <spotstyle name="style1" ... />
  ...
  
  <spot name="spot1" ... active="true" />
  <spot name="spot2" ... />
  <spot name="spot3" ... />
  ...
  
  <radar visible="true" ... />
</plugin>

url : 属性需要注意,官方文档直接给的是文档名字,但是在自行生成的vtour文件夹中,googlemaps.js存在于plugins文件夹里

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 20210927
  • 20210928
  • 20211001
    • 1. Google Map plugin
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档