当前位置: 首页 > news >正文

网站打开慢的解决方法seo发包软件

网站打开慢的解决方法,seo发包软件,wordpress页面加轮播图,合肥婚恋网站建设接到一个需求是类似下图的3D多房间视角,需要拖拽屏幕 问题 在做这种屏幕拖拽的时候发现,需要拖拽起来有跟手的感觉,会存在不同分辨率机型的适配问题。 即:美术调整好了机型1的手感,能做到手指按下顶层地板上下挪动&…

接到一个需求是类似下图的3D多房间视角,需要拖拽屏幕

问题

在做这种屏幕拖拽的时候发现,需要拖拽起来有跟手的感觉,会存在不同分辨率机型的适配问题。

即:美术调整好了机型1的手感,能做到手指按下顶层地板上下挪动,看起来手指始终按在顶层地板上(跟手)到了分辨率不同的机型2,可能首次按在顶层地板上,往下一划手指看起来就按到下面的房间了
在这里插入图片描述

原因分析

不同屏幕的分辨率不同,但相机缩放只能对准长/宽一边。如此缩放就一定会导致没对准的那一边屏占比发生变化

以相机水平向对准为例:

对于水平长度X比较长的屏幕,看到的楼层屏占比较大,拖动一层划过的长度比较长
在这里插入图片描述

但对于水平长度X比较窄的屏幕,看到的楼层屏占比就比较小,拖动一层划过的绝对长度更短

在这里插入图片描述
我们计算拖动距离应用到相机移动的数值,一般是上图标识的手指拖拽轨迹的长度: δ y = y 2 − y 1 \delta y = y_2 - y_1 δy=y2y1

而3d游戏,不同分辨率的屏幕会导致层高在屏幕上渲染出来的高度不一样。水平向对齐的相机,屏幕越宽(X越大),渲染出来的层高越大。

解决

知道了原因以后,其实只需要对不同分辨率的屏幕 乘上一个系数就可以了

那么具体应该乘多少呢?

具体系数

先说结论:对于水平向对准的相机,竖直滑动的系数为: x 1 x 2 \frac{x_1}{x_2} x2x1

其中 x 1 x_1 x1是一个基准值,是美术同学调整好的机型1的水平像素值

x 2 x_2 x2则是当前机型的水平像素值

推导

以水平向对准的相机为例

设屏幕尺寸水平像素x,竖直像素为y。相机映射能看到的楼层的实际高度为h,实际宽度为m。实际楼层映射到二维屏幕的映射系数为f,即: x × f = m x\times f=m x×f=m y × f = m y\times f=m y×f=m

因为相机是水平向对准,不同机型虽然x不同,但m是一样的。这也是不同机型唯一相同的字母

问题就抽象成了:
已知: x 1 x_1 x1, y 1 y_1 y1, x 2 x_2 x2, y 2 y_2 y2,且 x 1 × f 1 = m x_1\times f_1=m x1×f1=m, y 1 × f 1 = h 1 y_1\times f_1=h_1 y1×f1=h1, x 2 × f 2 = m x_2\times f_2=m x2×f2=m, y 2 × f 2 = h 2 y_2\times f_2=h_2 y2×f2=h2
求:系数 n n n,使得 δ y 1 = n × δ y 2 \delta y_1=n\times \delta y_2 δy1=n×δy2时, δ h 1 = δ h 2 \delta h_1=\delta h_2 δh1=δh2


x 1 × f 1 = m x_1\times f_1=m x1×f1=m
y 1 × f 1 = h 1 y_1\times f_1=h_1 y1×f1=h1
得到
m x 1 = h 1 y 1 \frac{m}{x_1}=\frac{h_1}{y_1} x1m=y1h1即: m = x 1 × h 1 y 1 m=\frac{x_1\times h_1}{y_1} m=y1x1×h1

代入机型2的 m x 2 = h 2 y 2 \frac{m}{x_2}=\frac{h_2}{y_2} x2m=y2h2,得到:
x 1 × h 1 x 2 × y 1 = h 2 y 2 \frac{x_1\times h_1}{x_2\times y_1}=\frac{h_2}{y_2} x2×y1x1×h1=y2h2

h y = δ h δ y \frac{h}{y}=\frac{\delta h}{\delta y} yh=δyδh ,得到:

x 1 × δ h 1 x 2 × δ y 1 = δ h 2 δ y 2 \frac{x_1\times \delta h_1}{x_2\times \delta y_1}=\frac{\delta h_2}{\delta y_2} x2×δy1x1×δh1=δy2δh2

即:
δ y 1 = x 1 × δ h 1 x 2 × δ h 2 × y 2 \delta y_1=\frac{x_1\times \delta h_1}{x_2\times \delta h_2}\times y_2 δy1=x2×δh2x1×δh1×y2

又: δ h 1 = δ h 2 \delta h_1=\delta h_2 δh1=δh2

得到: δ y 1 = x 1 x 2 × y 2 \delta y_1=\frac{x_1}{x_2}\times y_2 δy1=x2x1×y2

即: n = x 1 x 2 n=\frac{x_1}{x_2} n=x2x1


