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

Add API for particle emitter scatter ratio #275

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

adlarkin
Copy link
Contributor

@adlarkin adlarkin commented Mar 19, 2021

Signed-off-by: Ashton Larkin [email protected]

🦟 Bug fix

Addresses a missing API that was mentioned here. This breaks ABI, so this is targeting Edifice before release.

Summary

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

@adlarkin adlarkin requested a review from iche033 March 19, 2021 01:38
@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Mar 19, 2021
@adlarkin adlarkin force-pushed the adlarkin/particleScatterRatioAPI branch from 8a2bb79 to 94feab7 Compare March 19, 2021 02:29
@chapulina chapulina added the beta Targeting beta release of upcoming collection label Mar 19, 2021
@adlarkin adlarkin force-pushed the adlarkin/particleScatterRatioAPI branch 4 times, most recently from 5cb1ad6 to 8e02969 Compare March 19, 2021 16:23
@adlarkin adlarkin marked this pull request as ready for review March 19, 2021 16:24
Copy link
Contributor Author

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

@iche033 this is ready for review. I just have one question, which I tried to explain below.

It also looks like a particle scatter-related test is now failing on Ubuntu CI 😬 I'm not sure why though, because I did some debugging and believe that the scatter ratio is being set correctly in shaders. Can you tell me if you notice anything here that may be related to these failures?

Edit: Failures should be gone now after 5dc273f. Let me know if I am missing any other tests that need to be updated.

ogre2/src/Ogre2ParticleNoiseListener.cc Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 19, 2021

Codecov Report

Merging #275 (23be0b8) into main (eefcdd9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #275   +/-   ##
=======================================
  Coverage   57.54%   57.54%           
=======================================
  Files         159      159           
  Lines       15595    15588    -7     
=======================================
- Hits         8974     8970    -4     
+ Misses       6621     6618    -3     
Impacted Files Coverage Δ
include/ignition/rendering/ParticleEmitter.hh 100.00% <ø> (ø)
ogre2/src/Ogre2ParticleNoiseListener.hh 100.00% <ø> (ø)
...ude/ignition/rendering/base/BaseParticleEmitter.hh 48.19% <100.00%> (+4.03%) ⬆️
ogre2/src/Ogre2ParticleNoiseListener.cc 92.85% <100.00%> (+3.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eefcdd9...23be0b8. Read the comment docs.

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

nice, looks good to me. just one minor comment.

thanks for adding the new API!

ogre2/src/Ogre2ParticleNoiseListener.cc Outdated Show resolved Hide resolved
@adlarkin adlarkin requested a review from iche033 March 19, 2021 18:32
@adlarkin
Copy link
Contributor Author

We'll need to update the related code in ign-gazebo as well, but I think that we might need to wait to do that. In particular, we can now use these new API calls in ign-gazebo/src/rendering/SceneManager.cc (gazebosim/gz-sim#674), but we will need to wait for that PR to be merged and forward-ported first.

@adlarkin adlarkin self-assigned this Mar 19, 2021
@adlarkin adlarkin force-pushed the adlarkin/particleScatterRatioAPI branch from 07efcee to 23be0b8 Compare March 22, 2021 22:32
@adlarkin adlarkin merged commit 23be0b8 into main Mar 22, 2021
@adlarkin adlarkin deleted the adlarkin/particleScatterRatioAPI branch March 22, 2021 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants