Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整粒子系统以及制作粒子编辑器 #35

Open
wardenfeng opened this issue Jun 7, 2018 · 0 comments
Open

调整粒子系统以及制作粒子编辑器 #35

wardenfeng opened this issue Jun 7, 2018 · 0 comments
Labels
新功能 New feature or request

Comments

@wardenfeng
Copy link
Member

同时改进粒子系统

粒子系统(未来应该)支持功能

  1. 例如向上排放尾气且运行中的汽车。
  2. 可以场景中对象进行交互,比如遇到墙壁反弹,雨水掉到地面反弹。
  3. 为了更加容易扩展

基于以上几点原因选择使用cpu进行处理中间状态得到当前时刻的最终位移,颜色等状态。

设计思路

cpu与gpu分工,cpu负责计算粒子的中间状态,gpu负责处理粒子的最终状态

CPU 计算

基于时间的运算颜色,位移,旋转,缩放,速度,加速度,力得到最终状态交给GPU

GPU计算

最终的位移,旋转,缩放,颜色

参考

  1. unity 粒子编辑器
  2. https://blog.csdn.net/pizi0475/article/details/5879563
@wardenfeng wardenfeng added the 新功能 New feature or request label Jun 7, 2018
@wardenfeng wardenfeng added this to the 游戏项目基本需求 milestone Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
新功能 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant