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

Particle scaling #4720

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Particle scaling #4720

wants to merge 21 commits into from

Conversation

Spectrall368
Copy link
Collaborator

@Spectrall368 Spectrall368 commented Mar 25, 2024

With this PR, the particles will be able to have a variable size

Example:

image

For the MCreator Changelog:

  • Added a new number procedure selector for particle scaling

@Spectrall368 Spectrall368 added the new feature New feature or request label Mar 25, 2024
@Spectrall368 Spectrall368 added the community review Used by maintainers to mark issues that should get community reviews, tests, and feedback label Mar 25, 2024
@KlemenDEV
Copy link
Contributor

This component looks really non-standard compared to how procedure selectors look like:

image

Please resolve this

@KlemenDEV KlemenDEV marked this pull request as draft March 25, 2024 18:00
@Spectrall368
Copy link
Collaborator Author

This component looks really non-standard compared to how procedure selectors look like:

Please resolve this

What do you mean?

@KlemenDEV
Copy link
Contributor

Check how this component looks in other parts of UI. It has border and background, while yours looks different

@Spectrall368
Copy link
Collaborator Author

Check how this component looks in other parts of UI. It has border and background, while yours looks different

I copied the selector code from that of the living entities, I don't understand how it can be different

@KlemenDEV
Copy link
Contributor

See, in other parts, it has a background:

image

I did not check code yet, but I suspect you either override bg or opacity settings when you shouldn't

@Spectrall368
Copy link
Collaborator Author

This component looks really non-standard compared to how procedure selectors look like:

Please resolve this

Fixed!

@Spectrall368
Copy link
Collaborator Author

See, in other parts, it has a background:

I did not check code yet, but I suspect you either override bg or opacity settings when you shouldn't

Fixed!

@Spectrall368 Spectrall368 marked this pull request as ready for review March 25, 2024 20:36
@KlemenDEV KlemenDEV marked this pull request as draft March 25, 2024 20:56
@Spectrall368 Spectrall368 marked this pull request as ready for review March 25, 2024 21:10
Copy link
Contributor

@KlemenDEV KlemenDEV left a comment

Choose a reason for hiding this comment

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

image

There is still change we don't want

@KlemenDEV
Copy link
Contributor

Please see https://github.com/MCreator/MCreator/pull/4720/files tab to see it in action

@KlemenDEV KlemenDEV marked this pull request as draft March 26, 2024 09:56
@Spectrall368 Spectrall368 marked this pull request as ready for review March 26, 2024 15:44
Copy link
Contributor

@KlemenDEV KlemenDEV left a comment

Choose a reason for hiding this comment

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

Seems this PR was not tested enough yet.

This is a particle with the scale 1:

image

And this is same particle if I use number procedure that always returns 1:

image

To me, this does not look like the same size, despite me setting scale to 1 effectively in both cases (fixed value vs procedure returning same fixed value).

Please investigate this, fix it, and do another round of careful testing (not just this problem, but whole system carefully, including dynamic sizing and stuff like that).

@KlemenDEV KlemenDEV marked this pull request as draft March 27, 2024 15:38
@NerdyPuzzle
Copy link
Collaborator

NerdyPuzzle commented Mar 27, 2024

Seems to be due to the quad size being modified instead of the multiplier (size), the return value probably needs to be multiplied by the scale variable the overriden method provides. (I didn't test that, it's just a theory from a quick look I took from my phone)

@KlemenDEV
Copy link
Contributor

Your fixes are getting really messy. Also why two commits?

Please test locally and commit once you are sure you fixed the problem

@Spectrall368 Spectrall368 marked this pull request as ready for review March 28, 2024 18:32
@KlemenDEV

This comment was marked as resolved.

Copy link
Contributor

github-actions bot commented May 5, 2024

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Do not remove this label manually, it should be removed by the bot when new activity occurs.

@github-actions github-actions bot added the stale Stale issue label May 5, 2024
@KlemenDEV KlemenDEV removed the stale Stale issue label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community review Used by maintainers to mark issues that should get community reviews, tests, and feedback new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants