[Tutorial] How to build lower lods.

Posted by Excalibur 
[Tutorial] How to build lower lods.
Date: December 31, 2008 12:37AM
Posted by: Excalibur
Tutorial: How to make lower lods?



Hello everyone! I have written this tutorial on the method which consist to get lower lods from the original carshape. You may spend time on your first lod but once you have understood how it works, it will be faster. So, be patient and follow the procedure.I apologize for my english which is not very good but I hope you will understand. Correct me if there are big mistakes.Now, let's go:

Items required:

1: original car shape.
( car_carname_car1_lod_0.gp4 or car_carname_car2_lod_0.gp4)
2: Textures of the car ( tga files)

Tools required:

1: GP4Renamer by Öggo Mediafire
1: Zmodeler LINK
2: 3DSMax or 3D Photo Browser for 3D users + polygon cruncher Link
3: Polygon cruncher 7.8 trial version (limited to 7 days, full application) with 3DSMAx method only Link
4: GP4Builder Link
5: Texresizer Link or Slimtex (ZAZTools) GP4DB

Tutorial into PDF version: How to make lower_lods by Excalibur
Thanks to Foreverk for the PDF conversion.


Note: Polygone Cruncher V 7.8 is not a freeware. This is why it is limited to 7 days but with full options. Then, you can buy it on Mootools's website. The MultiRes function is free under 3DsMax.

Method:

I used Zmodeler v1.07b, 3DSMax2009, polygon cruncher trial version , GP4Builder V1.181
and also Texresizer 2.5 to extract the tga files from the car's textures.

Credits:

Thanks to Jorge Caranti and Raulongo who helped me out getting started and explained some basic concepts.
Thanks to Gezere for his precisions concerning the 3D objects of the car and the lod_4.
A big thank to Öggo for his great tool.

_____________________________________________________________________________________________________________________________
Part 1 : Pre-work


Be sure you have into a same folder: the GP4 files (cars) and all the textures into tga format.
Making this, you will save time when you will have to re-assign textures on the lower lods.
To convert .tex files into .tga files, use Slimtex (ZazTools) or Texresizer by LO2k (RealGPX.com)

Note: Don't forget to flip your textures when you convert them from tex to tga (and also from tga to tex)

_____________________________________________________________________________________________________________________________

Part 1 : Create a 3DS file with Zmodeler.



Rename 3D car objects with GP4Renamer:

It allows to rename car objects to be compatible with 3DSmax:


1- Select your main file: car_carname_carX_lod_0.gp4
2- click on the "Auto Rename" button.
3- Save and exit

Open Zmodeler:

1- Import your shape into Zmodeler.

Note: It may happen that you got this message when you try to import a car: «File is locked or has an invalid header»... So, You have to open it into GP4Builder and then to save it as a .gp4 file. Finally, import it into Zmodeler.

2-From lod_0, we can delete 3D objects of the car for the lower lods. Delete these parts:

insert
left_mirror
right_mirror
visor

3- Export your file into .3DS format.

You will get this message in a window: "The following operations have been performed to make file compatible with 3D Studio" . Press ok!


_____________________________________________________________________________________________________________________________
Part 2: create lower lods with 3dsMax2009 or 3D Photo Browser and Polygon Cruncher
.


There are 3 methods to do this:
- With Polygon Cruncher under 3D Photo Browser
- with polygon cruncher under 3dsmax.
- with the multires option under 3dsmax only.

1- Method with Polygon cruncher and 3D Photo Browser:

This is my favourite method. Why?
- It is simplier and faster
- Polygon cruncher allows you to reduce the weight of the shape while maintaining the highest quality possible.

Open 3D Photo Browser and select the original .3ds file you wan to reduce to get the first lower lod (lod_1)



On the new window, click on the arrow and select "Polygon cruncher"



Now, tick the boxes as follows. Then, click on "Calculate the value of the scene (3)



Now, we have to set the percentage of reduction for the lod_1:



Here is the percentage of reduction to apply for each lod:
- lod_1 = 30%
- lod_2 = 50%
- lod_3 = 70%
- lod_4 = 80%

Once the percentage is set for the first lod, click on the "Aplly" button and save the file with the options by default:



Close the window and start the same procedure again from the original 3ds file for the lods 2, 3 and 4.
Finally, you will get 4 lower lods.

Note: Do the same procedure for the car 2.





