Jump to content

Recommended Posts

Mue, first a big thank for this wonderful tool.

I also have the problem of very slow execution (menus, rotations, any interaction with the program ...), which is better after some time, or if program closed and immediately relaunched. I also had a windows memory error (not enough memory), one time.

I also had a data file that could not be loaded (<no data file>), but the file was there (and loaded ok with version 0.5.2). By comparaison with a working file I have found that this was due to the character '°' (complete comment line : "// -60°, 100 meter  level") that prevented the load. The data file was in ANSI (again no problem with 0.5.2). Conversion to Unicode also fixed the problem for 0.6.0.

Hope this will help.

Edited by pvince
details added
  • Like 1

Share this post


Link to post
Share on other sites

On 8.6.2019 at 6:10 PM, ludo.m54 said:

I made several tests with different aircrafts (the Mirage F1EQ for example) and the result is always the same.

 

I downloaded and tested this Mirage F-1EQ . Because of the 4K Textures my development system (Windows 7 with an old 8800 GTS 512) struggles. It gives me a slide show. But it doesn't crashed. On another computer with a GTX 660 I have no problem.

Share this post


Link to post
Share on other sites
18 hours ago, Gatling20 said:

The little A5M Claude (6000 polys), for example, gives no problems, but Veltro2k's B-26 Marauder or the A-Team's new B-26 Marauder (both 42,000 polys) freeze every time, usually at the very first attempt to rotate or shift the model.

Any ideas on this?

I tested this package. I don't see any freezes or crashes :dntknw:

Share this post


Link to post
Share on other sites

That is one of the aircraft I have been looking at which causes the system freeze, so maybe it is just my PC.

Share this post


Link to post
Share on other sites
59 minutes ago, Gatling20 said:

That is one of the aircraft I have been looking at which causes the system freeze, so maybe it is just my PC.

I don't think "it's just your PC", since other users also have problems with the LODViewer.
Unfortunatelly, I have no clue what the cause of the problems is, because I don't see it on my computers.

I have a request:

  • please enable OSG logging (Extras->Settings->Debugging->Write OSG log file). It writes a logfile "osg_logfile.txt" in the lodviewer.exes directory.
  • restart the LODViewer
  • load the Marauder
  • if the "osg_logfile.txt" is written, please send it to me. Thank you!

Maybe the logfile gives me some pointers.

Share this post


Link to post
Share on other sites

Mue

I have just tried the new V0.60 LOD Viewer on my PC at work, and it works fine, moving and rotating that B-26 without any freeze.

Here is the OSG file from that.

I will try V0.60 on my other PC, the one that has been having the system freezes, later today, and send you the OSG file from that.

osg_logfile.txt

Share this post


Link to post
Share on other sites

Mue, this logfile has been generated on a model with slow execution. There are warnings in it. Maybe it helps.

osg_logfile.txt

Share this post


Link to post
Share on other sites
9 hours ago, mue said:

I downloaded and tested this Mirage F-1EQ . Because of the 4K Textures my development system (Windows 7 with an old 8800 GTS 512) struggles. It gives me a slide show. But it doesn't crashed. On another computer with a GTX 660 I have no problem.

Thanks for your help, it should come from me.

I'm going to make some researches to find what's wrong.

Share this post


Link to post
Share on other sites

Mue

Here is the logfile from the PC which is giving the system freezes, from just after a freeze. It may be a coincidence, but after turning on the OSG logfile option in Debug it took a lot longer to freeze.

 

osg_logfile.txt

Share this post


Link to post
Share on other sites
3 hours ago, pvince said:

Mue, this logfile has been generated on a model with slow execution. There are warnings in it. Maybe it helps.

osg_logfile.txt

 

41 minutes ago, Gatling20 said:

Mue

Here is the logfile from the PC which is giving the system freezes, from just after a freeze. It may be a coincidence, but after turning on the OSG logfile option in Debug it took a lot longer to freeze.

 

osg_logfile.txt

Could both of you please (re)create log files with the "write osg log file" option already enabled at program start (just restart LODViewer with this option enabled). Some information will only be written to the log file at program start. If the log option is enabled only after the program start, then that information are missing in the logfile. 

Share this post


Link to post
Share on other sites

Here is mine, with the OSG log file option enable at the start. I was able to make about 6 or 8 rotations and movements of the aircraft before my PC froze.

 

osg_logfile.txt

Share this post


Link to post
Share on other sites

And here is mine. My PC does not freeze, but execution is very slow, and with delays on controls.

osg_logfile.txt

Share this post


Link to post
Share on other sites

Version 0.6.1 was uploaded.

Changelog:

