odf opened this issue on Oct 27, 2008 · 13964 posts
Cage posted Sat, 27 February 2010 at 12:57 AM
Quote -
Cage, thank you! I made progress on my conforming clothing for Antonia. I noticed that your conforming shorts is using a mesh similar to Antonia, mine is not. Is there any mathematical method to calculate the deltas for the JCM? Doing it by trial-and-error takes a lot of time.
I've just gone back and checked your post about your process. (Copied below.)
Quote -
Making JCM
- Pose the figure with conforming clothing at a pose, for example, Left Thigh Kick at 30.
- Export the part(s) of figure that may be covered by the part of the conforming clothing as OBJ. It will be used as a reference.
- Export the part corresponding to the bone of the conforming clothing to be morphed, for example, hip2, as OBJ.
- Import the OBJs into a 3D modeling software, in my case, it is Blender.
- Modify the part of the conforming clothing to be morphed.
- Export the modified part as OBJ.
- Extract the "v" lines from the original OBJ and the modified OBJ of the part morphed. Convert it to CSV file.
- Import the CSV to spreadsheet. So that sheet1 contains the original values, sheet2 contains the corresponding modified values.
- Setup sheet3 to contains the deltas.
Example:
d 0 =Morph.A1-Base.A1 =Morph.B1-Base.B1 =Morph.C1-Base.C1
d =b1+1 =Morph.A2-Base.A2 =Morph.B2-Base.B2 =Morph.C2-Base.C2- Export the sheet that contains the deltas to CSV.
- Use the information Cage provided in Antonia-121_thighERC.txt to create the morph channel.
- Edit the deltas CSV to make it into the deltas section.
It looks like you want to calculate the deltas between your exported object and your modified object. I don't see any problem with your process, but it may be more complex than is necessary. I think a more common approach for deriving the deltas is to import the object you exported back into Poser, then load as a morph target the modified version you exported from Blender. If you save this to your props library, you can just copy over the deltas in the prop's morphs to your .cr2. Poser can do all of the math for you.
I'm not sure why you wanted to have the joint vertex weights, earlier. How does that fit into your process? I believe those could actually be obtained using PoserPython, now that I think about it, but I'm not sure what else to say about that unless I know what you're trying to do.
Also, I think I should verify that by "deltas", in your recent post, you're referring to morph deltas. Is that what you need, the morph deltas? If so and you've created your modified .obj in Blender, there shouldn't be any need for a trial-and-error approach. You can simply import the original .obj and load the other as a morph, as noted above.
Once you have the deltas, the proper ERC settings for the JCM should be in the file I provided, the link for which was contained in the outline of your process.
Can you clarify what you need right now? Has any of my response been helpful? My apologies if I've misunderstood anything. 
BTW, your attached image doesn't seem to be loading properly. :unsure:
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.