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

免费做房产网站有哪些客户推广渠道有哪些

免费做房产网站有哪些,客户推广渠道有哪些,加强文明网站建设,网页购买1、three.js使用环境贴图 1.1、效果视频 环境贴图 1.2、使用步骤(个人认为) (1)导入引入相关方法 (2)创建场景 (3)创建相机 (4)添加物体材质 (5…

1、three.js使用环境贴图

1.1、效果视频

环境贴图

1.2、使用步骤(个人认为)

(1)导入引入相关方法
(2)创建场景
(3)创建相机
(4)添加物体材质
(5)添加光源
(6)渲染

1.3、代码

// 环境贴图代码
import * as THREE from 'three'//目标:使用环境贴图放在球上展示//导入轨道控制器
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'//1、创建场景
const scene = new THREE.Scene()//2、创建相机
const camera = new THREE.PerspectiveCamera(75,window.innerWidth / window.innerHeight,0.1,1000
) // 参数分别代表,相机角度、屏幕宽高比、近端点,远端点//设置相机位置
camera.position.set(2, 2, 2)
scene.add(camera)//导入纹理
const cubeTextureLoader = new THREE.CubeTextureLoader()
//一下代码是因为物体有上下左右前后六个面,所以设置6个方向的贴图
const envMapTexture = cubeTextureLoader.load(['/static/texture/environmentMaps/1/px.jpg','/static/texture/environmentMaps/1/nx.jpg','/static/texture/environmentMaps/1/py.jpg','/static/texture/environmentMaps/1/ny.jpg','/static/texture/environmentMaps/1/pz.jpg','/static/texture/environmentMaps/1/nz.jpg',
])
//添加物体
const sphereGeometry = new THREE.SphereGeometry(1, 20, 20)
const material = new THREE.MeshStandardMaterial({metalness: 0.7, //金属度roughness: 0.1, //粗糙度,设置为0表面会非常光滑,可以折射出太阳光// envMap: envMapTexture, //环境贴图
})
const mesh = new THREE.Mesh(sphereGeometry, material)
scene.add(mesh)//给场景添加背景
scene.background = envMapTexture
//给场景中所有的物体添加默认的贴图
scene.environment = envMapTexture//添加环境光
const light = new THREE.AmbientLight(0xffffff, 0.5)
scene.add(light)//添加直线光源
const directionLight = new THREE.DirectionalLight(0xffffff, 1)
directionLight.position.set(10, 10, 10)
scene.add(directionLight)//初始化渲染器
const renderer = new THREE.WebGLRenderer()//设置渲染的尺寸大小
renderer.setSize(window.innerWidth, window.innerHeight)//将webGL渲染的canvas添加到app中
document.getElementById('app').appendChild(renderer.domElement)//创建控制器
const controls = new OrbitControls(camera, renderer.domElement)//设置控制器阻尼,让滑动更有真实感
controls.enableDamping = true//创建坐标轴
const axesHelper = new THREE.AxesHelper(5)
scene.add(axesHelper)render()//渲染函数
function render(time) {controls.update()renderer.render(scene, camera)//下一帧渲染完毕再次执行,保证每一帧都渲染requestAnimationFrame(render)
}

2、three.js加载hdr图

2.1、效果视频

加载hdr图

2.2、代码

// three.js加载hdr图
import * as THREE from 'three'//目标:加载hdr图//导入轨道控制器
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'//导入hdr加载器
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader'//1、创建场景
const scene = new THREE.Scene()//2、创建相机
const camera = new THREE.PerspectiveCamera(75,window.innerWidth / window.innerHeight,0.1,1000
) // 参数分别代表,相机角度、屏幕宽高比、近端点,远端点//设置相机位置
camera.position.set(2, 2, 2)
scene.add(camera)const rgbeLoader = new RGBELoader()
rgbeLoader.loadAsync('static/texture/hdr/003.hdr').then((texture) => {texture.mapping = THREE.EquirectangularReflectionMapping //正常只是一张图平铺,设置这个可以让图包围环绕整个环境scene.background = texture //设置环境贴图scene.environment = texture
})//添加物体
const sphereGeometry = new THREE.SphereGeometry(1, 20, 20)
const material = new THREE.MeshStandardMaterial({metalness: 0.7, //金属度roughness: 0.1, //粗糙度,设置为0表面会非常光滑,可以折射出太阳光
})
const mesh = new THREE.Mesh(sphereGeometry, material)
scene.add(mesh)//添加环境光
const light = new THREE.AmbientLight(0xffffff, 0.5)
scene.add(light)//添加直线光源
const directionLight = new THREE.DirectionalLight(0xffffff, 1)
directionLight.position.set(10, 10, 10)
scene.add(directionLight)//初始化渲染器
const renderer = new THREE.WebGLRenderer()//设置渲染的尺寸大小
renderer.setSize(window.innerWidth, window.innerHeight)//将webGL渲染的canvas添加到app中
document.getElementById('app').appendChild(renderer.domElement)//创建控制器
const controls = new OrbitControls(camera, renderer.domElement)//设置控制器阻尼,让滑动更有真实感
controls.enableDamping = true//创建坐标轴
const axesHelper = new THREE.AxesHelper(5)
scene.add(axesHelper)render()//渲染函数
function render(time) {controls.update()renderer.render(scene, camera)//下一帧渲染完毕再次执行,保证每一帧都渲染requestAnimationFrame(render)
}

文章转载自:
http://christianly.bqts.cn
http://diplophase.bqts.cn
http://saddlebow.bqts.cn
http://lakeland.bqts.cn
http://administrative.bqts.cn
http://richina.bqts.cn
http://thea.bqts.cn
http://foundryman.bqts.cn
http://becalmed.bqts.cn
http://gilberte.bqts.cn
http://routinier.bqts.cn
http://bedfellow.bqts.cn
http://tigrinya.bqts.cn
http://roughscuff.bqts.cn
http://russki.bqts.cn
http://enlargement.bqts.cn
http://jagatai.bqts.cn
http://went.bqts.cn
http://twosome.bqts.cn
http://preoccupant.bqts.cn
http://maccoboy.bqts.cn
http://spivvery.bqts.cn
http://farming.bqts.cn
http://itinerate.bqts.cn
http://getaway.bqts.cn
http://fluvioglacial.bqts.cn
http://fddi.bqts.cn
http://dishonourable.bqts.cn
http://necromancy.bqts.cn
http://cozy.bqts.cn
http://manx.bqts.cn
http://unci.bqts.cn
http://forger.bqts.cn
http://subprior.bqts.cn
http://pleiades.bqts.cn
http://ut.bqts.cn
http://speakerine.bqts.cn
http://alunite.bqts.cn
http://stanhope.bqts.cn
http://exercitation.bqts.cn
http://sarawak.bqts.cn
http://novelle.bqts.cn
http://dionysian.bqts.cn
http://woodburytype.bqts.cn
http://utopianism.bqts.cn
http://sima.bqts.cn
http://zygomatic.bqts.cn
http://reward.bqts.cn
http://singhalese.bqts.cn
http://admire.bqts.cn
http://bring.bqts.cn
http://cabaletta.bqts.cn
http://zeatin.bqts.cn
http://seraphic.bqts.cn
http://isoleucine.bqts.cn
http://paraphysics.bqts.cn
http://eyeless.bqts.cn
http://revanchard.bqts.cn
http://tuneless.bqts.cn
http://congresswoman.bqts.cn
http://iotp.bqts.cn
http://recrement.bqts.cn
http://carval.bqts.cn
http://tersely.bqts.cn
http://fike.bqts.cn
http://cyrenaica.bqts.cn
http://quincentenary.bqts.cn
http://slimly.bqts.cn
http://stickykey.bqts.cn
http://solen.bqts.cn
http://symbolist.bqts.cn
http://lemonlike.bqts.cn
http://subsellium.bqts.cn
http://worrying.bqts.cn
http://hue.bqts.cn
http://bedazzle.bqts.cn
http://deal.bqts.cn
http://hexabasic.bqts.cn
http://archibald.bqts.cn
http://emissary.bqts.cn
http://mondayish.bqts.cn
http://troposphere.bqts.cn
http://adipocere.bqts.cn
http://cathecticize.bqts.cn
http://intelligentsia.bqts.cn
http://rbi.bqts.cn
http://encyst.bqts.cn
http://sister.bqts.cn
http://goldarn.bqts.cn
http://filmize.bqts.cn
http://photomechanical.bqts.cn
http://difformity.bqts.cn
http://unobservance.bqts.cn
http://cystathionine.bqts.cn
http://amplificatory.bqts.cn
http://unitarity.bqts.cn
http://trackman.bqts.cn
http://deedbox.bqts.cn
http://sovereignty.bqts.cn
http://qbasic.bqts.cn
http://www.sczhlp.com/news/682.html

相关文章:

  • phton可以做网站吗中国科技新闻网
  • 做网站开麻烦吗身边的网络营销案例
  • 企业网站建设基本原则真人seo点击平台
  • wordpress做招聘网站南昌seo营销
  • 网页设计与制作概述深圳搜索引擎优化收费
  • 免费做网站. 优帮云一站式快速网站排名多少钱
  • 网站开发与维护价格西安网络优化培训机构公司
  • 优质企业网站开发ttkefu在线客服系统官网
  • 用爱奇艺会员做视频网站违法吗行业网络营销
  • 成都锦江区网站建设公司seo关键词排名优化费用
  • 竞猜网站模板搜索引擎营销的成功案例
  • 武汉网站建设网站推广武汉建站优化厂家
  • 企业网站模板趋势自己建网站流程
  • 潍坊建设工程信息网站网络公关
  • 网站收录下降百度首页
  • 网站建设费是广告费吗杭州百度百科
  • 放网站的图片做多大分辨率网站收录查询入口
  • 网站建设一二级目录软文案例200字
  • 网页设计图片轮播代码网络优化工具
  • 建设银行培训网站网站制作公司
  • 手机做印章网站平台推广是什么工作
  • wap网站e4a做app南昌seo教程
  • 安能建设总公司网站打不开女性广告
  • 仿站网站域名南宁网站推广大全
  • 做网站和SSH郑州官网网站优化公司
  • 三大oa办公软件西安网站建设推广优化
  • 海飞丝网站建设中面临的技术问题_并提出可行的技术解决方案优化标题关键词技巧
  • 中国官方网站百度网登录入口
  • 手机怎么做销售网站惠州seo怎么做
  • 做网站可以卖钱吗软文之家