Version 0.6.1
-added decal texture file loading fallback: If numbered texture file is not found, it’ll then look for unnumbered file.
-added option for using vertex buffer objects (Extra->Settings->Display->Use Vertex Buffer Objects)
 Maybe "Use Vertex Buffer Objects" helps with the performance problem some users have experienced with Version 0.6.0.
 Beware! Enabling this option while simultaneously "Write OSG log file" is enabled, writes A LOT to osg_logfile.txt.
-bugfix: "Write Info File" didn't work in Version 0.6.0
-bugfix: Couldn't save UV Mapping as jpg file

  • Like 2
  • Thanks 2

Share this post


Link to post
Share on other sites

Many thanks Mue, I have given v0.61 a good workout and it seems to be working fine, without the system freezes I was consistently getting with v0.60.

Great job, and an essential tool!

Share this post


Link to post
Share on other sites

GroundObject decals do not work. Hull numbers and ship names can not be viewed.

2019-06-14_163805.thumb.JPG.32f950b54f05ab4239d08862f1dfffa7.JPG

img00252.thumb.JPG.90b028df7d2965021011d03305fff757.JPG

Share this post


Link to post
Share on other sites

Mue - you're a genius!

Thank you.

Share this post


Link to post
Share on other sites

The new version (0.6x) is not compatible with ANSI code (version 0.52 has not the issue). It is probably the combination ANSI + some special characters in the file. Typical problems then:

- data file not loaded

- numbers.lst : numbers not shown in individual markings dropdown list (detected because of  '°' in the text file)

- textures.ini : texture not loaded (suspected character is 'é' in 'Aéronavale' )

And for your info, unfortunately still very slow for me also with 0.61. Sometimes it improves after some time after the model is loaded.

Share this post


Link to post
Share on other sites

Mue, does this mean you've dropped 32-bit support or what am I overlooking as I can't get this version to even open...(I hope not, that would be a bad idea IMHO). 

Share this post


Link to post
Share on other sites

Now everything is working nicely. It reads all kinds of decals. Next step is showing weapons and show things added via FakePilot. When that day comes, my life will be complete and will be ready for the passage!!! :)

Share this post


Link to post
Share on other sites
On 14.6.2019 at 10:41 PM, KJakker said:

GroundObject decals do not work. Hull numbers and ship names can not be viewed.

I didn't know that there is also a decal system for ground objects. After a first glance, it seems it only works with ships? It uses the *_names.ini (that contains [ShipXXX) entries) instead of numbers.lst. Is this correct? Are there other types besides ships?

Until I implement the ground object decal system, you can view the hull numbers with this workaround: copy a NUMBERS.LST file that contains sufficient numbers, e.g. I used F-4B\USMCGREY1\NUMBERS.LST (contains numbers 0 - 99) into the texture folder. Then you can select the hull number via Individual Markings.

Share this post


Link to post
Share on other sites
On 15.6.2019 at 9:57 AM, pvince said:

The new version (0.6x) is not compatible with ANSI code (version 0.52 has not the issue). It is probably the combination ANSI + some special characters in the file. Typical problems then:

- data file not loaded

- numbers.lst : numbers not shown in individual markings dropdown list (detected because of  '°' in the text file)

- textures.ini : texture not loaded (suspected character is 'é' in 'Aéronavale' )

Will be fixed in the next version.

On 15.6.2019 at 9:57 AM, pvince said:

And for your info, unfortunately still very slow for me also with 0.61. Sometimes it improves after some time after the model is loaded.

That means the "Use Vertex buffer objects" option doesn't help? Does the slowdown happen also with stock objects? Do you use 4K textures?

Share this post


Link to post
Share on other sites
On 16.6.2019 at 5:01 AM, swambast said:

Mue, does this mean you've dropped 32-bit support or what am I overlooking as I can't get this version to even open...(I hope not, that would be a bad idea IMHO). 

Yes, currently only 64-bit support:

  1. Even though I compile the OpenSceneGraph library myself, I rely on the prebuild dependency packages for OSG. Those I only found as x64 version. And to compile the dependency packages myself, I didn't find the time and motivation yet.
  2. I need the 64-bit OpenSceneGraph library anyway for a FlightGear related project.
  3. I didn't thought, that 32-bit Desktop-OS is still a thing.

Share this post


Link to post
Share on other sites

Really a piece of art Mue! :good:

the only thing i have noticed is that the refresh button isn´t there anymore...

Share this post


Link to post
Share on other sites
52 minutes ago, Soulfreak said:

Really a piece of art Mue! :good:

the only thing i have noticed is that the refresh button isn´t there anymore...

The "T" tab in the upper left corner or using the R key on the keyboard does it now.

Share this post


Link to post
Share on other sites
9 hours ago, mue said:

Will be fixed in the next version.

That means the "Use Vertex buffer objects" option doesn't help? Does the slowdown happen also with stock objects? Do you use 4K textures?

No the option does not help but yes they are 4k, however, in 0.52 the same with 4k textures is not slow (only loading is longer).

