Aller au contenu

Photo

Level Editor Terrain Model LOD


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
DarthParametric

DarthParametric
  • Members
  • 1 409 messages
I'm trying to get the game to use different LODs for custom terrain models as it does for things like armour, etc. I originally thought that all that was required was to have appropriately named models - e.g. modelname_0, modelname_2, modelname_3 - and the game would automatically substitute them as appropriate. However, that doesn't appear to be the case. Instead it just pops the LOD0 models in and out as you approach/move away from them.

Then I noticed in the level editor that there appeared to be an option to specify a low LOD model, but it is greyed out:

Posted Image

Does anyone know how to do this?

#2
mikemike37

mikemike37
  • Members
  • 669 messages
hmm, from this thread here:

(regarding the issue of LOD causing objects to simply disappear)

So I've actually gotten this working in a weird but much faster way. All I've done is copied the .mmh, .msh, and .phy files to my packages/core/data and then renamed the "_0" suffixes of every filename to "_1". No need to open the actual files! Then I did the same thing with the meta files (only renaming the filename.)

The models never disappear and work fine with this one simple step. Not sure if this way has a disadvantage over actually changing all the references within the files.

Honestly, I'm surprised this worked without going into the MMH and changing its name and such within there. Anyhow, I don't know if that information is any use to you at all, or the thread above might offer anything?



#3
DarthParametric

DarthParametric
  • Members
  • 1 409 messages
Hrmm so a suffix of _1. I guess that kind of gels with the info palette that seems to suggest there is only a second LOD, not a second and third like with armour etc. Odd that they'd use a different filename convention, although given some of the other stuff they did I guess I shouldn't be surprised that logic didn't figure high on their agenda. Thanks for the heads up - I never saw that thread.

EDIT: Ahah, that does indeed work. Re-exported my _2 meshes as _1 and they showed up as the low LOD meshes in the toolset and appeared in the game. Good thing I hadn't gone crazy making both LOD2 and LOD3 versions for the whole area yet lol.

Modifié par DarthParametric, 31 août 2010 - 02:17 .


#4
mikemike37

mikemike37
  • Members
  • 669 messages
phew, good result :)

#5
Eshme

Eshme
  • Members
  • 756 messages
Oh yea i have also seen ,that level props use _0 and _1 as LOD.

Btw, the variant of renaming files will not work properly. What it does is render LOD1 as LOD0, and it disregards the actual low LOD mesh. Thats due renaming, but not editting the file properly.