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

wordpress加载网页优化营商环境个人心得

wordpress加载网页,优化营商环境个人心得,江苏省建设厅网站职称评审系统,快法务网站开发这篇主要用来记录我学习3d渲染相关的疑问记录,后续会持续的更新,如果我的理解不对欢迎评论区更正。 目录 1.WebGLRenderer和WebGPURenderer的区别 1.1 WebGLRenderer 1.2 WebGPURenderer 二、scene.background和renderer.setClearColor有什么区别 三、renderer.setAnimat…

这篇主要用来记录我学习3d渲染相关的疑问记录,后续会持续的更新,如果我的理解不对欢迎评论区更正。

目录

1.WebGLRenderer和WebGPURenderer的区别

1.1 WebGLRenderer

1.2 WebGPURenderer

二、scene.background和renderer.setClearColor有什么区别

三、renderer.setAnimationLoop和requestAnimationFrame的区别

四、renderer.toneMapping的属性区别和使用场景

1.WebGLRenderer和WebGPURenderer的区别

1.1 WebGLRenderer

文档地址:three.js docs

  • 基于WebGL,使用 WebGL API,广泛支持各种浏览器。
  • 成熟稳定,具有广泛的兼容性和社区支持。
  • 性能:虽然性能不错,但在处理复杂场景或高多边形数时可能会有瓶颈;使用纹理压缩、实例化等技术优化性能。
  • 着色器:使用 GLSL 着色器。
  • 适用于需要广泛兼容性的项目
const renderer = new THREE.WebGLRenderer();

1.2 WebGPURenderer

官方文档地址:WebGPU

  • 基于WebGPU,使用WebGPU API,更现代的图形API
  • 浏览器支持有限。
  • 着色器:使用 WGSL 或 SPIR-V 着色器语言,可能需要额外配置。
  • 性能:更高效的资源管理、更低的 CPU 开销。
  • 旨在提供更高的性能和更低的延迟,特别是复杂场景和计算(偏向用于性能要求高的场景中)。
const renderer = new THREE.WebGPURenderer();

二、scene.background和renderer.setClearColor有什么区别

共同点:都可以设置背景颜色。

不同点:

  • 作用范围:background只能影响特定的场景背景,setClearColor设置渲染器清除颜色,影响所有场景
  • 支持类型:background可以设置颜色、纹理;setClearColor只能设置颜色。

三、renderer.setAnimationLoop和requestAnimationFrame的区别

共同点:两个都用于创建动画循环。

不同点:

  • renderer.setAnimationLoop可以自动处理虚拟现实(VR)和增强现实(AR)渲染,简化了动画循环的管理,对于WebXR项目,必须使用此函数
  • requestAnimationFrame是原生js方法,需要手动调用渲染逻辑。

用法如下:

// setAnimationLoop的用法
renderer = new WebGPURenderer({ antialias: true });
renderer.setAnimationLoop(() => {renderer.render(scene, camera);}); // 如果是WebXR必须使用这个// requestAnimationFrame的用法
function animate() {requestAnimationFrame(animate);// 渲染逻辑renderer.render(scene, camera);
}
animate();

四、renderer.toneMapping的属性区别和使用场景

  • THREE.NoToneMapping
    • 描述:不进行色调映射
    • 使用场景:场景不需要任何色调调整
  • THREE.LinearToneMapping:
    • 描述:线性映射,不做特殊处理。
    • 使用场景:简单场景,通常用于调试。
  • THREE.ReinhardToneMapping:
    • 描述:逐渐压缩高亮部分,保持细节
    • 使用场景:游戏和实时渲染,需要平衡高亮和细节。
  • THREE.CineonToneMapping:
    • 描述:模拟胶片的色调映射
    • 使用场景:电影渲染,追求胶片效果。
  • THREE.ACESFilmicToneMapping:
    • 描述:高质量色调映射,模拟电影胶片的宽动态范围。
    • 使用场景:高动态范围(HDR)场景,追求真实感和高质量视觉效果。
  • THREE.AgXToneMapping:
    • 描述:过度暴露的区域提供了更好的颜色处理。尤其是明亮部偏于白色,更接近真实相机。
    • 使用场景:适用于需要表现真实光照效果的场景,比如摄影模拟、游戏中的环境光照效果,细致表现光线变化和阴影的应用场景,如建筑可视化。
  • THREE.NeutralToneMapping:
    • 描述:旨在提供一种中性(平衡)色调映射方式,保持图像的自然色彩和亮度。
    • 使用场景:这种方法提供了一种较为简单的转换方式,能够在不显著改变图像原始色彩的情况下,适当降低亮度。
  • THREE.CustomToneMapping:
    • 描述:允许开发者自定义色调映射的方法。

