Notifications
Clear all

[Closed] Need a little help with something material related

So I created a personal model exporter for a game and I’ve been having problems with the way materials work but I discovered something that fixes it and I’m wondering if anyone knows whats going on? Basically what I do is I export to OBJ and import back into max “I think that rearranges the faces based upon material”.

Before Obj export and re-import “wrong”

After Obj export and re-import “right”

“Ignore the other pieces besides the chest, I changed their whole material on pic 2”

So basically what I’m asking is what does obj exportation have to do with the way materials work on faces? Is there a way I could include whatever that is doing to my script?

“I’ve actually been getting questions about this from people I help learn maxscript and no one has come up with a fix for this yet so I’m not entirely sure there is a fix that can be done in maxscript”

1 Reply

Found a solution, it seems that faces can be optimized by welding verts that are extremely close to each other. It seemed to clear up my material issue and is what I think the .obj exporter does because I end up with the same amount of verts when I do this.