Forum: Poser 11 / Poser Pro 11 OFFICIAL Technical


Subject: Saving OBJs with a changed origin ??

NikKelly opened this issue on Jul 09, 2021 ยท 5 posts


NikKelly posted Fri, 09 July 2021 at 7:32 AM

I've been playing with more of Richard Mandel's free SCG RE2 recreations, which come as dozen-MB OBJ+MTL plus many mapped textures. They either import as ~33% or ~2500% depending on source. I'd also use ($$) 3DOC to list light-sources, free Irfan View to craft ambiance masks etc. For 'Room214', the Armory, I finally found a respectful 'over the shoulder' view by hiding the door. Yes, I just made it 100% transparent, used door-frame to book-end scene. For the 'reverse angle', I panned camera until an open door would be swung out of frame. Even with only 'super-ambient' lighting, requiring 96~128 pixel samples, my network-render 'Box' did them in ~90 mins each: Swoosh !!

Still, the inelegance nagged: Could I 'rip' the door and make it a stand-alone OBJ I could set ajar ? Many OBJ files come as a huge heap of vertices, from which the OBJ's groups pick their own. This RE2 file was unusual as it seemed to be a 'train' of mini-files, one per group, each with its own deep-pathed MTLLIB call to its one mapped texture.

( Provided you edit first MTLLIB call in OBJ, Poser does not mind. Is Import bug, but a mostly-benign one... )

I knew which group was the door. I opened the OBJ in Wordpad, copy/pasted door's group to Notepad, saved as TXT, changed suffix to OBJ. Edited MTL to suit. Imported to Poser at full model's same ~33%. I was not surprised to find the model's origin was right in its centre, sorta key-hole height. I used parameter dials to move the green Origin cross-hairs to hinge-line with OriginX, Y & Z dials. Exported 'just the door' as 100% scale.

But, reloading this, while the scale was okay, the origin cross-hairs were back in the centre...

I've dug through the P/Pro_11 manual, found nothing relevant. How do I get the changed Origin to 'stick' ? Ideas ??

origin1.jpg


infinity10 posted Fri, 09 July 2021 at 9:24 AM

I believe it is the Joint Parameter setting. You can reset them using numerical values.

Eternal Hobbyist

 


NikKelly posted Fri, 09 July 2021 at 10:51 AM

Uh, the door is just a lumpy stretched cube with a texture map. It has no joints, nor joint parameters that I can find...

Yes, if you shift origin to hinge line then save the door to poser library, it keeps its edited origin when re-loaded.

No, even this re-loaded door does not export to OBJ with edited origin. Re-importing it puts origin back in middle...

origin03.jpg


NikKelly posted Fri, 09 July 2021 at 1:20 PM

Done a bit of digging: Origin offset is coded by the PP2, which incorporates or references the base OBJ...


NikKelly posted Fri, 09 July 2021 at 3:43 PM

Sadly, my attempted work-flow of "Door OBJ > TurboCAD (move mesh) > OBJ (export) > UVMapper (re-map) > IrfanView (paste RE texture) > Poser" 'crashed & burned' due Mapping deranged...

I'll just use 'tamed' PP2 or position 'by eye'... {Sigh...}