2- Method with Polygon cruncher:

First, import your 3ds file into 3dsmax.
Then, click on the icon utilities and click on «more» to select the Polycruncher plugin:


When you see the plugin in the right window, click on « optimiser la sélection» (in french) or «optimize the selection» (first button)



Tick the apropriate boxes (1 and 2) before to click on « Calculate the optimization of the scene» (3)
as below:



Now it is done, we are going to set the percentage for each lod.

The values:

Here are the values that I precognize but you can modify the car with the values you want:

Lod0 = 100%
Lod1 = 80%
Lod2 = 65%
Lod3 = 50%
Lod4 = 30%

It depends of the quality you want to keep when you see a car far from the others into the game. The more you reduce the car, the more you will loose details of the shape. But don't worry, when a car is around you, it will always use Lod0 (best quality). Reducing lods allows you to not overload your PO during a race and it is not a problem because when a car is far in front of you or far behind, you can't see all the details anyway.

So, here is the procedure for Lod1: We want to reduce the shape at 80%, so you have to move the arrow on the left until 20% (1) .you can also adjust the % by modifying the faces numbers or points numbers. Then, click on the apply button (2):


Once done, export your file into .3ds format with the name «car1» or «carlod1». The box «preserve Max's textures coordinates» must be ticked before clicking ok.

Now, you've got the shape for the Lod1...


Then, click on edit and undo polygon cruncher and restart the same procedure for the lod 2, 3 and 4.

You will have to set these values into polygone cruncher:

Lod1: 20% to get a car at 80% from the original
Lod2: 35% to get a car at 65% from the original
Lod3: 50% to gat a car at 50% from the original
Lod4: 70% to get a car at 30% from the original

Finaly, you have 4 new 3ds files for lod 1, 2, 3 and 4.


2- Method with the multires option under 3dsmax:

1- click on the «mofifiers» tab, «Mesh Editing», «Multires»
2- click on generate
3- change the vert. Percentage like this:

For lod 1: 90%
For lod 2: 80%
For lod 3: 70%
For lod 4: 65%

Note: Q: Why not the same values than Polygon Cruncher?
A: Because with Multires, if you set your % under 65, you may lose car parts.

4- save each shape by exporting it into 3ds format, undo and start again the procedure for the other lods.
______________________________________________________________________________________________________________________________

Part 3: Rename car parts and assign textures with Zmodeler.


Important note if you made your lower lods with 3D Photo Browser:
When you import your cars into ZModeler, you will see this message: "Invalid #AmountOf# chunk!" Don't worry, this is not an error, click on ok and continue until the car appears (you will see this message as many times as there are textures assigned for this file).


1- Assign textures with Zmodeler:

First, we need to get all the tga files from the car. If you just have the textures (.tex), use Slimtex or Texresizer to convert them into .tga files.

Example: I want to get the tga files of the mp4-23.tex:

1- Open mp4-23.tex with Texresizer
2- «Save all4 tga files» in a folder
3- You get 4 files:- mp4-2310.tga
-mp42311.tga
-mp4-2312.tga
-mp4-2313.tga
4- Just keep the mp4-2310.tga and delete the others.
5- rename mp4-2310.tga into mp4-23.tga
6- Do the same thing for all textures of the car.

To know which are the textures of the car, in Zmodeler, import the original shape and go to material editor (or press E) .Look at the list:


Now, we are going to reassign each texture of the car to the 4 shapes (or lods)


Keep your original shape opened in Zmodeler. So, you have 2 windows: one for shape 0 (original) and one for shape 1 (or lod 1).

The textures of our original car are well ordered: In our example from mp4-22_carbon.tga to carlightmapch3.tga (from 1 to 10).Now into the window of your shape 1, open material editor and look at the list : you see «default material» and «material#1» to « material#8» but not in order:


The aim is to reassign every texture in the right order: Select the material and rename it :
The first texture of our original shape to material#1 of the shape 1
The second texture of the original shape to material#2 of the shape 1 etc..

In the example: you have to copy the name « mp4-22_carbon.tga» and paste it to material#1
Same thing with « cockpit_dammage.tga» and paste it to material#2 etc...

Note: You don't have to re-assign the CARLIGHTMAPCH textures because GP4Builder will do it automatically into the last step ( Part4)

Do it for each texture of the car. Beware of the order. It is very important. At the end, you will get something like this:

