What triggers Autofit?
barbult
Posts: 24,750
When you have a figure loaded and drag a wardrobe item onto that figure and select "fit to", what determines whether the autofit dialog is displayed? I got curious about this, because there is an error in the current version of Genesis MFD Expansion 1 that causes the autofit dialog to be displayed, even when the items are fit to Genesis. Is there something in the wardrobe item's DUF file that says what figure it is made for?
Comments
I actually don't think it's a bug. Even though it says Gen1 MFD, it fits to V4 without trigging the autofit dialog. It's the only GenMFD product that does it, too, so it may just be a mistake in what was packed?
Yes, I know it is a bug. There is a Mantis bug report on it. DAZ is working on fixing it. But it made me wonder what it is that causes autofit to pop up or not. What did they do wrong in the latest released MFD Expansion 1 product files to cause this bug? I'd like to learn and understand how it works "under the hood".
Didn't look into the technical setup of the files, but I think it may have something to do with the "preferred_base" in the "presentation" section of a dsf file. It seems like it is used to determine whether AutoFit gets triggered or not - depending on which item you want to conform it to. At least the advise from Spooky to Canary3D on "fixing" this may imply that.
https://bugs.daz3d.com/view.php?id=50577
Take this with a grain of salt. I didn't experiment with this myself, just throwing a pointer around ;)
Thank you for your clues. I did some experimentation. The buggy overskirt dsf contains "auto_fit_base" and "preferred_base". I don't see either of those lines in a few other Genesis wardrobe files that I examined. If I remove those two lines from the overskirt file, autofit doesn't pop up anymore when I fit overskirt to Genesis. Autofit still pops up when fitting it to G2F. (That is correct behavior). I haven't invested in G2F/V6/Gia wardrobe items, so I only had basic wear to look at. The G2F basic wear items do have both "auto_fit_base" and "preferred_base". So either it is a new thing for G2F or a new thing for DS in general, and not in the older wardrobe items I looked at. It will be interesting to see how DAZ fixes the problem.
This is because G2F has the line "auto_fit_base" (line 43399) but Genesis itself doesn't, so if clothes don't have it either, I guess autofit doesn't trigger.
This is because G2F has the line "auto_fit_base" (line 43399) but Genesis itself doesn't, so if clothes don't have it either, I guess autofit doesn't trigger.
Kattey, you seem to know a lot about these things! Did you figure this all out on your own? Can you tell me more about auto_fit_base and preferred_base and what they should be set to in clothing items? Should they only be in clothing for G2?
Can you tell me more about auto_fit_base and preferred_base and what they should be set to in clothing items? Should they only be in clothing for G2?
I found this line in base G2F dsf file (see above), not in clothes. I think this line became strictly necessary when DS 4.6 started to do TriAx to TriAx autofitting, because before only Genesis had clones and there was no need to distinguish between various TriAx figures.
In G2F the line itself looks like
"auto_fit_base" : "/Genesis 2/Female"
This little "/Genesis 2/Female" path coincides the end of main folder data/DAZ 3D/Genesis 2/Female where all other G2F stuff is located - there are folders for morphs, folders for autofit clones, folder for projection templates and everything else. So I think if you want to add the similar line into you figure, this little path should point on a similar main folder within data/DAZ 3D
Oh, and if you wish to add a similar line to Genesis, the previous line should get a comma (,) at the end because only the last line in the block can be comma-free
I don't think the clothes need that line, unless you autofit _to_ them, for which I never saw a need to. I also don't know about preferred base - I'd think it is just what autofit would try to use if nothing is yet selected, but I don't know for sure.
And yes, sadly I couldn't find much information about such things, so I had to do manual block-by-block and later line-by-line comparison. Maybe other people have links to some documentation?
Kattey, thank you for your insights. I really got a lot from your tutorial on transferring morphs to G2F. Another thing I'd like to learn about is creating Projection Templates. Do you have any tutorials on that topic?
No, I'm looking for one myself very much :) If you'd find any, send me a PM, ok? I'll do the same.
I included the first line to show that I have permission to post it in a thread as she has told me that I could share it...: )
@Kattey, would that explain why the clothing for genesis loads as fit to to other triax figures?
It might be the reason but I think that the problem is a figure itself, not clothes. My theory is that if figure doesn't have that auto_fit_base line TriAx clothes from other figures might not trigger autofit.
And thank you and SickleYield greatly for the tutorial :)
It might be the reason but I think that the problem is a figure itself, not clothes. My theory is that if figure doesn't have that auto_fit_base line TriAx clothes from other figures might not trigger autofit.
And thank you and SickleYield greatly for the tutorial :)Okay I think what I was seeing might be something different.
I can tell you though that the figure I was looking at does not contain that line and genesis, gen2f and V4 clothing does trigger autofit. the figure I'm using is to my knowledge a triax figure.
Pendraia, thanks for posting the the tutorial from SickleYield. That sounds complicated!!! Boy, SRMS was sure a bargain, with all the work she must have done to create those projection templates. Have you tried it yet?
I'm not sure if I'm allowed to post pictures due to the figure I used. Here goes...sorry if its not allowed. Skirt and pants were mapped in the transfer utility using the new body suit template. It's not as hard as it might seem. The tricky part is to get the files into the right spot.
The duf file goes into the Projection Template folder and the other file goes in the Tool/Projection template
If you're working with Genesis the files should already been set up. Mine weren't as the model I used didn't have the files set up yet.
File path should be Data/DAZ 3D/Genesis/Base/Projection Templates or Tools/Projection Templates
and I saved it as File/save as/support asset/figure prop asset and I selected modifier as the set content type.
Basically it's the same as when you save an item after using the transfer utility and then you move the files. It saved the morphs and uv sets automatically. The biggest hassle was finding the files.
When you create the clothing that you want to use as the projection template (first step), do you create that to fit the model or the autofit clone that you will use the projection with? For example, SY created new and better projection templates for autofitting V4 clothes to Genesis. Was the projection template made to fit V4 or Genesis?
There are two scenarios in which auto-fit is triggered. The first is one that most of you will be familiar with. You have a Tri-ax figure like Genesis in the scene and you load a different type of content (like a Poser rigged clothing item). When you fit the Poser rig clothing item to the tri-ax figure Studio knows that they are different types of content and will trigger auto-fit.
With the introduction of Genesis 2 Female a new scenario was introduced. That is where the preferred base line in the .dsf file comes in. When you load Tri-ax clothing onto a Tri-ax figure Studio will check the preferred base. Currently the only options for the preferred base is either null (Genesis 1 and Genesis 1 clothing items don't have a preferred base line) or Genesis 2 Female. So if there is a mismatch auto-fit is triggered.
I can't speak to the Gen 1 MFD issue as I haven't tested it myself. If there is a bug open on it then QA will sort that out.
Thank you Jared. It is great to see DAZ participation in the forum and to get an "official" answer to my question.
Okay...probably blind leading the blind here.
The bodysuit I used fitted the original figure as I wanted to use the transfer utility to transfer weight mapping for clothing for that figure.
If I'm understanding correctly the clone lets autofit know the shape of the original clothing fit. The projection template explains what to do with that shape and where you want it to end up.
Like I said though blind leading the blind it just seems to make sense to me if that's the case hopefully someone who knows more can post.
Okay...probably blind leading the blind here.
The bodysuit I used fitted the original figure as I wanted to use the transfer utility to transfer weight mapping for clothing for that figure.
If I'm understanding correctly the clone lets autofit know the shape of the original clothing fit. The projection template explains what to do with that shape and where you want it to end up.
Like I said though blind leading the blind it just seems to make sense to me if that's the case hopefully someone who knows more can post.
Thanks, Pendraia, that helps, I will blindly follow you...:-)
On the topic of autofit, I'm having a terrible problem with autofit garments not looking the same once I save them as an asset and reload them - or even after saving them in a scene and reopening the scene. I posted some images here http://www.daz3d.com/forums/discussion/26070/
Are you having any issues like that? In these examples, I'm autofitting Genesis clothes to G2F, so not even anything exotic like other models. I'm using DAZ provided tools and templates only and it seems broken.
Thanks, Pendraia, that helps, I will blindly follow you...:-)
On the topic of autofit, I'm having a terrible problem with autofit garments not looking the same once I save them as an asset and reload them - or even after saving them in a scene and reopening the scene. I posted some images here http://www.daz3d.com/forums/discussion/26070/
Are you having any issues like that? In these examples, I'm autofitting Genesis clothes to G2F, so not even anything exotic like other models. I'm using DAZ provided tools and templates only and it seems broken.
I haven't used gf2 much...I bought and looked at her but haven't really played much with the figure. I'm home sick so I'll go and turn the pc on and see what I find.
One question are you saving it as a support asset?
I did a quick test using the genesis 50's outfit. Smoothing worked before and after saving on the original object.
When I reloaded the saved object I noticed it didn't maintain the collision setting as I'd changed it to collide against the blouse but once I reset it to blouse the smoothing worked.
I'm saving as Support Asset/Figure/Prop
It doesn't appear to save the original smoothing settings but it did reapply them.
posed, bumps are caused by blouse.
I'm sorry you're sick, Pendraia. Thanks for trying this. Yes, I did save as figure/prop asset. I think the difference between what you tried and what I did is that I changed the smoothing method from generic to base shape matching before saving it as figure/prop asset. (I almost always use base shape matching instead of generic.) You can see in my picture that base shape matching made the sweater hang more loosely and not cling to the breasts as much. After reloading the saved sweater, it said it was base shape matching, but the breast area was all lumpy. It is like the base shape that it is matching is different during autofit and after reloading the saved item. You can see the drastic difference in my pictures. If you have a chance to try this with changing to base shape matching smoothing, I'd like to hear your results.
Thanks for the thoughts...
That's interesting, I almost always put it on generic when autofitting. I was quite surprised to see this item had generic initially as most don't. I've found when experimenting in the parameters tab with smoothing that most of the time it gives a better result especially with shoes as it doesn't try to follow the toes so much.
Couple of questions:
Do you have the same result with items that start off with base shape as the smoothing type? Do they also have this problem?
and
Has the saved file retained your settings? Was it still on base shape when you reloaded the file?
Just tested using base shape and I'm getting the same results as you. I'm not sure what's happening there but it's certainly a bit weird. I'd suggest you file a bug report.
edited to add...tried it without the blouse and I'm definitely getting a better result with generic than base shape, which is what I would expect. I'm not sure that it's actually supposed to be as good as it was initially, if that makes sense.
I filed a bug report here https://bugs.daz3d.com/view.php?id=50700
Pendraia, to answer your other questions:
Do you have the same result with items that start off with base shape as the smoothing type? Do they also have this problem? Yes
and
Has the saved file retained your settings? Was it still on base shape when you reloaded the file? Yes
Interesting...thanks for answering! Do you want me to post also?
It would be nice if you added a note to the bug report, so they know that you can duplicate the problem. Thanks.