<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sharkhzj的专栏]]></title><description><![CDATA[blender+three.js搭建3d虚拟工厂]]></description><link>https://blog.youkuaiyun.com/shark0102</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; shark0102]]></copyright><item><title><![CDATA[MeshDepthMaterial]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/149838561</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/149838561</guid><author>shark0102</author><pubDate>Fri, 01 Aug 2025 17:27:42 +0800</pubDate><description><![CDATA[Three.js中的MeshDepthMaterial是一种基于相机视距渲染几何体的特殊材质。它将深度值映射为黑白渐变（最近处为白色，最远处为黑色）]]></description><category></category></item><item><title><![CDATA[Blender 智能模型库 | 人物·建筑·场景·机械等 近万高精度模型]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/149837273</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/149837273</guid><author>shark0102</author><pubDate>Fri, 01 Aug 2025 16:44:40 +0800</pubDate><description><![CDATA[blender模型库，人物模型，建筑模型]]></description><category></category></item><item><title><![CDATA[3D虚拟工厂]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/148261550</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/148261550</guid><author>shark0102</author><pubDate>Tue, 27 May 2025 17:34:04 +0800</pubDate><description><![CDATA[3d虚拟工厂 three.js + blender]]></description><category></category></item><item><title><![CDATA[LineBasicMaterial]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/148013582</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/148013582</guid><author>shark0102</author><pubDate>Fri, 16 May 2025 18:16:15 +0800</pubDate><description><![CDATA[用于绘制纯色线条的基础材质，支持颜色、线宽和纹理映射。常用于`THREE.Line`或`THREE.LineSegments`几何体]]></description><category></category></item><item><title><![CDATA[Material]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147950117</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147950117</guid><author>shark0102</author><pubDate>Wed, 14 May 2025 11:22:29 +0800</pubDate><description><![CDATA[THREE.Material 是 Three.js 中所有材质的基类，定义了物体表面的渲染属性（如颜色、纹理、光照响应、透明度和混合模式等），控制几何体在场景中的视觉表现]]></description><category></category></item><item><title><![CDATA[WebGLRenderTarget]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147918368</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147918368</guid><author>shark0102</author><pubDate>Tue, 13 May 2025 10:42:27 +0800</pubDate><description><![CDATA[- WebGLRenderTarget 是 Three.js 中的一个类，用于创建离屏渲染缓冲区（Offscreen Render Target），允许将 3D 场景渲染到纹理（Texture）而不是直接渲染到屏幕。
   - 主要用途：
       - 后期处理（Post-processing）：如模糊、辉光、色调映射等效果（结合 EffectComposer 使用）。
       - 阴影映射（Shadow Mapping）：存储深度信息以计算动态阴影。
       - 反射/折射（Reflect]]></description><category></category></item><item><title><![CDATA[WebGLRenderer]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147890619</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147890619</guid><author>shark0102</author><pubDate>Mon, 12 May 2025 10:22:53 +0800</pubDate><description><![CDATA[WebGLRenderer 是 Three.js 的核心渲染器，基于 WebGL 实现，用于在浏览器中高效渲染 3D 场景。它负责处理着色器、光照、阴影、材质、几何体等核心渲染流程，并将最终结果输出到 HTML canvas 元素上。]]></description><category></category></item><item><title><![CDATA[BufferAttribute]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147856856</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147856856</guid><author>shark0102</author><pubDate>Sat, 10 May 2025 17:57:31 +0800</pubDate><description><![CDATA[BufferAttribute是 Three.js 中用于高效管理几何体属性数据的核心类，其主要特点包括：
1. **数据存储**  
   专为存储 `BufferGeometry` 的各种属性设计，包括： 顶点位置（`position`）、法线向量（`normal`）、颜色值（`color`）、UV坐标（`uv`）、面片索引（`index`）、自定义属性（如实例化数据）

2. **GPU优化**  
   采用类型化数组（TypedArray）存储数据，通过连续内存布局实现：显存高效传输、适合]]></description><category></category></item><item><title><![CDATA[BufferGeometryUtils]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147744277</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147744277</guid><author>shark0102</author><pubDate>Tue, 06 May 2025 17:41:58 +0800</pubDate><description><![CDATA[Three.js 提供的工具类，用于高效处理 `BufferGeometry` 的复杂操作，包括几何体合并、顶点优化、切线计算等。适用于需要高性能几何体处理的场景（如模型简化、LOD生成、动态几何体更新）]]></description><category></category></item><item><title><![CDATA[BufferGeometry]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147723545</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147723545</guid><author>shark0102</author><pubDate>Tue, 06 May 2025 09:11:34 +0800</pubDate><description><![CDATA[BufferGeometry 是 Three.js 中用于描述面（Mesh）、线（Line）或点（Point）几何体的高效数据结构。它通过缓存属性（Buffer Attributes）存储以下几何数据：顶点位置（Position）、面索引（Index）、法向量（Normal）、颜色值（Color）、UV 坐标（UV）、自定义属性（Custom Attributes）]]></description><category></category></item><item><title><![CDATA[Raycaster光线投射]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147703906</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147703906</guid><author>shark0102</author><pubDate>Sun, 04 May 2025 21:13:17 +0800</pubDate><description><![CDATA[光线投射Raycaster，用于进行raycasting（光线投射）。 光线投射用于进行鼠标拾取（在三维空间中计算出鼠标移过了什么物体）。Intersection 类型定义：
I说明：]]></description><category></category></item><item><title><![CDATA[OrbitControls轨道控制器]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147662484</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147662484</guid><author>shark0102</author><pubDate>Fri, 02 May 2025 13:20:34 +0800</pubDate><description><![CDATA[Orbit controls（轨道控制器）可以使得相机围绕目标进行轨道运动。]]></description><category></category></item><item><title><![CDATA[1️⃣7️⃣three.js_OrbitControls相机控制器]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147661208</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147661208</guid><author>shark0102</author><pubDate>Fri, 02 May 2025 11:28:55 +0800</pubDate><description><![CDATA[Controls” 表明它是一个 输入控制系统，将用户操作（鼠标/触摸）转换为相机运动。]]></description><category></category></item><item><title><![CDATA[1️⃣6️⃣three.js_光源]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147479008</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147479008</guid><author>shark0102</author><pubDate>Thu, 24 Apr 2025 15:09:01 +0800</pubDate><description><![CDATA[在 Three.js 中，环境光（AmbientLight）、点光源（PointLight）、平行光（DirectionalLight）、 聚光灯（SpotLight）、半球光（HemisphereLight）是几种常用的光源类型。blender 中的日光、点光、面光、聚光：three.js:环境光、点光源、平行光、聚光灯、半球光：开启地面接收物体阴影renderer开启阴影映射。]]></description><category></category></item><item><title><![CDATA[1️⃣5️⃣three.js_GUI辅助调试器]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147426661</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147426661</guid><author>shark0102</author><pubDate>Tue, 22 Apr 2025 17:30:55 +0800</pubDate><description><![CDATA[这里将参数分为四组：位置、缩放、颜色和旋转。每组包含一个或多个控制，调整这些控制时，大树的形态会实时更新，无需修改代码，直接在 GUI 中即可完成调整。GUI辅助调试器将原本需要修改代码调整参数并刷新页面的操作，简化为直接在GUI中实时调整，实现所见即所得的效果。当前修改的tempPosition作为中间变量的方式会同步更新项目中多处引用，这种间接操作不够直观。修改 JavaScript 对象tempPosition的参数。]]></description><category></category></item><item><title><![CDATA[1️⃣4️⃣three.js_Stats性能监视器]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147393342</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147393342</guid><author>shark0102</author><pubDate>Mon, 21 Apr 2025 14:29:03 +0800</pubDate><description><![CDATA[在流畅运行的情况下，FPS 通常为 60，这意味着每帧的渲染时间约为 16.7 毫秒（即 1/60 秒），这一时间也被称为 帧间隔时间（Frame Interval）。需要注意的是，render() 函数的计算复杂度越高，渲染性能通常就越低。然而，如果在调试过程中没有性能监视器，当出现画面卡顿时，开发者将难以精准定位性能瓶颈，无法判断是渲染逻辑复杂、GPU 负载过高，还是其他因素导致的帧率下降。如果项目出现卡顿问题，在排除硬件因素后，应重点检查 render() 函数的执行效率以及三维场景的复杂度。]]></description><category></category></item><item><title><![CDATA[1️⃣3️⃣three.js_物体的阵列]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147376245</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147376245</guid><author>shark0102</author><pubDate>Sun, 20 Apr 2025 21:55:41 +0800</pubDate><description><![CDATA[物体的排列组合，本质上是通过复制和平移来实现的。这个层级结构中：three.js场景 → glb场景 → 树 → 大树1（包含两个mesh：树叶和树干）。克隆操作是针对大树1这个空Group对象进行的，因此其子mesh都是引用关系。当我们修改任一mesh的Geometry或Material时，所有引用这些mesh的父级Group都会同步更新。
 不过，克隆产生的Group对象是独立的，例如newTreeOther可以单独设置x轴坐标和y轴旋转属性。]]></description><category></category></item><item><title><![CDATA[1️⃣2️⃣three.js_物体的镜像]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147352725</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147352725</guid><author>shark0102</author><pubDate>Sat, 19 Apr 2025 17:01:18 +0800</pubDate><description><![CDATA[镜像（Mirror Reflection）是指物体相对于某个参考平面或坐标轴进行对称变换的操作。
在父级坐标系中，物体镜像变换的数学本质是对指定轴向的坐标值进行取反操作。右侧箭头处是预期位置，红圈⭕为父级坐标系原点。实际X轴移动了-30米（与预期相反），旋转方向也变为逆时针90度（与预期顺时针相反）。 下面比较烧脑，谨慎观看！]]></description><category></category></item><item><title><![CDATA[1️⃣1️⃣three.js_物体的平移、缩放、旋转]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147335297</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147335297</guid><author>shark0102</author><pubDate>Fri, 18 Apr 2025 16:20:27 +0800</pubDate><description><![CDATA[📍齐次坐标是一种用于表示几何点的坐标系统。以三维物体上的点（1，5，6）为例，它原本有XYZ三个坐标。若要使该点发生位置变化，需引入齐次坐标，将其表示为（1，5，6，1）。最后验证矩阵转换结果：Blender局部坐标（31, -9, 25.5）变换为three.js局部坐标（31, 25.5, 9）。在父级坐标系中，物体的缩放和旋转看似简单——无非是改变大小或调整角度，实则暗藏玄机，变得复杂难懂。📍当前矩阵也可以在 threejs场景->新办公楼2->matrix中查看。右边克隆、平移、旋转、缩放。]]></description><category></category></item><item><title><![CDATA[1️⃣0️⃣three.js_克隆、拷贝]]></title><link>https://blog.youkuaiyun.com/shark0102/article/details/147312837</link><guid>https://blog.youkuaiyun.com/shark0102/article/details/147312837</guid><author>shark0102</author><pubDate>Thu, 17 Apr 2025 20:03:25 +0800</pubDate><description><![CDATA[使用 clone() 方法克隆 厂房001 时，系统会 创建一个新的空物体（包含其所有子物体）不创建新对象：copy() 是实例方法，需在已有对象上调用，仅复制属性到目标对象。不自动创建副本：你需要先手动创建目标对象（如 new Group()）。同样共享材质/几何体：和 clone() 一样，材质和几何体是浅拷贝。左边是clone()方法，右边是copy()方法.点击【专栏目录】查看专栏其他内容。]]></description><category></category></item></channel></rss>