码迷,mamicode.com
首页 > 其他好文 > 详细

制作连接器步骤

时间:2016-10-18 23:33:02      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:连接器 720街景

1. krpano注册

2 拆分360全景图片工具

. 技术分享

3.生成krpano文件,在index.xml修改参数,图片放在panos

4.打点的坐标显示<control keycodesin="" keycodesout="" />
                    <plugin name="hotspotinfo" keep="true"
                            url="%SWFPATH%/plugins/textfield.swf"
                            html="drag the hotspots..."
                            css="font-family:Courier;"
                            border="false"
                            selectable="true"
                            align="left" y="-100"
                            width="200"
                            height="80"
                            />
                    <action name="draghotspot">
                    <![CDATA[
                         if(%1 != dragging,
                              spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery);
                              sub(drag_adjustx, mouse.stagex, hotspotcenterx);
                              sub(drag_adjusty, mouse.stagey, hotspotcentery);
                              draghotspot(dragging);
                           ,
                              if(pressed,
                                   sub(dx, mouse.stagex, drag_adjustx);
                                   sub(dy, mouse.stagey, drag_adjusty);
                                   screentosphere(dx, dy, ath, atv);
                                   copy(print_ath, ath);
                                   copy(print_atv, atv);
                                   roundval(print_ath, 3);
                                   roundval(print_atv, 3);
                                   txtadd(plugin[hotspotinfo].html, ‘&lt;hotspot name="‘,get(name),‘"[br]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ath="‘,get(print_ath),‘"[br]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;atv="‘,get(print_atv),‘"[br]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...[br]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;‘);
                                   delayedcall(0, draghotspot(dragging) );
                                );
                           );
                    ]]>
                    </action>

在对应场景上加个ondown="draghotspot(scene_8)"


知识资料:

官网网址:http://www.krpano360.com/

学习网址:http://blog.csdn.net/panorama360/article/details/38456741




  


制作连接器步骤

标签:连接器 720街景

原文地址:http://4742840.blog.51cto.com/4732840/1863087

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!