Mon, Nov 25, 10:32 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 25 12:38 pm)



Subject: MTL & OBJ issue


wolfmanjim ( ) posted Mon, 01 February 2016 at 11:37 PM · edited Mon, 25 November 2024 at 10:16 PM

I bought a couple of models on Turbosquid. I chose the obj format and imported them into Poser 10.

The problem is that the textures do not appear, even if the mtl file is in same folder with the obj file.

Any idea as to what I am doing wrong?


dardezen ( ) posted Mon, 01 February 2016 at 11:59 PM

I'm not seeing any issues importing .obj files with textures. I'm using Poser Pro 2014, but can't see how it would behave differently than 10.

Are the paths to textures specified in the .mtl file are valid?

If you edit the material on the imported object, is the texture available in the Texture Manager window?

Regards,

dardezen


Digital Artisan

OS X | MODO indie | ZBrush | Unity | Blender | DAZ Studio | PP2014


wolfmanjim ( ) posted Tue, 02 February 2016 at 12:12 AM

The models in question did not come with separate texture files beyond the mtl.

So does this mean I will have to edit the files manually?


dardezen ( ) posted Tue, 02 February 2016 at 12:19 AM · edited Tue, 02 February 2016 at 12:20 AM

Oh. My bad. I was thinking you had image textures you were expecting to show up. In that case maybe you do need to edit the file manually. Maybe check the .obj and see if the path to the .mtl file for the mtllib keyword is valid and there is a material name in the .mtl file is used for the usemtl keyword?

Regards,

dardezen


Digital Artisan

OS X | MODO indie | ZBrush | Unity | Blender | DAZ Studio | PP2014


hornet3d ( ) posted Tue, 02 February 2016 at 5:54 AM

When I have had this issue in the past I have often solved the problem by loading the object into Bryce or Silo and saving it under another name and then loading that into Poser. I have no idea why this should work I just know it has on occasions in the past.

 

 

I use Poser 13 on Windows 11 - For Scene set up I use a Geekcom A5 -  Ryzen 9 5900HX, with 64 gig ram and 3 TB  storage, mini PC with final rendering done on normal sized desktop using an AMD Ryzen Threadipper 1950X CPU, Corsair Hydro H100i CPU cooler, 3XS EVGA GTX 1080i SC with 11g Ram, 4 X 16gig Corsair DDR4 Ram and a Corsair RM 100 PSU .   The desktop is in a remote location with rendering done via Queue Manager which gives me a clearer desktop and quieter computer room.


wolfmanjim ( ) posted Tue, 02 February 2016 at 9:59 AM

dardezen posted at 9:58AM Tue, 02 February 2016 - #4252624

Oh. My bad. I was thinking you had image textures you were expecting to show up. In that case maybe you do need to edit the file manually. Maybe check the .obj and see if the path to the .mtl file for the mtllib keyword is valid and there is a material name in the .mtl file is used for the usemtl keyword?

I did. From what I see, it looks OK.


wolfmanjim ( ) posted Tue, 02 February 2016 at 10:39 AM

If I sent one of you the files in question, could you see that's going on?


tonyvilters ( ) posted Tue, 02 February 2016 at 2:16 PM

The object file contains the material zones. The mtl files tell what textures to load on what material zones. The textures,

So at minimum, you need at least 3 files. => The obj, the mtl and the texture.


EldritchCellar ( ) posted Tue, 02 February 2016 at 5:02 PM

What vilters said. I just trash the .mtl file generated from my modelers and load my textures manually in poser. I also strip the mtllib reference out the the .obj, clean up and/or rename g or usemtl entries if necessary. No need for cluttered up .obj's with external app whatnots, or even the # comments that poser clutters them up with. Take control of your files and you'll have no surprises/mysteries... it's all text.



W10 Pro, HP Envy X360 Laptop, Intel Core i7-10510U, NVIDIA GeForce MX250, Intel UHD, 16 GB DDR4-2400 SDRAM, 1 TB PCIe NVMe M.2 SSD

Mudbox 2022, Adobe PS CC, Poser Pro 11.3, Blender 2.9, Wings3D 2.2.5


My Freestuff and Gallery at ShareCG




dardezen ( ) posted Tue, 02 February 2016 at 8:34 PM

All good advice here.

Supplying the files would definitely help, but probably not suggested since you purchased them and likely aren't supposed to share them. Or maybe have a free one that shows the same problem.

I like what tonyvilters is pointing out. If you are expecting an image texture and don't have at least 3 files (.obj, .mtl and .jpg|.png), then stop now. It doesn't matter what the .mtl file is pointing to; you're simply missing the image for the texture.

When you mentioned you didn't have texture files outside of the .mtl file, I assumed that was supposed to be the case and that you were using "texture" for what I would probably just call material and then suggested options to figure that out. My bad.

I'd check out hornet3d and EldritchCellar's suggestions as well. The great thing about .obj and .mtl as text file formats is that they are super simple.

Regards,

dardezen


Digital Artisan

OS X | MODO indie | ZBrush | Unity | Blender | DAZ Studio | PP2014


NikKelly ( ) posted Mon, 09 March 2020 at 11:24 PM

Came to this thread very, very late, but a couple of thoughts...

Some modelling apps hard-code MTL's path into OBJ, so it is not accessible without a hunt. Fortunately, Windows' bundled Wordpad will open even huge OBJs. You can watch the % grow as load progresses, then the MTL reference will be visible in first few lines. Carefully edit out extraneous path stuff, save with a smile.

Similar issues with MTL files, whose map-files may have both hard-coded paths and quotes, all unwelcome. Notepad will do for this clean-up...

( One of these days, I'll figure the 'mapping' between MTL and MC5 ...)

None of the referenced texture files included ? Yeah, met such. My kindest take is author suddenly realised those lovely textures were not a 'merchant resource', could not be 'sold on' without getting an extended license. Often, I suspect author completely forgot those files were in a 'library' far, far away from WIP's Runtime...

I've had some luck using eg Google Images to find those named files. Sometimes, folder tree names give a clue to which on-line free texture library contributed. I have resorted to contacting authors, asking what a particular BMP resembled, and what size. Often, I've had a reply with links or attachments...

One wry 'gotcha' is when you import an OBJ and Poser finds its MTL, then prompts for texture files with different, shorter names to those supplied.

This bug, which I've called in, dates all the way back to P3/P4. Just 'left arrow' in the prompt field and the leading characters of name will show up, too. ;-)


NikKelly ( ) posted Tue, 10 March 2020 at 9:03 AM

Now, why could the forum search engine not find my comment above ?? D'uh...

Belatedly thinking laterally, there's another possible explanation for missing textures: Some MMD PMX artists habitually set their models' texture folders to 'hidden' in Windows' File Explorer. ( They'll also 'mung' the PMX geometry which, IMHO, is a different bucket of stinky 'chum'...)

If an OBJ+MTL artist did this, and original path was 'baked' into OBJ+MTL, you would have to edit those paths and un-hide such covert folder(s)...


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.