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

b2b网站推广优化googleplay商店

b2b网站推广优化,googleplay商店,域名解析到别的网站,搜索引擎营销的主要模式有哪些?参考资料 三维向量Vector3与模型位置…克隆.clone()和复制.copy() 知识点 注:基于Three.jsv0.155.0 三维向量Vector3与模型位置欧拉Euler与角度属性.rotation模型材质颜色(Color对象)模型材质父类Material:透明、面属性模型材质和几何体属性克隆.clo…

参考资料

  • 三维向量Vector3与模型位置
  • 克隆.clone()和复制.copy()

知识点

注:基于Three.jsv0.155.0

  • 三维向量Vector3与模型位置
  • 欧拉Euler与角度属性.rotation
  • 模型材质颜色(Color对象)
  • 模型材质父类Material:透明、面属性
  • 模型材质和几何体属性
  • 克隆.clone()和复制.copy()

代码实现

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>Three.js</title>
</head><body></body><!-- 具体路径配置,你根据自己文件目录设置,我的是课件中源码形式 --><script type="importmap">{"imports": {"three": "./js/three.module.js","three/addons/": "../three.js/examples/jsm/"}}</script><script type="module">import * as THREE from 'three';import { OrbitControls } from 'three/addons/controls/OrbitControls.js';const width = 800const height = 500// 场景const scene = new THREE.Scene();// 几何体const geometry = new THREE.BoxGeometry(100, 100, 100);// 材质 const material = new THREE.MeshBasicMaterial({color:0x0000ff,});// 网格模型:物体const mesh = new THREE.Mesh(geometry, material);// 位置属性mesh.position.set(0, 0, 0);// mesh.position.x = 100;// mesh.scale.set(2, 2, 2);// mesh.scale.x = 2;// mesh.translateOnAxis(new THREE.Vector3(1, 0, 1), 100);// mesh.translateX(100);scene.add(mesh);// 角度属性// mesh.rotation.x = Math.PI / 4;// mesh.rotation.set(0, 0, Math.PI / 4);// mesh.rotateX(Math.PI / 4);console.log('🚀 ~ file: 3.1三维向量Vector3与模型位置.html:46 ~ mesh.rolation:', mesh.rotation)// 材料颜色// mesh.material.color.set('red');// mesh.material.color.set('#ff0000');// mesh.material.color.set(0xff0000);mesh.material.color.r = 1;// 材料透明度mesh.material.opacity = 0.8;mesh.material.transparent = true; // 是否透明// 材料面属性// mesh.material.side = THREE.FrontSide; // 正面可见mesh.material.side = THREE.DoubleSide; // 两面可见console.log('🚀 ~ file: 3.1三维向量Vector3与模型位置.html:66 ~ mesh.material.side:', mesh.material.side) // 2console.log('🚀 ~ file: 3.1三维向量Vector3与模型位置.html:63 ~ mesh.material:', mesh.material)console.log('🚀 ~ file: 3.1三维向量Vector3与模型位置.html:89 ~ mesh.geometry:', mesh.geometry)// 克隆、复制const mesh2 = mesh.clone();mesh2.position.set(200, 0, 0);mesh2.material = mesh.material.clone();mesh2.material.color.set(0xff0000);mesh2.position.copy(mesh.position);mesh2.position.y += 150;scene.add(mesh2);// 坐标系const axes = new THREE.AxesHelper(200);scene.add(axes);// 相机const camera = new THREE.PerspectiveCamera(75, width/height, 0.1, 1000);camera.position.set(200, 200, 200);camera.lookAt(scene.position);// 渲染器const renderer = new THREE.WebGLRenderer();renderer.setSize(width, height);renderer.render(scene, camera);document.body.appendChild(renderer.domElement);// 控制器const controls = new OrbitControls(camera, renderer.domElement);controls.addEventListener('change', () => {renderer.render(scene, camera);});// 渲染循环function render() {mesh.rotateY(0.01);// mesh旋转动画// 同步mesh2和mesh的姿态角度一样,不管mesh姿态角度怎么变化,mesh2始终保持同步mesh2.rotation.copy(mesh.rotation);renderer.render(scene, camera);requestAnimationFrame(render);}render();</script>
</html>
http://www.ds6.com.cn/news/104698.html

相关文章:

  • 视频投票网站怎么做的最新的疫情信息
  • 360建筑网站中国国家人事人才培训网证书查询
  • 苏州网站建设设计制作公司怎么样怎么创建自己的网站平台
  • 武威 网站开发百度站长之家
  • 青岛网站推广服务查域名的网址
  • 自己做网站花多少钱免费网站推广
  • 武汉b2b网站建设公司快手流量推广免费网站
  • 文做网站站长工具ip地址查询域名
  • 扬中网站建设网站底部友情链接
  • 香港做网站seo点击排名软件营销工具
  • 请人做个网站多少钱口碑营销的成功案例
  • 网站制作公司 信科网络宁波网站推广找哪家
  • 网批做衣服的网站网络营销的特点有
  • linux系统做网站seo引擎优化专员
  • 晋江模板建站如何把网站推广
  • 网站建设都有那些费用厦门百度竞价推广
  • 什么公司做网商网站的注册安全工程师
  • 杭州网站建设icp备江苏网站建站系统哪家好
  • 医疗网站跳出率百度seo优化按年收费
  • 优秀ppt作品范例天津seo推广软件
  • 网站什么做的企业邮箱申请
  • 百度医疗网站建设论坛推广怎么做
  • 网站自动更新文章手机关键词点击排名软件
  • 有什么网站可以做平面兼职南宁seo费用服务
  • 做网站简约学校网站专业seo网络推广
  • 微信网站开发国外搜索引擎网站
  • 那个网站有兼职做室内设计如何把网站推广出去
  • 房产经济人怎么做网站网盘资源大全
  • 网络公司网站首页网站优化排名哪家好
  • 网站开发的完整流程图不受限制的万能浏览器