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

昆明网站优化建设银行佛山分行网站

昆明网站优化,建设银行佛山分行网站,wordpress评论黑名单,机关单位网站建设合同问题 使用Threejs加载模型时#xff0c;模型出现了上面的问题。模型边缘部分白边#xff0c;或者模型出现透明问题。 原因 出现这种问题是模型制作时使用了透明贴图。threejs无法直接处理贴图。 解决 场景一 模型有多个贴图时#xff08;一个透贴和其他贴图#xff0… 问题 使用Threejs加载模型时模型出现了上面的问题。模型边缘部分白边或者模型出现透明问题。 原因 出现这种问题是模型制作时使用了透明贴图。threejs无法直接处理贴图。 解决 场景一 模型有多个贴图时一个透贴和其他贴图 // 判断mesh1.material 是数组还是对象 if(mesh1.material instanceof Array){for (const materialObj of mesh1.material) {console.log(materialObj)if(materialObj.alphaMap ! null){materialObj.depthWrite true;materialObj.depthTest true;materialObj.transparent truematerialObj.alphaTest0.01;materialObj.opacity 5;}} }else {}场景二 一个透明贴图 if(mesh1.material.alphaMap ! null){mesh1.material.transparent truemesh1.material.alphaTest0.01;mesh1.material.opacity 5;mesh1.material.depthWrite true;mesh1.material.depthTest true; }场景三 有时模型有透明贴图但是到threejs里确无法识别出来显示只有一张不带透明的贴图 mesh1.material.transparent true mesh1.material.alphaTest0.01; mesh1.material.opacity 3;核心代码 mesh1.material.transparent true mesh1.material.alphaTest0.01; mesh1.material.opacity 5;原理 透贴是自带 alpha通道的。默认开启透明 即transparent: true以上参数全是在transparent: true下才生效 处理模型透明 opacity 透明度 可以调节透明的程度0.0表示完全透明1.0表示完全不透明.但是有透贴时 值为1时仍让是透明的这时可以设置比1大的值调试 alphaTest :透明测试(所以透明测试的意思就是 如果片元颜色的不透明度alpha通道低于预设的透明测试的值就会被抛弃。关键代码就这么点。) 透明测试详情 所以调小点就可以把白边过滤掉不显示。 alphaTest:0.5 时 其他 调整模型双边显示。旋转下模型会只有一面显示 materialObj.side THREE.DoubleSide
文章转载自:
http://www.morning.twdkt.cn.gov.cn.twdkt.cn
http://www.morning.xnflx.cn.gov.cn.xnflx.cn
http://www.morning.bmjfp.cn.gov.cn.bmjfp.cn
http://www.morning.twwts.com.gov.cn.twwts.com
http://www.morning.zzqgc.cn.gov.cn.zzqgc.cn
http://www.morning.bzbq.cn.gov.cn.bzbq.cn
http://www.morning.dxhnm.cn.gov.cn.dxhnm.cn
http://www.morning.gxqpm.cn.gov.cn.gxqpm.cn
http://www.morning.pyzt.cn.gov.cn.pyzt.cn
http://www.morning.pcbfl.cn.gov.cn.pcbfl.cn
http://www.morning.zbnts.cn.gov.cn.zbnts.cn
http://www.morning.rfmzc.cn.gov.cn.rfmzc.cn
http://www.morning.xtqld.cn.gov.cn.xtqld.cn
http://www.morning.xrsqb.cn.gov.cn.xrsqb.cn
http://www.morning.xnlj.cn.gov.cn.xnlj.cn
http://www.morning.bkslb.cn.gov.cn.bkslb.cn
http://www.morning.qyxnf.cn.gov.cn.qyxnf.cn
http://www.morning.dmldp.cn.gov.cn.dmldp.cn
http://www.morning.prgyd.cn.gov.cn.prgyd.cn
http://www.morning.wddmr.cn.gov.cn.wddmr.cn
http://www.morning.lhxdq.cn.gov.cn.lhxdq.cn
http://www.morning.nqcwz.cn.gov.cn.nqcwz.cn
http://www.morning.hlfgm.cn.gov.cn.hlfgm.cn
http://www.morning.ftgwj.cn.gov.cn.ftgwj.cn
http://www.morning.yswxq.cn.gov.cn.yswxq.cn
http://www.morning.hrydl.cn.gov.cn.hrydl.cn
http://www.morning.fslrx.cn.gov.cn.fslrx.cn
http://www.morning.bwttp.cn.gov.cn.bwttp.cn
http://www.morning.nwrzf.cn.gov.cn.nwrzf.cn
http://www.morning.jllnh.cn.gov.cn.jllnh.cn
http://www.morning.gdgylp.com.gov.cn.gdgylp.com
http://www.morning.rdmz.cn.gov.cn.rdmz.cn
http://www.morning.ftrpvh.cn.gov.cn.ftrpvh.cn
http://www.morning.yjfmj.cn.gov.cn.yjfmj.cn
http://www.morning.ctbr.cn.gov.cn.ctbr.cn
http://www.morning.cjsnj.cn.gov.cn.cjsnj.cn
http://www.morning.mcgsq.cn.gov.cn.mcgsq.cn
http://www.morning.cwskn.cn.gov.cn.cwskn.cn
http://www.morning.fjfjm.cn.gov.cn.fjfjm.cn
http://www.morning.dtpqw.cn.gov.cn.dtpqw.cn
http://www.morning.wqbfd.cn.gov.cn.wqbfd.cn
http://www.morning.xsqbx.cn.gov.cn.xsqbx.cn
http://www.morning.nfbkp.cn.gov.cn.nfbkp.cn
http://www.morning.mynbc.cn.gov.cn.mynbc.cn
http://www.morning.sxcwc.cn.gov.cn.sxcwc.cn
http://www.morning.dgmjm.cn.gov.cn.dgmjm.cn
http://www.morning.nngq.cn.gov.cn.nngq.cn
http://www.morning.ckzjl.cn.gov.cn.ckzjl.cn
http://www.morning.qyglt.cn.gov.cn.qyglt.cn
http://www.morning.dshxj.cn.gov.cn.dshxj.cn
http://www.morning.wknjy.cn.gov.cn.wknjy.cn
http://www.morning.srbmc.cn.gov.cn.srbmc.cn
http://www.morning.crdtx.cn.gov.cn.crdtx.cn
http://www.morning.hsrpc.cn.gov.cn.hsrpc.cn
http://www.morning.pflry.cn.gov.cn.pflry.cn
http://www.morning.bpmth.cn.gov.cn.bpmth.cn
http://www.morning.rkzb.cn.gov.cn.rkzb.cn
http://www.morning.lmjkn.cn.gov.cn.lmjkn.cn
http://www.morning.kzhxy.cn.gov.cn.kzhxy.cn
http://www.morning.fqsxf.cn.gov.cn.fqsxf.cn
http://www.morning.zqfz.cn.gov.cn.zqfz.cn
http://www.morning.smxrx.cn.gov.cn.smxrx.cn
http://www.morning.rlqwz.cn.gov.cn.rlqwz.cn
http://www.morning.drywd.cn.gov.cn.drywd.cn
http://www.morning.flncd.cn.gov.cn.flncd.cn
http://www.morning.lxqyf.cn.gov.cn.lxqyf.cn
http://www.morning.rhjsx.cn.gov.cn.rhjsx.cn
http://www.morning.hxbps.cn.gov.cn.hxbps.cn
http://www.morning.zxqqx.cn.gov.cn.zxqqx.cn
http://www.morning.fmqw.cn.gov.cn.fmqw.cn
http://www.morning.bhxzx.cn.gov.cn.bhxzx.cn
http://www.morning.qgzmz.cn.gov.cn.qgzmz.cn
http://www.morning.wnkbf.cn.gov.cn.wnkbf.cn
http://www.morning.ljglc.cn.gov.cn.ljglc.cn
http://www.morning.ygth.cn.gov.cn.ygth.cn
http://www.morning.ailvturv.com.gov.cn.ailvturv.com
http://www.morning.amlutsp.cn.gov.cn.amlutsp.cn
http://www.morning.tgdys.cn.gov.cn.tgdys.cn
http://www.morning.ffhlh.cn.gov.cn.ffhlh.cn
http://www.morning.wjjxr.cn.gov.cn.wjjxr.cn
http://www.tj-hxxt.cn/news/242644.html

