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

p2p网站建设公司排名设计开发建设网站平台

p2p网站建设公司排名,设计开发建设网站平台,游戏怎么做充值网站,国际网站浏览器参考资料 三维向量Vector3与模型位置…克隆.clone()和复制.copy() 知识点 注#xff1a;基于Three.jsv0.155.0 三维向量Vector3与模型位置欧拉Euler与角度属性.rotation模型材质颜色(Color对象)模型材质父类Material#xff1a;透明、面属性模型材质和几何体属性克隆.clo…参考资料 三维向量Vector3与模型位置…克隆.clone()和复制.copy() 知识点 注基于Three.jsv0.155.0 三维向量Vector3与模型位置欧拉Euler与角度属性.rotation模型材质颜色(Color对象)模型材质父类Material透明、面属性模型材质和几何体属性克隆.clone()和复制.copy() 代码实现 !DOCTYPE html html langen headmeta charsetUTF-8titleThree.js/title /headbody/body!-- 具体路径配置你根据自己文件目录设置我的是课件中源码形式 --script typeimportmap{imports: {three: ./js/three.module.js,three/addons/: ../three.js/examples/jsm/}}/scriptscript typemoduleimport * 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.hkea.cn/news/14270053/

相关文章:

  • 购物网站开发和运行环境wordpress 替换图片函数
  • 在线网站域名whois查询工具网站建设公司的前端
  • 网站建设面试问题做网站被骗了怎么办
  • 网站建设理论基础坪山建设网站
  • 建设网站需要什么技术支持免费大数据查询平台
  • 做音乐网站要求浙江网商银行股份有限公司
  • 自己做网站处理图片用什么软件下载国内php开发的网站建设
  • 最安全的网站语言怎么查询自己的二建信息
  • 盐城哪家做网站的正规wordpress 幻灯片插件下载
  • 游戏设计网站网站建设尾款如何做会计分录
  • html5作业 建设网站湛江专业雷剧视频
  • 网站建设淘宝类目网站怎么做透明导航栏
  • 查询网站开发语言当前主流的网站开发语言
  • 网站开发平台的定义网络用语建设是什么意思
  • 备案的时候网站名称app和网站开发人员工作职责
  • 花卉网站建设策划书个体工商户年审营业执照
  • 仿牌网站容易被攻击吗网站注册手机号安全吗
  • 青岛市城市建设局网站企业邮箱哪个好用和安全
  • 警惕网站免费看手机wordpress建站指南
  • 电子商城网站的设计与实现济南网页设计培训
  • 关于网站建设的案例分析广告怎么做
  • 建筑效果图素材网站襄阳网站建设哪个好
  • 北京建站管理系统价格宁波seo外包联系方式
  • 大港做网站如何让自己做的网站在google搜索引擎上搜到
  • 网站开发与运维收费明细邯郸seo推广
  • 开发网站嵌入广告用模板做的网站不好优化
  • 建立网站的步骤筝晃湖南岚鸿官网皖icp合肥网站开发公司
  • 佛山免费网站设计营销型网站有哪些
  • iis网站在点默认文档的时候报错.国内设计师网站
  • 爱站权重wordpress 谷歌搜索结果