Shape1
Original shape




Now, let's see if your textures are correctly assigned:

1-Select the first texture name in the list , tick Primary texture and click on «Load Map» button .
2- Click on the «Add» button and select the tga file corresponding to the file's name.
3- In «Type» tab, select «unused» for each texture.

Note: You don't need to load the carlightmapch textures.

Do it for each texture and then, click on «Ok». See the result.

4- If ok, export the lods 1,2 and 3 in .gp4 format with the good name for the lod: car_carname_carX_lod_X.gp4


2- Last modification for the lod_4:

This last modification is not compulsory 100 %, I don't know if it has an impact on the PO, but it allows you to keep your file into GP4 standard.

- Select - All
- Create - Objects - Uniteselect
- click on the shape (whatever the view mode)
- Give the name "cockpit_low" ....So, you just got 1 object at the end.
- Export the new lod_4 into.gp4 format and name it as:
car_carname_carX_lod_4


3- Rename car objects as the originals with GP4Renamer



1- Load your car_carname_carX_lodX.gp4 file
2- click on the "Auto Rename2" button
3- click on "Save" and exit.

Do this procedure for lods 1,2 and 3 ( we have modified and named lod4 object before).



_____________________________________________________________________________________________________________________________

Part 4: Sort car objects with GP4Builder.


The last and easiest thing to do:

First of all, you have to rename the z_cockpit_right_mirror and the z_cockpit_left_mirror for lod_0 of the cars manually because GP4Renamer doesn't do it:

1-Open your file with GP4Buider
2- Double click on "Scenes 1" and "Scenes1 28"
3- Look for right and left_mirror and rename them manually into the Object's attributes window (z_cockpit_right_mirror and z_cockpit_left_mirror)
4- click on the «Action» tab and select «sort car objects»
5- Save your file with «save as»

Do the same procedure (4 and 5) for lods 1,2 and 3 ( no need with lod_4 because it has just 1 object if you have followed the modification above)


It is done! You've got 4 lower lods + the original lod 0 for the car1:
car_carname_car1_lod_0.gp4
car_carname_car1_lod_1.gp4
car_carname_car1_lod_2.gp4
car_carname_car1_lod_3.gp4
car_carname_car1_lod_4.gp4


Now, repeat the same procedure for car2 because textures ( driver'sname, number of the car, Tcam color ect..) must be assigned for the second car correctly.

or you can just copy and paste all the lods from car1 and rename it as below if you got the same textures for the 2 cars:

car_carname_car2_lod_0.gp4
car_carname_car2_lod_1.gp4
car_carname_car2_lod_2.gp4
car_carname_car2_lod_3.gp4
car_carname_car2_lod_4.gp4


That's done!

____________________________________________________________________________________________________________________________________________





Edited 29 time(s). Last edit at 07/24/2020 10:08PM by Excalibur.
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 01:01AM
Posted by: kerleyf1
Man! FANTASTIC!

Thanks for the tuto!

We need more like this to show new modders and painters!

Thank you so much!

------------------------------------------------------------------------------------------------


PLEASE VISIT: Grand Prix Mods Blog
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 01:26AM
Posted by: phantaman
thanks for this tutorial ... it will be very useful to all of us. :p

----signature--------------------------------------------------------

RELEASE => Physics (under FIA Technical Regulations)
MagicDatas? Setups? Pit Stop Strategies? Track Specific Performances? Up2Date GP?
Power Torque Curve? Where's this stuff? All download is available at ..
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 01:37AM
Posted by: n00binio
should be linked to the faq
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 01:43AM
Posted by: Excalibur
@ Phantaman: Thanks for your link to Polygon cruncher. It is a great and useful tool! ;o)
@ Noobinio: Yes, it would be great but I don't have the rights to do this. I'm sure Mortal will do it when he could if he is ok.

____________________________________________________________________________________________________________________________________________





Edited 1 time(s). Last edit at 12/31/2008 01:45AM by Excalibur.
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 01:44AM
Posted by: J-C
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 01:47AM
Posted by: Excalibur
You are welcome, thanks for your help and your disponibility. ;o)

____________________________________________________________________________________________________________________________________________

Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 10:19AM
Posted by: Gigi4
Superb, i have used it for my tyres. Only lod 0 was just too heavy for low spec pc like mine.







Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 10:23AM
Posted by: Kimi-The-Champ
yeah this is great, thank you very much!!! :D
Re: [Tutorial] How to make lower lods.
Date: December 31, 2008 02:25PM
Posted by: Excalibur
Thank you for your support, everyone. It is my first tutorial. Just hope it is understable and that it will be useful!

