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

[ME] Projector support #244

Merged
merged 33 commits into from
Apr 25, 2024

Conversation

RikkiBalboa
Copy link
Contributor

Projector support for ME. Formely you had to use Render Editor to edit them in games that had projectors. Koikatsu doesn't have them yet, but I'm porting those, but then RE doesn't exist on KKS.

All projector properties are treated as material properties in the UI, and thus grouped together with them. I did it like this to make editing them a little easier (grouped together + copy/pasting edits), and since projectors can only ever have one material anyway. Since projectors can only have one material, I also hide the "Copy Material" button now whenever the provided function for that button is null.

image

Fow now I've made all character versions of the projector methods throw a NotImplementedException, since projectors don't seem to be used there at all. If the rest of the code is fine I will add those functions for completeness sake though (and in case they do exist there, though I doubt that)

There is also the problem of potential conflicts with RE, This is because projectors share their material instance by default, while renderer materials do not. To circumvent this you need to assign a unique copy yourself and keep track if you've already assigned a unique copy or not. RE seems to do this, and might cause conflicts.
In my testing they don't conflict for some reason though, except for the orthographic setting, which can't be edited in ME if it's enabled in RE

Copy link
Contributor

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

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

Overall it seems fine, just a few concerning parts.

src/MaterialEditor.Base/UI/UI.ListEntry.cs Show resolved Hide resolved
src/MaterialEditor.Base/UI/UI.cs Outdated Show resolved Hide resolved
@RikkiBalboa
Copy link
Contributor Author

Here are the projectors for KK/KKS
[Rikki Balboa] Projectors v1.0.zip

And those for HS/HS2/AI are included with RE
[HS] RendererEditor.zip
[AI] RendererEditor.zip
[HS2] RendererEditor.zip

@ManlyMarco ManlyMarco marked this pull request as draft April 22, 2024 10:07
@RikkiBalboa RikkiBalboa marked this pull request as ready for review April 24, 2024 23:30
Copy link
Contributor

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

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

Seems good, will merge after testing is done.

src/MaterialEditor.Base/MaterialAPI.cs Show resolved Hide resolved
@ManlyMarco ManlyMarco merged commit 4e00a27 into IllusionMods:master Apr 25, 2024
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.

2 participants