H2PC_TagExtraction icon indicating copy to clipboard operation
H2PC_TagExtraction copied to clipboard

Undo processing on scenario_structure_lightmap/ltmp.

Open num0005 opened this issue 6 years ago • 4 comments

Copied from #10

Same issue with render_models (see #15) where everything after section will not be written. Unlike render_models this does not have anything to do with resource maps. My theory is that the geometry classification is causing it to store the mesh data in a different way from render_models. I have no proof for this though.

num0005 avatar Jun 14 '19 21:06 num0005

Another idea I had is that the reconstruct part for the lightmap mesh was just never done.

General-101 avatar Jun 15 '19 14:06 General-101

The actual reason seems to be that the lightmap mesh is merged with sbsp on package. This needs to be confirmed but surface level examining of the ltmp tag in Assembly seems to point to the mesh being gone. Unless another solution comes around the best chance we have of reusing the lightmap tag is to rebuild it using the bsp tag.

Issues with rebuilt lightmap include

  • crashing during scenery processing. Possibly mode related

  • hanging during rasterizing. Possibly post processing in a specific tag block as Dreamer and sp_tests have shown good results. Will look into this. Edit: Turns out tool just took a really long time.

General-101 avatar Jun 20 '19 20:06 General-101

mode or html permutations.

num0005 avatar Jun 20 '19 20:06 num0005

Crashing during scenery loading for lighting seems to be related to missing scenery. Might just go away with readding the tags. Do not believe this is normal so I will look into this more at some point.

Some tag blocks related to scenery prob should be cleared and regenerated as they are probably generated on package and use tag datums to reference objects. (makes them garbage after recompiling the cache)

General-101 avatar Jun 21 '19 03:06 General-101