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

Implement conversion from CPUParticles to GPUParticles (3D/2D) #80779

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Aug 19, 2023

This PR adds a conversion option from CPUParticles2D/CPUParticles3D -> GPUParticles2D/3D. Closes godotengine/godot-proposals#2997.

conversion_test

@Chaosus Chaosus requested review from a team as code owners August 19, 2023 08:57
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally (rebased on top of master 5444afa), it works as expected.

In 3D, some particles appear too dark after being converted to from GPUParticles to CPUParticles (not introduced in this PR), so that's why they appear brighter when converted back to GPUParticles.

Testing projects: https://github.com/godotengine/godot-demo-projects/tree/master/2d/particles and https://github.com/godotengine/godot-demo-projects/tree/master/3d/particles

2D

CPUParticles Converted to GPUParticles
Screenshot_20230821_013807 Screenshot_20230821_013906

3D

CPUParticles Converted to GPUParticles
Screenshot_20230821_014458 Screenshot_20230821_014551

@QbieShay
Copy link
Contributor

Calinou was faster than me, LTGM! Thank you a lot!!

@akien-mga akien-mga merged commit cc01b28 into godotengine:master Aug 21, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Chaosus Chaosus deleted the cpuparticles_converter branch August 21, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a menu option to convert CPUParticles back to GPUParticles
4 participants