User Tools

Site Tools


arma:modeling:section_fixing

This is an old revision of the document!


How to Fix / Merge Sections

How to fix/merge sections in parts from old models by feersum.endjinn

This tutorial is made because apparently some people have had problem with their models ending up with way too many sections despite faces sharing same material and texture. This apparently happens often when parts from old OFP MLODs are copied into new O2, but same applies to other ArmA MLOD model part ports.

And as everyone hopefully already knows, too many sections = bad for performance.

This is our starting situation. Note number of sections in status bar on top of O2. This is waaaay too much for such middle LOD and as such, ingame performance more than halves when there are full squads worth of soldiers with RK95 onscreen compared to if they were equipped with BIS' M4's.

tactical.nekromantix.com_images_wiki_sectionfixing-01.jpg

Now, to fix that we first select all faces that are supposed to be in same section and hit “E” key to get to face properties dialog. Note that “User value” field is empty instead of having number there, it means faces in selection have different values in there, which causes them to be split into separate sections. We type there “0” and hit Apply.

tactical.nekromantix.com_images_wiki_sectionfixing-02.jpg

We do same thing for textures and material fields in they contain “…” and make sure that Lighting & Z-bias also have identical values.

tactical.nekromantix.com_images_wiki_sectionfixing-03.jpg

Now we can see that amount of sections has dropped to 3, but model still contains 1 section for muzzle flash and 2 sections for weapon. It is a lot better, but we want to still get it down to just 2, muzzle flash and weapon.

Next step is going to “Face” menu and selecting “Sort”

tactical.nekromantix.com_images_wiki_sectionfixing-04.jpg

Often after this operation number of sections displayed doesn't want to update right away, so we go into another LOD and then come back to editing same LOD. After this small detour however finally our model is where we want it to be - one section for muzzle flash and one for whole weapon LOD and now ArmA engine can render whole weapon using single Direct3D call which makes modern GPUs very happy.

tactical.nekromantix.com_images_wiki_sectionfixing-05.jpg

Notes

Posted with feersum.endjinn's permissions from BIS forum

arma/modeling/section_fixing.1201601756.txt.gz · Last modified: 2008-01-29 10:15 by snakeman