Another remark from later use, version 0.6x is case sensitive for node names. If case is not exactly the same in the .LOD and in the data.ini, hitboxes and CollisionPoints will not show up when node is selected.

  • Thanks 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By crisisloaner
      Hello to all you super modders out there, I have no idea what I'm doing  but have managed to obtain a free 3d model from Turbo_Squid and have managed to use Blender to turn it into a Lod file. Problem is I have no idea what to do next regarding the ini's and skins ...I do not have 3ds and am a complete novice with blender (to be honest,I haven't even read the guidance on it yet !). Any help ion trying to create a viable game object much appreciated !
    • By mue


      View File LOD Exporter for Blender
      I tried to implement the exporter only based on the information I found by investigating LOD files. I'm not a 3D Modeler myself. I only tested the exporter with rather simple object (hierarchies).
      The bottom line is that I have no idea if the exporter works for you. So please give feedback.
      Note: This plugin requires blender version 2.78 or 2.79. It is not compatible with blender versions 2.8+.
      1.) Installation
      Open the Blender User Preferences - Add-ons Tab
      (File -> User Preferences... -> Add-Ons)
      Click "Install from File..."
      Browse to and select the exporter python script "io_export_sf2_lod.py"
      Click "Install from File..." (or double click on the script name)
      In the Add-Ons Tab under Supported Level select Testing and enable "Import-Export: Strike Fighters 2 LOD Exporter"
      The LOD exporter is now installed and enabled. Under File -> Export you should see the menu item "Strike Fighters 2 LOD (.lod)". It's greyed out until an exportable object is selected.
      2.) Usage
      Select the object you want to export and click File -> Export -> Strike Fighters 2 LOD (.lod)
      The file browser opens. In the lower left area you see the LOD exporter options:
      -enable/disable writing the out file (text file with information about the exported object(s)).
      -enable/disable animation export
      -allow decals:
          This option is similar to the option in the original TW-Exporter: "Exporting using AllowDecals=0 causes the vertex to be shared, so it can reduce the size of the .LOD but also causes decals to "bleed" along the edges."
          This dialog setting is used as default for all objects to be exported. However, it can be overwritten by each individual object via the custom object property "AllowDecals" = 0(false) or 1(true)
      The selected object and all child objects are exported.
      Two custom object properties are supported by the exporter:
          -AllowDecals = 0 or 1, This option is similar to the option in the original TW-Exporter: "Exporting using AllowDecals=0 causes the vertex to be shared, so it can reduce the size of the .LOD but also causes decals to "bleed" along the edges."
          -UseFlatNormal = 0 or 1, if set to 1 then all vertex normals are pointing straight up (normal = (0,0,1)) in the objects local coordinate system.
      Please note!
       
      The objects must meet the following requirements:
      -No scaling in the Transform Properties allowed (that means: scale x = y = z = 1.0). If your object has scaling, it should be applied to the mesh (Ctrl-A)
       Scaling is only allowed for animations.
      -A material must be assigned to the object. Only the first material of an object is exported.
      The following material parameters are exported:
          -Diffuse Color (the lod file format also contains ambient color. Currently the exporter set ambient color = diffuse color)
          -Specular Color
          -Specular Intensity
          -Specular Hardness (I think in 3ds Max it's called glossiness)
          -if "Shading -> Emit" > 0.0 then self illumination is enabled
          -Transparency (if transparency is enabled, then the object doesn't cast and doesn't catch shadow. if transparency is disabled, then the object cast and catch shadow. The specific LOD format version the exporter writes, doesn't support arbitrary cast/catch shadow combinations. The other LOD formats I don't understand enough (yet). Sorry!)
          -Alpha
          -Mirror Reflectivity
          -Diffuse texture image name (as diffuse texture the exporter uses the texture where "Influence -> Diffuse -> Color" is enabled)
          -Normal map texture image name("Influence -> Geometry -> Normal" is enabled and the Normal value is also exported)
          -Specular map texture image name("Influence -> Specular -> Intensity" is enabled)
          -Normal and specular map can only be used together with a diffuse map. (If I exported a normal or specular map without diffuse map, then the LOD wasn't shown in the game or the game crashed. I don't know why...)
          
      Animation Export:
          
          This exporter supports the following object animation types: location, rotation and scaling.
          Frames 10, 20, 30, ..., 100 are exported as animation 1
          Frames 110, 120, 130, ..., 200 are exported as animation 2, ...

      3.)Credits:
      Thanks to logan4 and angelp who provided me with specific lod files that helped me to understand the lod file format better.

      4.)Changelog:
      Version 0.1:
      -initial release
      Version 0.2:
      -bugfix: didn't work in blender version 0.79
      Version 0.3:
      -animation support
      -added custom object properties: "AllowDecals" and "UseFlatNormal"
      Submitter mue Submitted 04/30/2018 Category Utilities / Editors  
    • By mue
      I tried to implement the exporter only based on the information I found by investigating LOD files. I'm not a 3D Modeler myself. I only tested the exporter with rather simple object (hierarchies).
      The bottom line is that I have no idea if the exporter works for you. So please give feedback.
      Note: This plugin requires blender version 2.78 or 2.79. It is not compatible with blender versions 2.8+.
      1.) Installation
      Open the Blender User Preferences - Add-ons Tab
      (File -> User Preferences... -> Add-Ons)
      Click "Install from File..."
      Browse to and select the exporter python script "io_export_sf2_lod.py"
      Click "Install from File..." (or double click on the script name)
      In the Add-Ons Tab under Supported Level select Testing and enable "Import-Export: Strike Fighters 2 LOD Exporter"
      The LOD exporter is now installed and enabled. Under File -> Export you should see the menu item "Strike Fighters 2 LOD (.lod)". It's greyed out until an exportable object is selected.
      2.) Usage
      Select the object you want to export and click File -> Export -> Strike Fighters 2 LOD (.lod)
      The file browser opens. In the lower left area you see the LOD exporter options:
      -enable/disable writing the out file (text file with information about the exported object(s)).
      -enable/disable animation export
      -allow decals:
          This option is similar to the option in the original TW-Exporter: "Exporting using AllowDecals=0 causes the vertex to be shared, so it can reduce the size of the .LOD but also causes decals to "bleed" along the edges."
          This dialog setting is used as default for all objects to be exported. However, it can be overwritten by each individual object via the custom object property "AllowDecals" = 0(false) or 1(true)
      The selected object and all child objects are exported.
      Two custom object properties are supported by the exporter:
          -AllowDecals = 0 or 1, This option is similar to the option in the original TW-Exporter: "Exporting using AllowDecals=0 causes the vertex to be shared, so it can reduce the size of the .LOD but also causes decals to "bleed" along the edges."
          -UseFlatNormal = 0 or 1, if set to 1 then all vertex normals are pointing straight up (normal = (0,0,1)) in the objects local coordinate system.
      Please note!
       
      The objects must meet the following requirements:
      -No scaling in the Transform Properties allowed (that means: scale x = y = z = 1.0). If your object has scaling, it should be applied to the mesh (Ctrl-A)
       Scaling is only allowed for animations.
      -A material must be assigned to the object. Only the first material of an object is exported.
      The following material parameters are exported:
          -Diffuse Color (the lod file format also contains ambient color. Currently the exporter set ambient color = diffuse color)
          -Specular Color
          -Specular Intensity
          -Specular Hardness (I think in 3ds Max it's called glossiness)
          -if "Shading -> Emit" > 0.0 then self illumination is enabled
          -Transparency (if transparency is enabled, then the object doesn't cast and doesn't catch shadow. if transparency is disabled, then the object cast and catch shadow. The specific LOD format version the exporter writes, doesn't support arbitrary cast/catch shadow combinations. The other LOD formats I don't understand enough (yet). Sorry!)
          -Alpha
          -Mirror Reflectivity
          -Diffuse texture image name (as diffuse texture the exporter uses the texture where "Influence -> Diffuse -> Color" is enabled)
          -Normal map texture image name("Influence -> Geometry -> Normal" is enabled and the Normal value is also exported)
          -Specular map texture image name("Influence -> Specular -> Intensity" is enabled)
          -Normal and specular map can only be used together with a diffuse map. (If I exported a normal or specular map without diffuse map, then the LOD wasn't shown in the game or the game crashed. I don't know why...)
          
      Animation Export:
          
          This exporter supports the following object animation types: location, rotation and scaling.
          Frames 10, 20, 30, ..., 100 are exported as animation 1
          Frames 110, 120, 130, ..., 200 are exported as animation 2, ...

      3.)Credits:
      Thanks to logan4 and angelp who provided me with specific lod files that helped me to understand the lod file format better.

      4.)Changelog:
      Version 0.1:
      -initial release
      Version 0.2:
      -bugfix: didn't work in blender version 0.79
      Version 0.3:
      -animation support
      -added custom object properties: "AllowDecals" and "UseFlatNormal"
    • By mue
      This is the newest version of the LODViewer.
      New features:
      -decal support
      -display of collision and pivot points
      -added transparency and wireframe display mode
      -user definable background color
      -view manipulation via keyboard
      -64 bit application
      -uses the OpenSceneGraph library and Qt 5.9.5
       
      Install instructions:
      Extract the content of the zip package to a convenient location.
      The LODViewer depends on the Microsoft Visual Studio 2017 C++ libraries. If not already installed on the computer (e.g. by other applications) it has to be installed by running vcredist_x64.exe (you can find it in the redist subfolder of this package).
       
      Have fun! And report bugs
      Mue
×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..