Cheers!

____________________________________________________________________________________________________________________________________________

Re: [Tutorial] How to build lower lods.
Date: December 31, 2008 02:35PM
Posted by: gezere
joli boulot!!! je t'ai fait un petit commentaires sur GP4facile...

Sorry for the french sentence...

Re: [Tutorial] How to build lower lods.
Date: December 31, 2008 03:08PM
Posted by: Excalibur
Yes, thanks a lot! I read it and answered you. I will edit the tuto when I'll get some precisions! ;)

____________________________________________________________________________________________________________________________________________





Edited 1 time(s). Last edit at 12/31/2008 03:10PM by Excalibur.
Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 05:54PM
Posted by: Excalibur
Tutorial updated the 01/01/09:

You can delet some parts of the cars for the lower lods and you can modify the lod_4 in 1 object. Look at the tutorial.

Thanks a lot Gezere! ;)

____________________________________________________________________________________________________________________________________________

Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 05:58PM
Posted by: Renault#1Fan
Thanks for the hard work on this, glad to see a new tutorial. Wish I could use it but for some reason my cars switch between lod 0 and lod 4, never 1,2,and 3. So I have to run force best car lod in teameditor, which I have some problem with too, damn VISTA.
Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 06:01PM
Posted by: Excalibur
Thanks!

I run under vista too but I don't have this problem. it is strange! Do you have all 10 lods for each car with different sizes? I hope this could be helpful to you if not... ;o)

____________________________________________________________________________________________________________________________________________





Edited 1 time(s). Last edit at 01/01/2009 06:02PM by Excalibur.
Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 06:02PM
Posted by: Ruboy
@Excalibur:
How many minutes do you need to create one single lod?

Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 06:09PM
Posted by: Excalibur
@ Ruboy: Well I don't speak about the first one I've done because it took me about 2 hours or more, the time to test and to understand . Otherwise, I could say about 45 minutes for each lod. But I guess it depends on the knowledge and the skill of everyone. I didn't know how to do this before, just learnt it since 4 days. Maybe it can be faster.

____________________________________________________________________________________________________________________________________________

Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 06:10PM
Posted by: Renault#1Fan
@Excalibur, Yes I have all ten, I run the same size for lods 0,1, and 2. 3 and 4 I use the least detail but the only time it doesn't do it is if I use teameditor or use lod 0 and then copy and rename it 1,2,3, and 4. But my computer holds up fine with how I have it, its just me wanting a smaller cars.wad file. And as for VISTA the game is fine, I just have problems where teamart doesn't update and teameditor always use the last set of cars I used, so if I add a new car, it still shows up as the old one in teameditor but uses the new one ingame, hard for me to postion the steering wheel and helmet when its 2 different shapes, found that for same reason VISTA is saving a second cars.wad and GP4 is reading that one rather than the updated one.
Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 06:24PM
Posted by: Excalibur
@Renault#1fan: Well, yes, with lower lods, your cars.wad would be smaller. You can save until 25% of the weight and even if your game runs correctly with lods_0, you could reduce your PO, too!

About teamarts, I suggest you to update your menuData/.../ Image folder with GPI Browser.

For the carshapes into team editor, did you select the correct carshapes in "available carshapes" tab after updating your cars.wad? Even if the slots have correct names, you have to re-select your carshapes again to see it in Team editor.I think it is because you have the same carname for the old and new car. So re-select your carshapes into the slots.

____________________________________________________________________________________________________________________________________________





Edited 1 time(s). Last edit at 01/01/2009 06:27PM by Excalibur.
Re: [Tutorial] How to build lower lods.
Date: January 01, 2009 07:05PM
Posted by: Renault#1Fan
Yeah, but temaeditor is fine after I deleted the extra cars.wad. And I do update the teamart but thats the issue too, it shows up in teameditor, but ingame it still is Original 2001 teamart.
Sorry, only registered users may post in this forum.

Click here to login

Maintainer: mortal, stephan | Design: stephan, Lo2k | Moderatoren: mortal, TomMK, Noog, stephan | Downloads: Lo2k | Supported by: Atlassian Experts Berlin | Forum Rules | Policy