Weird behavior with lightmap [SOLVED]

  • #1, z blablo_101Thursday, 21. April 2016, 20:26 hodinky 9 years ago
    Hi,
    I'm experiencing a weird behavior with lightmap when I do the build of the game.
    The problem is this: All the objects in the lightmap influence appears in black (Only in the builded game, not in the save and run option).

    I have experience some other weird issues in the lightmap... I have erased the lightmap and the build doesn't change (still black) o_O and I have notice the lightmap crashes when Visionaire uses the autosave.

    I have made some screenshots, so you can see the details (The screenshots are in black and white, I have no idea why smile ).

    Image 1: My lightmap is a .jpg (though happens the same with .png) 5 times smaller than the size of the background of the game. In the first image you can see the configuration of the light map in Visionaire.


    Image 2: When I run the game from the build, if I click new game, go through this action


    Image 3: and loads the screen in this way


    Image 4: but instead I go directly to the screen, the lightmap works correctly


    I'm working with version 4.1, but also happens with the 4.0, 4.1 and 4.2.5
    When I do a "save and run" from the editor everything works properly, the fault is in the build.


    Image 5: This is the configuration of the build. You can see the bild properties.

    Bažant

    70 Posts


  • #2, z joemidThursday, 21. April 2016, 23:54 hodinky 9 years ago
    Yeah, I would stay away from jpg. What about webp?

    Bažant

    87 Posts

  • #3, z afrlmeFriday, 22. April 2016, 01:13 hodinky 9 years ago
    Yeah jpg is not a recommended format. We recommend png or webp. Webp is the way to go if you want better optimization as the file sizes of webp are much smaller than png, thus they take less time to load & require less hd space.

    Also I recommend not exporting everything into the output file. You should ideally be exporting most of the things into their own files.

    Imperátor

    7285 Posts

  • #4, z blablo_101Friday, 22. April 2016, 12:03 hodinky 9 years ago
    Hi, thanks for responding so fast!

    I tested with the lightmap in .webm format, separating the videos, characters... into Their Own files when I do the build, and I keep getting the same effect confuse

    Bažant

    70 Posts

  • #5, z sebastianFriday, 22. April 2016, 12:25 hodinky 9 years ago
    Could you post also the lightmap itself?
    Are there any shaders you are using in the game?

    Kapitán

    2346 Posts

  • #6, z SimonSFriday, 22. April 2016, 12:35 hodinky 9 years ago
    Hi, when you are using savegames with the built version, you need to delete all old savegames, because they are linking to non built lightmaps. Another option is to set the lightmap every time at "at beginning of scene".

    Kapitán

    1582 Posts

  • #7, z blablo_101Friday, 22. April 2016, 14:57 hodinky 9 years ago
    Hi, I've tried both SimonS solutions and the two works.

    Thank you very much!

    Bažant

    70 Posts

  • #8, z afrlmeFriday, 22. April 2016, 15:55 hodinky 9 years ago
    Nice. smile

    Imperátor

    7285 Posts