Xonotic Forums
[SOLVED] MergeMetaTriangles takes very long time... [SOLVED] - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] MergeMetaTriangles takes very long time... [SOLVED] (/showthread.php?tid=1246)



MergeMetaTriangles takes very long time... [SOLVED] - kuniu the frogg - 11-23-2010

i have a question about my NetRadiant problem (i'm not sure if it's a problem at all).
I'm compiling my map and part "MergeMetaTriangles" takes about 30-40 minutes. From what i remember, when i was compiling few times before it was like max few minutes.

Unfortunately I don't remember exactly what i changed in my map just before i noticed that long compiling time (i'm compiling usually when i go out and leave my computer working).

From what i've googled, the cause of longer "MergeMetaTriangles" may be a lot of lava, water or any fluid. But i don't use those at all...

I'm on WinXP SP3, Core2Duo E6850 3GHz, 3GB of RAM, so is it my hardware or something?

here's pk3 with .map file inside, if it would be helpful:
http://ompldr.org/vNmE0Ng/attic.pk3


Maybe that's the way it should be. If yes, then ok, i can live with it, it takes quite a long time but it works, so it's not that big deal.
But i hope i'm doing something wrong and it may be faster Tongue


RE: MergeMetaTriangles takes very long time... - tZork - 11-23-2010

Auto-clipped/light-mapped models are a real hog when it comes to MergeMetaTriangles. Perhaps you use that allot?


RE: MergeMetaTriangles takes very long time... - kuniu the frogg - 11-23-2010

yes, i'm using quite a lot of those green crates, so probably that's causing it.
i guess it's solved then...


RE: MergeMetaTriangles takes very long time... - tZork - 11-23-2010

things like crates are easy to clip manually (just place a roughtly teh same size wepclip brush over it, noone will notice)


RE: MergeMetaTriangles takes very long time... - kuniu the frogg - 11-23-2010

(11-23-2010, 01:06 PM)tZork Wrote: just place a roughtly teh same size wepclip brush over it

that's how i'm doing it


RE: MergeMetaTriangles takes very long time... - SavageX - 11-25-2010

Try misc_gamemodel instead of misc_model. The latter will embed the model into the BSP file, the former will make the engine load the model at runtime.


RE: MergeMetaTriangles takes very long time... - kuniu the frogg - 11-25-2010

thanks, i'll try it today.

btw. What's the difference between crate01 and crate01_lod? Is crate01_lod just a bit "uglier" version of the original one? If so, maybe replacing some (all?) of them with this lod version would also make it easier to compile? And would result in better performance in game? I'm going to try it too...


RE: MergeMetaTriangles takes very long time... - ThePWTULN - 11-27-2010

(11-25-2010, 09:44 AM)kuniu the frogg Wrote: thanks, i'll try it today.

btw. What's the difference between crate01 and crate01_lod? Is crate01_lod just a bit "uglier" version of the original one? If so, maybe replacing some (all?) of them with this lod version would also make it easier to compile? And would result in better performance in game? I'm going to try it too...

This page explains what lod is Smile


RE: MergeMetaTriangles takes very long time... - tZork - 11-28-2010

to clarify, your NOT supposed to use the _lod ones directly. They are to be used for misc_gamemodel together with the main model. heres a snip from the _gamemodel description that may help:
Quote:loddistance1: distance after which to show the first LOD model replacement (default: 1000)
loddistance2: distance after which to show the second LOD model replacement (default: 2000)
lodmodel1: file name of the first LOD model replacement
lodmodel2: file name of the second LOD model replacement



RE: MergeMetaTriangles takes very long time... - kuniu the frogg - 11-28-2010

following your advices i replaced all misc_models with misc_gamemodels (using crate01 model, but not LOD version, as i'm slowly becoming wiser Smile ). It dramatically decreased duration of MergeMetaTriangles while compiling (which is great), also .bsp size is way smaller (which is great too), but now i have another problem.
This time with loading those models in game:

[Image: bq7fn7zrp370lyu4x5bn_thumb.jpg]

as a result it looks like this:

[Image: aivvzehtkvf24v79w_thumb.jpg]


RE: MergeMetaTriangles takes very long time... - SavageX - 11-30-2010

You need to remove the xonotic-maps.pk3dir prefix in your model file path.

wrong: xonotic-maps.pk3dir/models/blabla/bla.md3

correct: models/blabla/bla.md3


RE: MergeMetaTriangles takes very long time... - kuniu the frogg - 11-30-2010

Yay! It works! Smile
Thank you SavageX.
Also thank you ThePWTULN and tZork for additional info.
it's officially solved now.