# windfield-3d **Repository Path**: alsum/windfield-3d ## Basic Information - **Project Name**: windfield-3d - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-05-25 - **Last Updated**: 2021-07-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1 起点:解析nc数据并创建粒子系统 DataProcess.loadData().then() 返回的 data 对象有五大属性 - u - v - lon - lat - lev U、V 的 typedArray 数据用于创建 U、V 纹理(Cesium 的 Texture对象),纹理的尺寸使用 720x360? lon、lat 数据用于创建 在 then 里创建了 ParticleSystem,并完成了数据是适配 # 2 粒子系统的创建 ## ParticlesComputing 创建风纹理、粒子纹理、计算图元(这里用到了自定义图元类) ## ParticlesRendering 创建渲染纹理、渲染FBO、渲染图元 ## ① 添加图元 添加6个图元,就上面6个 ## ② 设置监听 对摄像机的移动、视窗尺寸改变、scene的预渲染、粒子系统状态改变四个事件进行事件监听 # 3 创建纹理、FBO 及其用途 # 4 自定义图元的创建 # 5 图元的更新