-
Notifications
You must be signed in to change notification settings - Fork 95
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
Fixed clip planes lagging behind when parented to a bone on a model part #1391
base: develop
Are you sure you want to change the base?
Conversation
Resolves last reported problem on issue #1341
I really hope this doesn't invoke setupBones for every clip |
Just a heads up, I've tried this approach before, and while it seemed to work at first it wasn't exactly a drop in replacement for GetBonePosition. I'm not saying your solution doesn't work. Maybe this solution works now given how things have changed. |
If you mean for the scenario where there's multiple clip parts on one model, you're right and I've now prevented that from happening, since it only needs to be called once. If you mean for every clip part in general, yes (except for the above scenario now) unfortunately, however the way I see it from briefly benchmarking it, it's faster to just call pac.SetupBones, rather than checking whether the problem is occurring first (requires pac.GetModelBones) then calling pac.SetupBones. |
I still don't like calling SetupBones from a part. It should be done via whatever hook is drawing the parts. Quick hacks like this are what made pac3 so unmaintainable in the first place. If that's not feasible and this does solve the issue then I'd be ok with merging, but bleh. |
I guess the problem is bone parts manipulate the bone and then the clip doesn't have the updated info from the manipulation, which would make my suggestion not feasible. In that case, I'd guess manipulations need to be ordered first in the render stages, then SetupBones, then rendering, but with how pac3 was designed that probably isn't possible. Anyway, you can merge probably. |
That said- the bug will still occur if a clip is rendered, and then another bone is manipulated and another clip is rendered. |
Resolves last reported problem on issue #1341