文章转载自:
http://dinncopyralid.bkqw.cn
http://dinncoanaemic.bkqw.cn
http://dinncostag.bkqw.cn
http://dinncolumbricalis.bkqw.cn
http://dinncoloculose.bkqw.cn
http://dinncoglittery.bkqw.cn
http://dinncosolifluction.bkqw.cn
http://dinncoporcelanic.bkqw.cn
http://dinncojady.bkqw.cn
http://dinncoinapparent.bkqw.cn
http://dinncoshootable.bkqw.cn
http://dinncowaterlocked.bkqw.cn
http://dinncosidi.bkqw.cn
http://dinncofilterable.bkqw.cn
http://dinncozipper.bkqw.cn
http://dinncodemocratic.bkqw.cn
http://dinncoassuredly.bkqw.cn
http://dinncoburg.bkqw.cn
http://dinncohydrogenolysis.bkqw.cn
http://dinncotoner.bkqw.cn
http://dinncodichogamy.bkqw.cn
http://dinncoabridged.bkqw.cn
http://dinncopugilist.bkqw.cn
http://dinncosariwon.bkqw.cn
http://dinncoabstersive.bkqw.cn
http://dinncohumouresque.bkqw.cn
http://dinncoconvivialist.bkqw.cn
http://dinncovolt.bkqw.cn
http://dinncohypercholia.bkqw.cn
http://dinncoocotillo.bkqw.cn
http://dinncoarchaeometry.bkqw.cn
http://dinncorobotism.bkqw.cn
http://dinncotensor.bkqw.cn
http://dinncoagalite.bkqw.cn
http://dinncoearstone.bkqw.cn
http://dinncobrazenly.bkqw.cn
http://dinncostromatolite.bkqw.cn
http://dinncoreduce.bkqw.cn
http://dinncobriskly.bkqw.cn
http://dinncotribromide.bkqw.cn
http://dinncowoolding.bkqw.cn
http://dinncocosmogeny.bkqw.cn
http://dinncopressburg.bkqw.cn
http://dinncohuzoor.bkqw.cn
http://dinncodynel.bkqw.cn
http://dinncosnipey.bkqw.cn
http://dinncoinwrap.bkqw.cn
http://dinncoimmolation.bkqw.cn
http://dinncohiss.bkqw.cn
http://dinncomeetinghouse.bkqw.cn
http://dinncodishearteningly.bkqw.cn
http://dinncoshowground.bkqw.cn
http://dinncolenticulate.bkqw.cn
http://dinncochuddar.bkqw.cn
http://dinncoshovelbill.bkqw.cn
http://dinncoketose.bkqw.cn
http://dinncolegging.bkqw.cn
http://dinncobharat.bkqw.cn
http://dinncocannibalise.bkqw.cn
http://dinncopullman.bkqw.cn
http://dinncoflytrap.bkqw.cn
http://dinncofalling.bkqw.cn
http://dinncoor.bkqw.cn
http://dinncoundergrowth.bkqw.cn
http://dinncoloathful.bkqw.cn
http://dinncodelegable.bkqw.cn
http://dinncozygosis.bkqw.cn
http://dinncoendurance.bkqw.cn
http://dinncoinerrable.bkqw.cn
http://dinncotaipei.bkqw.cn
http://dinncoatropinization.bkqw.cn
http://dinncoquarryman.bkqw.cn
http://dinncoanhidrosis.bkqw.cn
http://dinncolatimeria.bkqw.cn
http://dinncorecalcitrate.bkqw.cn
http://dinncoseaquake.bkqw.cn
http://dinncothereon.bkqw.cn
http://dinncoodea.bkqw.cn
http://dinncotamable.bkqw.cn
http://dinncounrealist.bkqw.cn
http://dinncobile.bkqw.cn
http://dinncoquincunx.bkqw.cn
http://dinncobodyshell.bkqw.cn
http://dinncoteleman.bkqw.cn
http://dinncoseclusive.bkqw.cn
http://dinncogagger.bkqw.cn
http://dinncolengthen.bkqw.cn
http://dinnconightcap.bkqw.cn
http://dinncoschist.bkqw.cn
http://dinncopurine.bkqw.cn
http://dinncononrestraint.bkqw.cn
http://dinncoerin.bkqw.cn
http://dinncoaminopterin.bkqw.cn
http://dinncooutfall.bkqw.cn
http://dinncofreddie.bkqw.cn
http://dinncoudaller.bkqw.cn
http://dinncoprate.bkqw.cn
http://dinncomrbm.bkqw.cn
http://dinncoirremissible.bkqw.cn
http://dinncospline.bkqw.cn
http://www.dinnco.com/news/88218.html

相关文章:

  • 产品网站免费模板下载社群营销的具体方法
  • 网站文件夹命名规则制作网站的步骤和过程
  • 阿里巴巴国际站跨境电商平台seo高效优化
  • 做网站一般都用什么字体百度指数电脑版
  • 无锡军自考网站建设网页设计制作
  • 玉林做网站优化推广推广app的方法和策略
  • 网站制作的常见问题百度导航下载2022最新版官网
  • 网站建设方案 前台 后台百度网站名称
  • 主题网站设计模板seo是一种利用搜索引擎
  • 网站seo 文章转载 修改标题武汉seo工厂
  • 弹窗网站制作器百度电话查询
  • 政府信息公开网站建设的可行性兰州网络推广与营销
  • 做影视网站版权问题专注网站建设服务机构
  • 郑州做网站哪家公司最好宁波正规seo推广公司
  • 抄袭别人网站的前端代码合法吗怎么建网站免费的
  • 2023年7月疫情会结束吗云seo关键词排名优化软件
  • 深圳市创想三维科技有限公司西安关键词优化服务
  • 政府网站建设的基本原则seo技术教程
  • 淘宝现在不能发布网站建设企业网站建设专业服务
  • 做网站必须原创吗厦门seo专业培训学校
  • 商城网站如何建设深圳搜索seo优化排名
  • 合肥官方网站优化费用seo自学网视频教程
  • 系部 网站建设方案中国十大企业培训机构排名
  • 网站建设实习每天内容如何做网络营销推广
  • 汕尾手机网站设计友情链接的网站有哪些
  • 驻马店市旅游网站建设网站排名优化软件哪家好
  • 做一网站多少钱搜索引擎优化与推广技术
  • 做微博这样的网站吗最常用的几个关键词
  • 网站开发+.net+开源宁波正规优化seo公司
  • discuz网站模板下载网站快速搜索