Thu, Dec 26, 8:41 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 26 8:04 pm)



Subject: Default material in imported objects.


uncle808us ( ) posted Fri, 18 March 2011 at 10:54 AM · edited Thu, 26 December 2024 at 8:37 PM

file_466917.jpg

How do I get rid of the default material (not needed) after importing .obj and .mtl  in Poser 7 or 8? The objects have textures assigned so I was told I don't need the default material. Thanks

MacBook Pro OSX El Capitan Ver 10.11.6


LaurieA ( ) posted Fri, 18 March 2011 at 11:03 AM · edited Fri, 18 March 2011 at 11:04 AM

If you're using Wings to model, this means you have a poly(s) somewhere that hasn't been assigned to a material. I'm sure this may apply to other modelers as well.

Laurie



markschum ( ) posted Fri, 18 March 2011 at 11:13 AM

yup, laurie is right. Open the obj file in a text editor and do a find for Default. If you find a line that says usemtl default then there is a polygon that has not been allocated.

You can sometimes find it by setting it to a hot pink (or other obvious color)  and examine the model for it.


LaurieA ( ) posted Fri, 18 March 2011 at 11:17 AM

Yes, if you find those unassigned polys and assign them then the default material goes away ;).

Laurie



uncle808us ( ) posted Fri, 18 March 2011 at 11:17 AM

Humm, I'm using Cheetah 3D but I have materials assigned to all the objects. I have asked on their forum how to check this. I'm not sure how to check it.

MacBook Pro OSX El Capitan Ver 10.11.6


uncle808us ( ) posted Fri, 18 March 2011 at 11:22 AM · edited Fri, 18 March 2011 at 11:22 AM

Here is what I find in the .obj file after using find:   usemtl default

MacBook Pro OSX El Capitan Ver 10.11.6


SteveJax ( ) posted Fri, 18 March 2011 at 11:46 AM · edited Fri, 18 March 2011 at 11:47 AM

What I do is, after loading the original OBJ and assigning new materials in the group editor is export it and then reload it. The unused material zones will be gone.


bagginsbill ( ) posted Fri, 18 March 2011 at 12:11 PM · edited Fri, 18 March 2011 at 12:12 PM

But it's not an unused material zone. It's used. There are polygons using the material called "default". Assigning them to some other material will make the "default" be unused, that's true. But the real question is - where are the polygons? The OP thought he assigned them all to other materials already.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


uncle808us ( ) posted Fri, 18 March 2011 at 12:14 PM

Yes you are right bagginsbill.

MacBook Pro OSX El Capitan Ver 10.11.6


markschum ( ) posted Fri, 18 March 2011 at 1:05 PM

file_466922.txt

ok, another way to find it is to load the obj to uvmapper , and use color by material or select by material , specify default and have a look at what pops up.

Its possible I suppose that the mtl file got a material written to it that has 0 polys assigned. Lightwave will assign a material with no polys, but it doesnt write it out to the file.

 

I have attached a script that will list all the usemtl lines in an obj but you need to edit the filename to point to your file.Rename from txt to py.

 


uncle808us ( ) posted Fri, 18 March 2011 at 2:27 PM

"ok, another way to find it is to load the obj to uvmapper , and use color by material or select by material , specify default and have a look at what pops up."

I can see it in UV mapper but I'll be danged if I can find it in the model.in Cheetah3D.

MacBook Pro OSX El Capitan Ver 10.11.6


markschum ( ) posted Fri, 18 March 2011 at 6:10 PM

 Ok, heres a thought, in Poser go into the materials room , and set all materials to transparency 1 except for default.  The polys should then be visible and you can use the grouping tool (I think) to allocate them to another material , or you can find them in your modelling program .

 

The worst situation is to have a polygon inside another part. If it has no effect you can just leave it hidden.


seachnasaigh ( ) posted Fri, 18 March 2011 at 6:21 PM

In the modeling program, can you select the default material, and (in polygon mode) select by material?

On a few occasions I have at this point duplicated the still-unseen default material polygons (it creates a new separate object) and then slid the new object away so that I got an idea of what/where the hidden polys were.

Bevelling and extrusion create new polys, and sometimes they are assigned to the default material if the modeling program can't figure out what they're supposed to be.

Poser 12, in feet.  

OSes:  Win7Prox64, Win7Ultx64

Silo Pro 2.5.6 64bit, Vue Infinite 2014.7, Genetica 4.0 Studio, UV Mapper Pro, UV Layout Pro, PhotoImpact X3, GIF Animator 5


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.