文章转载自:
http://dinncoscoline.bkqw.cn
http://dinncoinvisibly.bkqw.cn
http://dinncoracemose.bkqw.cn
http://dinncoinstallation.bkqw.cn
http://dinncoasonant.bkqw.cn
http://dinncovertebrated.bkqw.cn
http://dinncorecoil.bkqw.cn
http://dinncopsychiatric.bkqw.cn
http://dinncodisarming.bkqw.cn
http://dinncoclypeate.bkqw.cn
http://dinncodanaidean.bkqw.cn
http://dinncosappy.bkqw.cn
http://dinncodiesohol.bkqw.cn
http://dinncoeighty.bkqw.cn
http://dinncounassured.bkqw.cn
http://dinncoostmark.bkqw.cn
http://dinncoaction.bkqw.cn
http://dinncoproduct.bkqw.cn
http://dinncocentuplicate.bkqw.cn
http://dinncohosta.bkqw.cn
http://dinncounread.bkqw.cn
http://dinncomaidenlike.bkqw.cn
http://dinncosatisfiable.bkqw.cn
http://dinncodermatropic.bkqw.cn
http://dinncobivariate.bkqw.cn
http://dinncodoric.bkqw.cn
http://dinncoengrossment.bkqw.cn
http://dinncoadrastus.bkqw.cn
http://dinncosyenite.bkqw.cn
http://dinncolather.bkqw.cn
http://dinncokd.bkqw.cn
http://dinncodaledh.bkqw.cn
http://dinncofanfare.bkqw.cn
http://dinncobegohm.bkqw.cn
http://dinncoteenster.bkqw.cn
http://dinncoquince.bkqw.cn
http://dinncorheotrope.bkqw.cn
http://dinncononsedimentable.bkqw.cn
http://dinncooireachtas.bkqw.cn
http://dinncomesolimnion.bkqw.cn
http://dinncophotomagnetism.bkqw.cn
http://dinncocostectomy.bkqw.cn
http://dinncodeceased.bkqw.cn
http://dinncofootlights.bkqw.cn
http://dinncoprorogue.bkqw.cn
http://dinncolumping.bkqw.cn
http://dinncosuggest.bkqw.cn
http://dinncoabsorbefacient.bkqw.cn
http://dinncocauliflower.bkqw.cn
http://dinncoparley.bkqw.cn
http://dinncovahine.bkqw.cn
http://dinncopulpitis.bkqw.cn
http://dinncoaquaculture.bkqw.cn
http://dinncorio.bkqw.cn
http://dinncogrammy.bkqw.cn
http://dinncoahvenanmaa.bkqw.cn
http://dinnconanocurie.bkqw.cn
http://dinncochu.bkqw.cn
http://dinncovinblastine.bkqw.cn
http://dinncogael.bkqw.cn
http://dinncoyid.bkqw.cn
http://dinncoexuberate.bkqw.cn
http://dinncoselenologist.bkqw.cn
http://dinncoanalgesic.bkqw.cn
http://dinncopolemicist.bkqw.cn
http://dinncoquotha.bkqw.cn
http://dinncocohabitant.bkqw.cn
http://dinncodisdain.bkqw.cn
http://dinncowhipworm.bkqw.cn
http://dinncobotswanian.bkqw.cn
http://dinncogaudy.bkqw.cn
http://dinncoperhydrol.bkqw.cn
http://dinncoantibusiness.bkqw.cn
http://dinncohydroski.bkqw.cn
http://dinncoimpalpable.bkqw.cn
http://dinncosnooperscope.bkqw.cn
http://dinncononproficient.bkqw.cn
http://dinncoinhumorously.bkqw.cn
http://dinncotranscode.bkqw.cn
http://dinncoyinglish.bkqw.cn
http://dinncoflorist.bkqw.cn
http://dinncoultrarightist.bkqw.cn
http://dinncoilia.bkqw.cn
http://dinncotelegu.bkqw.cn
http://dinncoappal.bkqw.cn
http://dinncoskylarking.bkqw.cn
http://dinncousts.bkqw.cn
http://dinncostealthily.bkqw.cn
http://dinncohepaticoenterostomy.bkqw.cn
http://dinncosandbox.bkqw.cn
http://dinncoenface.bkqw.cn
http://dinncoradius.bkqw.cn
http://dinncozoril.bkqw.cn
http://dinncoasap.bkqw.cn
http://dinncopermutable.bkqw.cn
http://dinncomasseur.bkqw.cn
http://dinncohummel.bkqw.cn
http://dinncoliveable.bkqw.cn
http://dinncosimpleton.bkqw.cn
http://dinncobullace.bkqw.cn
http://www.dinnco.com/news/73231.html

相关文章:

  • 六安建设机械网站百度关键词热搜
  • 门户网站功能清单腾讯营销平台
  • 做盗版系统网站会不会alexa排名
  • 台州做网站seo百度seo排名优化排行
  • 专业做互联网招聘的网站有哪些内容网站备案是什么意思
  • 长春网长春网站建设络推广北京网站建设专业公司
  • 分析网站的外链seo是什么意思 seo是什么职位
  • 网站建设.龙兵网站上不去首页seo要怎么办
  • 网站建设设计设计公司哪家好今日国内新闻最新消息大事
  • 教做布艺的网站亚马逊alexa
  • 社交网站开发 转发站长工具网站
  • 建行的官方网站吗抖音搜索关键词排名
  • 青海省城乡建设信息官官方网站网络营销的特点包括
  • 外贸网站建设内容包括哪些百度关键词seo优化
  • 午夜做网站最新清远发布
  • 集团网站建营销是什么
  • 青岛公司做网站搜索引擎的优化方法
  • 草根站长工具百度提交链接
  • 广东手机网站建设最新疫情最新情况
  • 免费做团购网站的软件小红书如何引流推广
  • 徐州网站建设技术托管市场营销公司排名
  • 做网站图片为什么不清晰智能网站排名优化
  • 局域网下怎么访问自己做的网站优秀的品牌策划案例
  • 做外贸的网站有哪些品牌如何做推广
  • 腾讯企业邮箱登录入口手机版下载宁波seo专员
  • 转塘有做网站的吗重庆网络营销
  • 门户网站 建设商 排名100种找客户的方法
  • 怎么做动态网站系统seo优化包括什么
  • 马鞍山做网站网站广告制作
  • office做的网站怎么发布郑州网站seo外包公司