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

Fix waveset export #435

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Fix waveset export #435

merged 2 commits into from
Jan 10, 2025

Conversation

Jrius
Copy link
Collaborator

@Jrius Jrius commented Jan 9, 2025

Fixes waveset wind direction export when a wind object is specified. Looks like it got lost in the last refactor...

Copy link
Member

@dpogue dpogue left a comment

Choose a reason for hiding this comment

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

I'm pretty sure the wind direction and speed are automatically calculated by Plasma based on the reference object (and any animations that affect it), but might not be a bad thing to set initial values.

@Jrius
Copy link
Collaborator Author

Jrius commented Jan 9, 2025

I don't think so, the wind direction object only exists in Blender/Max. On export it's used to compute windDir, which is just a vector, but the object itself is not linked to the plWaveSet7.

My PR description wasn't great - the point is to fix the undefined wind_dir variable. Currently, Korman fails to export any waveset with a wind object defined. If the wind object is not set, then it just reverts to the old PyPRP default.

@Hoikas
Copy link
Member

Hoikas commented Jan 9, 2025 via email

@Jrius
Copy link
Collaborator Author

Jrius commented Jan 9, 2025

Ah, I was looking at the PRC for a typical waveset and saw no plKey to any wind/ref object, but it's just omitted if the key is null. So that's why I thought the wind object was export time only. I see what you mean now.

Yeah, then wind speed has no effect. I'll remove it. You can't even control it by scaling the ref object, because the wind direction is normalized. Sad.

@Hoikas Hoikas merged commit 67b7b58 into H-uru:master Jan 10, 2025
3 checks passed
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.

3 participants