Results 1 to 8 of 8
  1. #1
    Member Moguri's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    1,993

    BGE Analyzer Addon Testing and Feedback Thread

    Hello,

    I'm working on a new addon for the BGE to analyze a blend file for potential issues. Right now the addon only has two physics related checks, but I'd like to get some feedback before going much further. You can find the addon here.

    Some questions I have for people:

    1. What should the addon check for?
    2. What priorities should the checks have?
    3. Should there be priorities?
    4. Should there be any changes to the output?


    Thanks for any feedback, and I hope you find the addon useful (especially when I get some more checks in).

    Cheers,
    Moguri



  2. #2
    Member andrew-101's Avatar
    Join Date
    Apr 2007
    Location
    Melbourne, Australia
    Posts
    2,192
    It doesn't work on 2.62, no attribute named polygons on mesh. Worked fine for me on 2.63 though.

    Its a really good idea, it picked up a skydome that I hadn't thought to disable collision for. The output is easy to read. I'm not sure about what other checks you could do though.

    One thing though, if you have your resources spread over many .blend files it won't really analyze them.
    Last edited by andrew-101; 19-Jun-12 at 22:24.



  3. #3
    Member Moguri's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    1,993
    @andrew-101:
    Yeah, it would be nice if I could figure out how to run this on a directory. Although, I guess a script calling the operator and running Blender in background mode on each of your blends would do the trick. However, I have added support for dupligroups from linked in libraries. So, if you link in a bunch of assets as groups (like YoFrankie! did), then the linked in objects can still be properly analyzed.



  4. #4
    Member klauser's Avatar
    Join Date
    May 2011
    Location
    Scotland
    Posts
    565
    Ye, the addon seems to work nicely. Thankfully it didnt throw up too many physics errors in my scene , but I dont know how comprehensive the tests are.

    Maybe it could check for any n-gons in the scene and on what mesh? I dont think this is a particularly high priority check, but I have had some odd physics problems with n-gons. Oh and sometimes the mesh is triangulated in what looks like the most unoptimised way. Most of the time n-gons work fine in the bge, but I have been trying to eliminate them... just in case.



  5. #5
    Member klauser's Avatar
    Join Date
    May 2011
    Location
    Scotland
    Posts
    565
    And maybe it could check that all images are sized to the power of 2 and alert you which ones are not.



  6. #6
    Originally Posted by klauser View Post
    And maybe it could check that all images are sized to the power of 2 and alert you which ones are not.
    Most modern cards support NPOT (Non Power of Two) textures - There is still some performance benefit to POT textures, but it's insignificant in most cases.
    Need a programmer? -> http://www.nilunder.com/protoblend
    Want to become one? -> http://www.nilunder.com/tutoring
    Game Dev video tutorials -> http://www.youtube.com/goranmilovano



  7. #7
    Member christiani_if's Avatar
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    487
    possible "questions" the analyser could "ask" a blend file:

    1. Are the texture files packed or available in their relative/defined location/path?

    2. (same for scripts if it's possible?)

    3. same, but for sound files

    4. Actually, make the analyser look if all files that are "called"/required by the main blend are present in their defined locations and/or accessible

    4.a. Are those files actually existing, but the main blend file is using bad file ids ?? (like the blend trying to open music.wav and it's actually music1.wav or something...)

    (thinking...)
    ◄Current project: ASTERACERS™ - We Need your feedback, HERE!
    May the Force be with you, my young apprentice!!!
    Check out these links: ,/" here "\, and • here



  8. #8
    Originally Posted by Goran View Post
    Most modern cards support NPOT (Non Power of Two) textures - There is still some performance benefit to POT textures, but it's insignificant in most cases.
    I don't believe that's the case - I think that having oddly sized textures can dramatically increase conversion time (when you first start the engine).



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •