Mesh changing at a distance
Mesh changing at a distance
Hello all! I have this problem in which if you get far enough away from one of the meshes I put it, It changes to a different mesh. the wierd thing is this will still happen if the real mesh is something not in BF! Any Ideas?
Thanks!
Thanks!
Last edited by BotHunter on Wed Apr 10, 2013 11:29 pm, edited 1 time in total.
Walk quietly and carry a sniper rifle
Re: Mesh changing at a distance
I think I know what you're talking about. I think it's the SimpleMesh, an object that has a very low poly count and is used for far-away rendering. At first, the 3D object might look like a shadow mesh.
For example, "Shad_MP67_m1" or "Shade_MP67_m1" could be the simpleMesh.
For example, "Shad_MP67_m1" or "Shade_MP67_m1" could be the simpleMesh.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
- Apache Thunder
- Posts: 1210
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Mesh changing at a distance
You might have accidentally included a second LOD mesh while exporting the mesh file. Import it into gmax/3dS max making sure to uncheck the import main lod only option so that it imports all other lods that may be present and check to see if there is any LOD02 meshes and so on. Your object won't switch to another mesh unless it's coded to use a lod object that does so. But the second lod on the main mesh it self may end up operating without the help of coding and thus might be what is causing your issue. Delete the LOD02 meshes and so on if you find any or if you find one that is significantly different then the other LOD meshes.
I have cameras in your head!
Re: Mesh changing at a distance
I'm using tha BF109 Lod selector. could that be a problem?
Walk quietly and carry a sniper rifle
Re: Mesh changing at a distance
Propably, the BF109 is the only plane in bf42 that has no objectTemplate.cullRadiusScale 5 not saying that is the problem, but if you based the code on the BF109 you might want to check it outBotHunter wrote:I'm using tha BF109 Lod selector. could that be a problem?
Re: Mesh changing at a distance
cullradius is irrelevant for LODs. cullradius describes the distance after which objects get entirely culled out (no longer rendered/"invisible"). By increasing the radiusscale you can practically remove the annoying "object gets invisible all of a sudden at a certain distance". Obviously you gotta test for perfomance, as this will increase the load a bit.
Meshchange on distance is either wrongful LODs in the .sm, an entirely wrong LodSelector or a wrong simplemesh :/ .
Meshchange on distance is either wrongful LODs in the .sm, an entirely wrong LodSelector or a wrong simplemesh :/ .
Re: Mesh changing at a distance
Here is an example (Top photo):
http://battlefieldarea51mod.weebly.com/photos.html
The BF109's in the background is actually the same thing as the plane up close
http://battlefieldarea51mod.weebly.com/photos.html
The BF109's in the background is actually the same thing as the plane up close
Walk quietly and carry a sniper rifle
Re: Mesh changing at a distance
Where is the BF109 lod selector defined?
Walk quietly and carry a sniper rifle
Re: Mesh changing at a distance
That must be in Geometries.con ?
Re: Mesh changing at a distance
I know, I have this same issue with my HandFireArms. I had my 870 showing up close then at a distance it looked like a No4 rifle.
I'll use the M10 tank as an example. If you open up its Objects.con and scroll to the bottom, you will see this:
This SimpleObject is added to the LOD object, seen here:
I'll use the M10 tank as an example. If you open up its Objects.con and scroll to the bottom, you will see this:
- rem *** M10Simple ***
ObjectTemplate.create SimpleObject M10Simple
ObjectTemplate.geometry M10_Hull_L1
This SimpleObject is added to the LOD object, seen here:
- rem *** lodM10 ***
ObjectTemplate.create LodObject lodM10
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate M10Complex
ObjectTemplate.addTemplate M10Simple
ObjectTemplate.addTemplate M10Wreck
rem -------------------------------------
ObjectTemplate.lodSelector M10LodSelector
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™