-
Notifications
You must be signed in to change notification settings - Fork 27
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
Approx Survey Markers #122
Comments
Hello Debanjan, Thank you very much for submitting this issue, and thank you for using mmSolver.
mmSolver doesn't have a concept of "survey free" because mmSolver will always use the given bundle position as an initial guess, so it's a closer concept to "approximately surveyed". However, yes you can solve bundle positions. By default, the "Solver Step" (in the GUI section Solver Options) in mmSolver v0.2.3 is set to "Animated". To solve a bundle position (which usually has "static" attributes), you need to to change the Solver Step to "Static + Animated". However, if you add 2-5 frames, how will you solve 100s of frames? You need to add second Solver Step with "Animated" attributes set to solve. For example, here is a screenshot: The screenshot shows two "Solver Steps", # 1 and # 2. # 1 will solve first, then # 2.
"Solver Steps" are being deprecated in v0.3.0, because they are too confusing for most people. This issue is being addressed in issue #57. For more information on Static and Animated attributes, take a look at this documentation:
Yes, I'm aware of this problem, but I don't have any solid solutions, instead I have multiple solutions that should fix some of the problem. As a kind of hack, you can animate the "weight" attribute on a Marker to fade out so the marker does not pop off. Otherwise, I have added a feature into the latest development version (not released) to allow bad markers/bundles not to influence the overall solve. I have added this in issue #66.
This is already supported. Select a camera shape node, and select the "Focal Length" attribute in the Channel Box, then press the "+" button to add the Attribute to the mmSolver GUI. I hope this addresses some of you problems. David |
Thank you so much David for the detailed explanation. Will give it a try and will update you on the same |
Hi David, I have used the hacks which you told and it worked perfectly. If a marker has no keyframes after a certain frame range ( say -frame 50 of a 100-frame shot).I keyed the weight value as 1 on -f50 and 0 at -f100 to blend the weight and kept active/Enable throughout the frame range. I have seen the solver was considering the marker and trying to keep the bundle close as possible to the feature but was not able to solve the first and last frame.. However this got fixed after I hit the solve button 3-4 times. Wondering if the solver actually tried to throw minimum error/best possible solution after 3-4 itteration or this is a bug? I tried the same step again by keying the weight value 1 on -f50 and 0 at -f51.. The solver then just worked fine.. However in both the above cases I got the same solve. All the above result I tried on a simple shot,but will try the same on a bit complex one and will get back to you. Thanks again for the help.. Debanjan.. |
One more doubt: |
Hello Debanjan, I'm glad two Solver Steps has helped your first problem.
Just to be clear, are you saying the first frame that did not solve was frame 50 or frame 1? For example, And you are saying that both frame 1 and frame 100 do not solve? I would expect the solver not to solve on frame 100. By setting a weight value of 0.0 (exactly zero), the Marker has no contribution to the solve, therefore it is not enabled, and the Solver treats the Marker is disabled for frame 100. I would not expect either frame 1 or frame 50 not to solve. That sounds like a bug.
Needing to press "solve" multiple times to get the minimum error is currently a bug in v0.2.x, but has been addressed in v0.3.0 beta. Obviously, for a Marker to use weighting, there must be another Marker used in the solve. The weight attribute simply scales the given marker overall as importance. |
Hi David, As I have mentioned, will get back to you with a complex shot result using the above method.Here it is below:
Thanks again Regards |
So here is the above hack I found while solving any object track. Let me know if you have any other alternate..For now this is working great. |
Hello Debanjan,
I can think of a few different techniques, but no "silver bullet", I have had this problem myself recently. I'll need to think of better solutions. Technique A) If the frame range of the Marker is disabled for short duration, try "splining" the Marker by animating the "enable" attribute. This is an annoying hack and will not work when Markers are disabled for a long duration. Technique B) Set the surrounding Marker weights to be higher, so the Marker that causes a 'pop' has a smaller effect. Technique C) Ensure the Bundle 3D position is accurate, any miss-aligned bundle will cause popping (the same as any solver).
Yes, although in mmSolver v0.2.x, the fix is manual. v0.3.0 will contain a new "Create Controller" tool to make this workflow easier.
If I understand correctly, you are saying that using a dummy transform node, constrained to your tracked camera is somehow causing Maya to evaluate faster? Am I correct to assume the "dummy camera" is not used in the solve at all, and has a constraint on it? Therefore all objects parented underneath the dummy would inherit the motion of the camera? I'll test if this works on my end, with the latest solver version. If it works for animated bundles, it will not work for static bundles, however. Ultimately, the fix for all performance problems of this nature is #114. The feature is planned for 0.4.0, as it will require a lot of work to do. Basically, I will need to re-write the Maya DAG hierarchy into my own code. This will allow me to fully fix any Maya evaluation problem, and the extreme slowdown caused by solving rig controls. David |
There is not much more to say about this issue. |
Hi David,
Thanks for making this amazing solver. This reminds me of Rhythm&Hues "Voodoo".
recently I have tried this solver in few shots, which actually gave a decent solve.But there are few limitations I have noticed ( possibly,I may not know how to use it and the solver is also at the early stage of development ).
Can you please help me with any workarounds for the above two issues?
Also it will be really great if we can solve for focal lengths too.
A huge thanks again for the awesome solver.
Best Regards,
Debanjan
The text was updated successfully, but these errors were encountered: