External Morph Targets Unstable Beyond 90 Deg ??


Page 1 of 1
 
 

Post External Morph Targets Unstable Beyond 90 Deg ??

#1  Nik 05 Apr 2022 16:22

I've ported several free MMD PMX-format  'props' to Poser by exporting them from free PMX Editor as OBJ+MTL. I've also used their inherent 'transforms' to craft modified versions as 'External Morph Targets' (EMTs). Here's the neat, lidded box that prompted this query.

https://www.deviantart.com/greenth1...e-Run-911908822

There's a bunch of pitfalls: That editor exports L/R reversed. Textures may need vertical-flipping. Poser does not have import scaling for EMTs...

There's also a weird effect, which may be related to 'gimbal lock'. I'll come to that...

Okay, if model is too 'handed', PMX Editor has a 'mirror' tool, used prior to export. IMHO, best avoided, as may derange UV mapping.

Textures may be v-flipped by hand, using eg free Irfan View's nimble image tools. Alternative is to set each material Color_Texture V-Scale to -1.

That scaling ? PMX Editor has an export scaling field. So, start with default x1, import to Poser at 100% default, scale via parameters, see what looks good. Typically ~3.5 % of original scale. Now delete from scene. Re-export from PMX Editor at that scale, so 0.035 instead of 1. Should import well to Poser.

I won't delve the eye-watering arcana of PMX Editor, but essential work-flow is:

Load 'clean' PMX file. Press PMX View tool-bar 'T' to open a 'Transform' window. From Bone menu, select relevant 'Bone'. It pops up RGB 'gimbals'. Drag  relevant rotation / movement XYZ to desired morph's limit. Still in that window, File, Update_Model to 'bake' it. PMX View window re-builds with these changes. Export as eg nameEMT, again at eg 0.035 scale.

In Poser, select object, Object, load morph target. Several scary moments later, a new dial should appear named eg nameEMT.

Right-click on dial, select settings. Set Min-Limit 0, Max-Limit 1. This prevents over-dialled morph exploding across scene like an unruly FBX.

So far, so good...

But, playing with this neat, lidded box, I discovered a problem: If EMT's lid was hinged wide open ~270º, the morph exploded. EMT of ~45º, okay. EMT of ~90º, okay. EMT beyond ~120º exploded. And, looks very wrong in mid-range: See below. So, something amiss with morph's math if EMT beyond 90º, but takes a bit further to 'break bad'...

I'd had similar problems with a PMX door+frame, the door going 'totally poltergeist' beyond ~120º EMT swing. I put that down to some quirk of model conversion and/or my unfamiliarity with PMX Editor's 'Transform' tools...

Any-one else have this problem with External Morph Targets unstable beyond ~90º ??

Images: #123 have EMT with ~90º swing, #4 has ~120º swing, should be very similar to #2. But is not...  ( 0.375 = 45/120 )
 



 
avatar
uk.png Nik Gender: Male
Power User
Power User
Life + 1
Life + 1
 
Warnings: 1 
Joined: December 2003
Posts: 728
Tomatoes 5780
Lemons 3486
hearts 97

  • Back to top Page bottom
 


Post Re: External Morph Targets Unstable Beyond 90 Deg ??

#2  ahjah 05 Apr 2022 17:45

That's an issue with how obj based morphs work in Poser. It's the same with rotations created by magnets an then saved as an (obj)morph. The obj only saves the end position, in this case 90°. If you move the dial, the vertices are simply shifted linear from the zero position to end position. Thats why the lid is shorter inbetween this two positions. If you go beyond endposition the linear shifting continues and the lid explodes. This is why there's a thing like rigged cr2 for real rotation.
I never worked with MMD PMX, but I assume what they call a morph isn't the same as a Poser obj based morph, but actually rig information as in a cr2, i.e. pivot point and bone to rotate. Seems like this information gets lost in your workflow.
First workaround would be (for me) to import box and lid as separate obj and parent the lid to the the box (with the pivot set where it should be) Also you could make a simple cr2 from it. Import the obj as a whole and group it into "box" and "lid" and then setup the lid bone with a rotation center
 




____________
Image
 
avatar
blank.gif ahjah Gender: Male
Posette enthusiast
Posette enthusiast
Life + 1
Life + 1
Chief
Chief
Old Timer
Old Timer
 
Joined: April 2003
Location: detmold/germany
Posts: 2801
Tomatoes 4160
Lemons 519
hearts 2130

  • Back to top Page bottom
 

Post Re: External Morph Targets Unstable Beyond 90 Deg ??

#3  Nik 05 Apr 2022 22:04

Genius ! Pure Genius !!

Snag is that the item is not divided / grouped conveniently. It is sorta 'unimesh'.

I'll sleep on it...
 



 
avatar
uk.png Nik Gender: Male
Power User
Power User
Life + 1
Life + 1
 
Warnings: 1 
Joined: December 2003
Posts: 728
Tomatoes 5780
Lemons 3486
hearts 97

  • Back to top Page bottom
 

Post Re: External Morph Targets Unstable Beyond 90 Deg ??

#4  ahjah 05 Apr 2022 23:13

I might have some ideas for that, too. I'd need a look at the mesh. But I assume you'd like to crack this nut yourself
 




____________
Image
 
avatar
blank.gif ahjah Gender: Male
Posette enthusiast
Posette enthusiast
Life + 1
Life + 1
Chief
Chief
Old Timer
Old Timer
 
Joined: April 2003
Location: detmold/germany
Posts: 2801
Tomatoes 4160
Lemons 519
hearts 2130

  • Back to top Page bottom
 

Post Re: External Morph Targets Unstable Beyond 90 Deg ??

#5  rico 07 Apr 2022 07:59

Thank you very much guys for the valuable information    !
 



 
avatar
 rico Gender: Male
Frequent User
Frequent User
Elbow
Elbow
 
Warnings: 1 
Joined: April 2019
Posts: 126
Tomatoes 1130
Lemons 140
hearts 147

  • Back to top Page bottom
 


HideWas this topic useful?
Link this topic
URL
BBCode
HTML

Page 1 of 1
 



Users browsing this topic: 0 Registered, 0 Hidden and 0 Visitors
Registered Users: None