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

做市级网站需要什么什么是网站开发中的分页

做市级网站需要什么,什么是网站开发中的分页,wordpress图片投票插件,音乐网页设计素材1 月球绕地球旋转 材质贴图的颜色显示可能和原图看起来不一致#xff0c;需要设置色彩空间#xff1a; 线性色彩空间#xff08;LinearSRGBColorSpace#xff09;#xff1a;根据光照强度均匀分布sRGB色彩空间#xff08;SRGBColorSpace#xff09;#xff1a;根据人…1 月球绕地球旋转 材质贴图的颜色显示可能和原图看起来不一致需要设置色彩空间 线性色彩空间LinearSRGBColorSpace根据光照强度均匀分布sRGB色彩空间SRGBColorSpace根据人眼观察调整颜色 // 地球、月球半径 const earth_radius 1 const moon_radius 0.27//设置透视相机 const camera new THREE.PerspectiveCamera(46, window.innerWidth/window.innerHeight, 0.1,200) camera.position.set(10, 5, 20)const scene new THREE.Scene()//创建方向光方向光照射的整个区域接受的光照强度一样 光强为3 const dirLight new THREE.DirectionalLight(0xffffff, 3 ) dirLight.position.set(0,0,1) scene.add(dirLight)const earthGeometry new THREE.SphereGeometry(earth_radius, 16, 16) //光亮材质 const earthMaterial new THREE.MeshPhongMaterial({specular: 0x333333, //材质的光亮程度和高光的颜色shininess: 5, //高光部分亮度map: textureLoader.load(), //加载地球贴图 }) // 设置色彩空间 earthMaterial.map.colorSpace THREE.SRGBColorSpace const earth new Mesh(earthGeometry, earthMaterial) scene.add(earth)//月球同理不贴代码了//设置文字 const earthDiv document.createElement(div) earthDiv.className label earthDiv.textContent Earth earthDiv.style.backgroundColor transparentconst earthLabel new CSS2DObject(earthDiv) earthLabel.position.set(1.5*earth_radius, 0, 0) earthLabel.center.set(0,1) earth.add(earthLabel)const render new THREE.WebGLRenderer() // 如果canvas画布输出模糊需要设置像素比 render.setPixelRatio(window.devicePixelRatio) render.setSize(window.innerWidth, window.innerHeight) document.body.appendChild(render.domElement)// 文字渲染 const labelRender new THREE.CSS2DRenderer() labelRender.setSize(window.innerWidth, window.innerHeight) labelRender.domElement.style.position absolute labelRender.domELement.style.top 0px document.body.appendChild(labelRender.domElement)//OrbitControls可以进行缩放、平移、旋转操作实际上改变的是相机位置 //这里改变为render后无法旋转不知道什么问题 const controls new THREE.OrbitControls(camera, labelRender.domElement )window.addEventListener(resize, function() {camera.aspect window.innerWidth / window.innerHeight camera.updateProjectionMatrix()renderer.setSize( window.innerWidth,window.innerHeight)labelRenderer.setSize( window.innerWidth,window.innerHeight) })animate() function animate(){requestAnimationFrame(animate)const elapsed clock.getElapsedTime()moon.position.set(Math.sin(elapsed)*5,0,Math.cos(elapsed) * 5)\moon.rotation.x 0.01;moon.rotation.y 0.01;render.renderer(scene,camera) } 2 正交相机 CSS2DRenderer仅支持平移变换用于将3d物体和html元素结合CSS3DRenderer通过transform属性将3d变换应用到dom元素上不能使用材质和几何体 //设置相机前800高的内容 const frustumSize 800 const aspect window.innerWidth / window.innerHeight const camera new THREE.OrthographicCamera(frustumSize * aspect/-2,frustumSize*aspect/2, frustumSize/2,-frustumSize/2,1,1000)camera.position.set(-200,200,200)const scene new THREE.Scene(); scene.background new THREE.Color(0xf0f0f0);const material new THREE.MeshBasicMaterial()
http://www.zqtcl.cn/news/306218/

相关文章:

  • 中国建筑集团有限公司怎么样seo是怎么优化推广的
  • 芜湖建设网站eclipse开发网站用vue做前端
  • 外贸网站推广制作教程wordpress留言页面模版
  • 手机网站 像素网站建设生意怎么样
  • html5网站源代码凡科互动app下载
  • asp评价网站开发文档福州做网站的哪家好
  • 合肥网站建设方案优化写作网站大全
  • 专门提供做ppt小素材的网站网站定位
  • 临沂市建设局兰山区网站wordpress 去除下划线
  • 如何做一张图片的网站关于实验室建设的英文网站
  • 网站建设文本居中代码山东网站推广营销设计
  • 山东桓台建设招投标网站北京建设信息港网站
  • 为什么网站要域名个人养老金制度最新消息
  • 公众号开发是不是网站开发公司网站建设分录
  • 云南省住房建设厅网站代理二级分销系统
  • 四川建设人才培训网站临沂网站制作页面
  • 用vue做网站建设工程合同属于什么合同
  • 赶集的网站怎么做广告投放报价
  • php 家政网站白嫖云服务器
  • 长春网站关键词推广优秀网站建设哪个公司好
  • php实战做网站视频教程站长工具网站测速
  • 当下网站建设常见的网址有哪些
  • 洪雅网站建设事业单位门户网站建设包含内容
  • 外网如何查看局域网建设的网站区块链开发工程师要求
  • 网站首页三张海报做多大怎么做网上直营店网站
  • 网站制作新手教程视频省建设厅网站安全生产标准化
  • 自动建设网站系统阿里云虚拟主机多网站
  • 区块链app排名网站seo其应用
  • 海口网站建设咨询一般网站建设需求有哪些方面
  • 免费网站建设朋友交流模板王网站