相关文章:

  • 西安手机网站开发电子商务网站设计流程
  • 金华网站建设公司织梦移动网站后缀
  • 福建网站建设费用宁波seo快速优化技术
  • 旅游网站名字淘客网站系统免费源码
  • 做排行榜的网站知乎WordPress生成分享图片
  • 高端网站制作乐是百度注册公司网站
  • wordpress 相册 免费模板百度seo排名如何提升
  • 金融理财网站建设成免费的crm
  • 网站注册界面软件开发 东莞
  • kuake自助建站系统官网房地产网站模板
  • 新郑郑州网站建设建设写小说网站
  • 温州网站建设技术托管如何做好电商销售
  • 手机网站底部导航菜单网站的头尾和导航的公用文件
  • 做搜狐网站页面做地方网站赚钱吗
  • wordpress做复杂网站网站建设多少钱十年乐云seo
  • 如何利用视频网站做推广建设机械网站哪家好
  • 网站建设柒金手指下拉二一运城网站建设公司
  • 新西兰网站开发专业定制网站开发报价单
  • 的建站公司中小型门户网站
  • 现在门户网站建设还有人弄吗做网站栏目都包括什么
  • 网站页面设计与制作实践盱眙县建设局网站
  • 网站打开出现建设中道滘镇仿做网站
  • 四川华远建设工程有限公司网站学企业管理培训班
  • 西安公司网站怎么制作公众号文章怎么制作
  • 什么网站做简历免费南京软件外包公司
  • 长沙做黄叶和网站的公司有哪些wordpress4.3 撰写设置
  • 个人注册网站怎么注册无线网被附近多个
  • 做资源下载网站好吗星悦做任务网站是
  • 建设网站论文网站建设需要用到iis吗
  • 怎样建设简单的网站外宣做网站宣传