Discussion Loading Meshes : cfg + dll...

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,295
Reaction score
3,265
Points
203
Location
Toulouse
Well, I wasn't aware of it until now... but :

Let's have 3 files : x.msh, y.dll, z.cfg

if (you specify meshname = x in the z.cfg file,

and that z.cfg file also points to a y.dll module = y,

and in your y.dll you have the line AddMesh = x),

then the x.msh file is loaded 2 times, and there will actually be 2 instances of it inside Orbiter.

Which means that there is twice the poly count, and causes all sort of clipping problems, without speaking of the animations...

I just lost 2 hours trying to figure out why my first animation wasn't displaying correctly (it was working, but once the moving parts (cargo doors) opened, I was seeing the 2nd mesh inside, instead of the expected cargo bay !). :facepalm:
 

Moach

Crazy dude with a rocket
Addon Developer
Joined
Aug 6, 2008
Messages
1,581
Reaction score
62
Points
63
Location
Vancouver, BC
i think you don't need to specify a mesh if the DLL does the loading...

how did i handle this on my G42? :shifty:
 
Top