Krpano 開啓多邊形編輯模式,Krpano多邊形熱區編輯器Editor插件用法

原文鏈接:http://www.ruanally.com

檢查全景項目文件夾下的plugins文件夾內是否有editor.swf文件,沒有的話,從主目錄下面的viewer/plugins中拷貝過去企業號

<plugin url="plugins/editor.swf" keep="true"/>

進入tour_editor.html,在下方可以看到編輯按鈕editor。

Krpano多邊形編輯器
Krpano多邊形編輯器

點擊後顯示其他按鈕,hotspots(熱區),lensflares(光暈),xml,close。

Krpano多邊形編輯器
Krpano多邊形編輯器

點擊後顯示,hotspots,編輯多邊形區域,編輯完後,返回,點擊xml。

Krpano多邊形編輯器
Krpano多邊形編輯器

 

點擊,save to disk,copy to clipboard,保存到本地或者複製到記事本中。

搜索該文件中的,points標籤,複製到目標tour.xml中,保存即可。

Krpano多邊形編輯器
Krpano多邊形編輯器

 

補充(涉及後臺編輯,開啓編輯模式):

<hotspot name="videospot" 
    url="%SWFPATH%/plugins/videoplayer.swf" 
    alturl="%SWFPATH%/plugins/videoplayer.js" 
    videourl="%SWFPATH%/image/video.flv|%SWFPATH%/image/video.m4v"
    posterurl="%SWFPATH%/examples/plugin-examples/video-hotspot/poster.jpg"
    distorted="true"
    ath="0"
    atv="0"
    edge="center"
    scale="1.0"
    rx="0"
    ry="0"
    rz="0"
    loop="true"
    pausedonstart="true"
    directionalsound="true"
    range="200"
    volume="0.7"
    onclick="togglepause();"
    />

使用完移除插件即可。<plugin url="plugins/editor.swf" keep="true"/>

以上就是krpao多邊形熱區編輯器的用法。部分參考資料來自:軟盟網

熱區代碼註釋


	<hotspot devices="flash"  <!--支持設備類型  flash  html5  all-->
              name="hs1" <!--熱區命名-->
               keep="false"   <!--是否在下一場景跳轉後保持顯示-->
               visible="true" <!--是否可見-->
              enabled="true"  <!--是否接收鼠標事件-->
             fillcolor="0x000000" <!--填充的顏色-->
             fillalpha="NaN" <!--填充透明度-->
             fillalphahover="NaN" <!--填充響應點下透明度-0-1  -->
             fillcolorhover="0xFFFFFF"<!--填充響應顏色  -->

             borderwidth="1" <!--邊框寬度 像素-->
             borderwidthhover="1"  <!--邊框響應寬度-->
             bordercolor="0x000000" <!--邊框顏色-->
             bordercolorhover="0xFFFFFF"   <!--邊框響應顏色-->
             borderalpha="0.5" <!--邊框透明度-->
             borderalphahover="0.5"  <!--懸停狀態變化時間及形式-->
             fadeintime="0.15"
             fadeincurve="1.1"      
             fadeouttime="0.3" 
             fadeoutcurve="0.7"


	         backup_onclick=""<!---->
	         backup_ondown=""<!---->
	         backup_onhover=""<!---->
	         backup_onout=""<!---->
	         backup_onover=""<!---->
	         backup_onup=""<!---->
	         depth="1000"<!---->
	         ishotspot="true"<!---->
	         loader_alternative=""<!---->
	         polyline="false"<!---->
	         scaleflying="true"<!---->
	         tx="0"<!---->
	         ty="0"<!---->
	         tz="0"<!---->
             onclick="set(layer[ploycube110].visible,true);"<!--點擊事件-->
	         >
		<point ath="-37.069003" atv="-11.361505" /><!--第一個點的位置-->
		<point ath="-13.729295" atv="-13.952639" />
		<point ath="-13.693807" atv="0.823055" />
		<point ath="-36.623381" atv="0.082103" />
		<point ath="-37.165282" atv="-11.342888" />
	</hotspot>
  • 編輯器插件幫助製作者編輯xml並且實時對全景漫遊進行測試。
  • 可以添加、編輯以及移除熱點。
  • 可以添加、編輯以及移除鏡頭光暈。
  • 注意 -編輯器版本與krpano版本必須一致!這是一個Flash插件,必須在flash內核下打開,建議使用tour_editor.html在測試服務器下打開!

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章