Project-Cartographer / H2PC_TagExtraction

A application made to extract assets from cache files of H2v using BlamLib by KornnerStudios.
16 stars 7 forks source link

Undo processing on scenario_structure_lightmap/ltmp. #24

Open num0005 opened 5 years ago

num0005 commented 5 years ago

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.

General-101 commented 5 years ago

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

General-101 commented 5 years ago

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

num0005 commented 5 years ago

mode or html permutations.

General-101 commented 5 years ago

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)