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

[F3D] Chroma Key F3D source display fix #251

Merged
merged 2 commits into from
Dec 29, 2023

Conversation

jesusyoshi54
Copy link
Collaborator

Chroma key values were not referencing the correct prop path, and thus were not displaying properly, and also resulted in other props from not displaying.
To see issue, add chroma key scale or center to the combiner, and you will notice missing elements in the sources tab. If you open the console you will also see error messages. These issues are resolved in this PR.

Copy link
Contributor

@Yanis42 Yanis42 left a comment

Choose a reason for hiding this comment

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

code is ok to me but I still need to get feedback from mario people and I need to see if anything breaks on oot (since this is F3D stuff)

I'll approve once both sides are tested and ok

@@ -589,14 +589,15 @@ def ui_chroma(self, material, layout, name, setName, setProp, showCheckBox):
inputGroup = layout.row()
prop_input_name = inputGroup.column()
prop_input = inputGroup.column()
f3d_mat = material.f3d_mat
Copy link
Collaborator

Choose a reason for hiding this comment

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

You accidentally removed a new line here. ui_env and ui_image have a new line like that but prim and light don't so its fine really.

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Dec 26, 2023

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Dec 26, 2023

That's all I can comment on! The ui, exporting and preview all work as intended.

@jesusyoshi54
Copy link
Collaborator Author

https://github.com/Fast-64/fast64/blob/53b2741a0b0839b5c639a335145f15e6f47d74d6/fast64_internal/f3d/f3d_writer.py#L1408C1-L1408C46 You should probably remove this

It is still todo I guess? I'm not sure what the intent of that comment was but I never changed the width logic.

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Dec 26, 2023

What is not handled in the ui for width exactly?

@jesusyoshi54
Copy link
Collaborator Author

jesusyoshi54 commented Dec 26, 2023 via email

@Lilaa3
Copy link
Collaborator

Lilaa3 commented Dec 26, 2023

Width is just a float vector in the UI but in reality it is a signed fixed point from 0 to 1. I don't know the extent kure was going to work on this but as it stands it is kind of unclear what needs to be done.

On Tue, Dec 26, 2023, 12:19 PM Lilaa3 @.> wrote: What is not handled in the ui for width exactly? — Reply to this email directly, view it on GitHub <#251 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTTURS42HEZ5FM2YTA3Q5DYLMBLJAVCNFSM6AAAAAA43X2JXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGY3TKMBVHE . You are receiving this because you authored the thread.Message ID: @.>

Got it. I was going to suggest trying to maybe finish the implementation but I'm not sure what's wrong rn, is any value above 1 going outside of the range right now or something

@jesusyoshi54
Copy link
Collaborator Author

jesusyoshi54 commented Dec 27, 2023 via email

Copy link
Contributor

@sauraen sauraen left a comment

Choose a reason for hiding this comment

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

Thanks for the bugfix!

@sauraen sauraen merged commit c790cc0 into Fast-64:main Dec 29, 2023
@jesusyoshi54 jesusyoshi54 deleted the mat_key_ui_fix branch April 21, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants