热门 krpano拖拽图层和热点

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2782°    
时间:2017-9-19   分类: 随笔    热度:2782  
拖拽热点: <action name="draghotspot"> spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l'); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx, mouse.stagex, drag_adjustx); sub(dy, mouse.stage...

阅读全文>>

热门 krpano设置文字

时间:2017-9-19   作者:lininn   分类: 随笔   热度:4410°    
时间:2017-9-19   分类: 随笔    热度:4410  
添加文字热点,调用方法: <hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 60);add_all_the_time_tooltip_for_VR()" ath="-15" atv="-12" onclick="loadscene(get(linkedscene))" text="自定义文字"/> 添加方法secene外 <action name="add_all_the_time_to...

阅读全文>>

热门 krpano 添加指南针?

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2657°    
时间:2017-9-19   分类: 随笔    热度:2657  
首先讲examples\compass的指南针复制到根目录,然后两种方式,第一种复制到secene外面: <!-- 表盘不动 表针动 --> <layer name="compass1" url="compass_bg.png" keep="true" align="lefttop" x="10" y="10" children="false" scalechildren="true" destscale="1.0" onclick="switch(destscale,1.0,0.5);tween(scale,get(destscale));"> ...

阅读全文>>

热门 krpano 添加背景音乐?

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2901°    
时间:2017-9-19   分类: 随笔    热度:2901  
scene外面: <action name="bgsnd_action" autorun="onstart"> playsound(bgsnd, 'http://fs.open.kugou.com/299ee8fc00a480e899d180bb715a6231/59c10d94/G009/M0A/09/05/qYYBAFUJvZiAXUb2AD6652iMRH8210.mp3', 0); </action> <plugin name="soundinterface" url.flash="%SWFP...

阅读全文>>

热门 Krpano添加热点图

时间:2017-9-19   作者:lininn   分类: 随笔   热度:3819°    
时间:2017-9-19   分类: 随笔    热度:3819  
在scene外面 <action name="do_crop_animation"> <!-- 为热点注册属性 --> registerattribute(xframes, calc((imagewidth / %1) BOR 0)); registerattribute(yframes, calc((imageheight / %2) BOR 0)); registerattribute(frames, calc(xframes * yframes)); registerattribute(frame, 0); set(...

阅读全文>>

热门 在个别场景中实现小行星

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2139°    
时间:2017-9-19   分类: 随笔    热度:2139  
然后在tour.xml的scene标签外面书写: <events name="littleplanetintro_control" keep="true" onnewpano=" if(scene[get(xml.scene)].index == 0 OR scene[get(xml.scene)].index == 4, skin_setup_littleplanetintro() )" /> 第0个场景或者第4个场景实现小行星; 或者littleplanetintro="true" ...

阅读全文>>

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn