FAQ  •  Login

[GUIDE] Getting the material order right.

<<

Kubboz

User avatar

5-Star Beta Tester
5-Star Beta Tester

Posts: 1297

Joined: Fri Jul 30, 2010 3:24 am

Cars: Skoda Felicia Combi 1.3 MPi LXi

Post Tue Feb 23, 2016 2:14 am

[GUIDE] Getting the material order right.

OK, so. You're making a car body model. Or a fixture. Does not really matter. You get it into the game, and you see the materials are all out of whack. It's because the order of material listing is different in every model. Of course, with trial and error you can get the order right, however, it tends to waste time.
However, there is a way to determine what that order is before even starting Automation.

Image
This is the car we will be working on. (It is a sneak peak, everyone).

Image
1.Make a copy. Make sure it IS a copy and not an instance or a reference. It may mess up your original model otherwise. If the car is skinned already, delete the skin modifier from the copy.

Image
2.You see this text box in the bottom left corner? Go into the polygon selection mode of the copy, and copy paste this line into that box:
  Code:
$.EditablePoly.SetSelection #Face #{1}


3.Then, press Enter. This will select the first polygon in the model, according to 3ds max.

Image
4.This first polygon will have a material id. (In this case, 7, corresponding to front paint). Write it down.
5.Next, press the Select ID button to select every polygon with that id (7 in this case). Delete them.

6.Repeat the steps 2. to 5., until you're left with no polygons.

Image
7. You should end up with a list like this. This order is precisely the order that should be in the material listing.

Have fun!
<<

pyrlix

User avatar

23 Star Beta Tester
23 Star Beta Tester

Posts: 816

Joined: Mon Feb 27, 2012 3:51 am

Location: Ludwigshafen/Germany

Cars: Alfa Romeo 159 1.9JTS
Opel Vivaro 2.0CDTI SE

Post Tue Feb 23, 2016 2:15 am

Re: [GUIDE] Getting the material order right.

Give this man a medal for that.
No longer I have to trial-and-error the materials for hours
Image
<Killrob> you commited a lot of crimes... among others against: 1) international minimum intelligence laws 2) human rights to a brain 3) act against devolution of the human mind
<<

vmo

User avatar

Naturally Aspirated

Posts: 1178

Joined: Wed Jul 04, 2012 4:29 am

Location: Spain

Cars: A undestructable Toyota with 1ZR FAE engine, Honda Civic VTi EG6, Mazda RX7 fc

Post Tue Feb 23, 2016 4:37 am

Re: [GUIDE] Getting the material order right.

Great! Thanks M8!
Company: Montes Cars
Company ID: 1940001
Visit the brand models http://automationgame.com/phpBB3/viewtopic.php?f=35&t=3995
In AutomationHub.net: http://www.automationhub.net/company-ca ... mpanyID=18
My YouTube Channel: https://goo.gl/1MtRpd
<<

partario

User avatar

Naturally Aspirated

Posts: 217

Joined: Wed Jan 14, 2015 1:35 am

Location: Estonia

Cars: 1998 Ford Focus

Post Tue Feb 23, 2016 4:53 am

Re: [GUIDE] Getting the material order right.

This will surely save a lot of time. Thanks a bunch!
<<

Daffyflyer

User avatar

Developer - Lead Artist
Developer - Lead Artist

Posts: 3444

Joined: Wed Apr 14, 2010 8:36 pm

Location: Wellington, New Zealand

Cars: 1993 Mazda Lantis Type R V6 Racecar, 2006 BMW 530i

Post Tue Feb 23, 2016 9:02 am

Re: [GUIDE] Getting the material order right.

Oh man, that's awesome
3d Artist, Game Designer, Marketing Guy

Follow us on
Twitter - http://twitter.com/AutomationGame
ModDB - http://www.moddb.com/games/automation
Facebook - http://goo.gl/omJzt
Chat http://automationgame.com/irc

Return to 3d Artists Modding Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron