Aller au contenu

Photo

Light map curruption (with fix)


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Inner

Inner
  • Members
  • 12 messages
Well it's not a fix per-say but it helps clean things up, so you can re-render the lightmaps, for some reason my lightmaps for my exterior level seam to currupt the first chance they get, which I've no idea why.

But I dygress, I wrote this batch file to clean things up following the advise of the BG2D teams tutorial on lighting;

http://bg2redux.stud...ialLightmapping

Replace tags, with correct path names.
<USERNAME> = Your username
<LAYOUT> & <MODULE>

Save file as killjunk_module.bat, name really isn't that important call it what you will however .bat is important.

@echo off
Echo "--- Clearing LightMaps ---"

Del /Q "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\Toolset\\LvlWorkspace\\lightmaps\\<LAYOUT>\\*.*"

Echo "--- Clearing ProbeLightMaps ---"

Del /Q /S "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\Toolset\\ProbeLightMaps\\<LAYOUT>\\*.*"

Echo "--- Clearing Layout ---"

Del /Q "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\Toolset\\resourcepostintermediatewin32\\processed\\addins\\<MODULE>\\layouts\\win32\\layouts\\<LAYOUT>\\*.*"

Echo "--- Clearing Module Hierarchies ---"

Del /Q "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\Toolset\\resourcepostintermediatewin32\\processed\\addins\\<MODULE>\\layouts\\win32\\modelhierarchies\\<LAYOUT>\\*.*"

Echo "--- Clearing DDS ---"

Del /Q "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\Toolset\\resourcepostintermediatewin32\\processed\\addins\\<MODULE>\\layouts\\win32\\textures\\dds\\<LAYOUT>\\*.*"

Echo "--- Clearing ERF ---"

Del /Q "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\AddIns\\<MODULE>\\assets\\art\\*.erf"
Del /Q "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\AddIns\\<MODULE>\\assets\\art\\*.erf.bak"

Echo "--- Clearing Temp ---"

RmDir /Q /S "C:\\Users\\<USERNAME>\\AppData\\Local\\Temp\\DALightmap\\<LAYOUT>\\"
Mkdir "C:\\Users\\<USERNAME>\\AppData\\Local\\Temp\\DALightmap\\<LAYOUT>\\"

Echo "--- Clearing ToolSetExport ---"

RmDir /Q /S "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\AddIns\\<MODULE>\\core\\override\\toolsetexport\\<LAYOUT>"
Mkdir "C:\\Users\\<USERNAME>\\Documents\\BioWare\\Dragon Age\\AddIns\\<MODULE>\\core\\override\\toolsetexport\\<LAYOUT>"

Boom, junk gone.
  • ladyofpayne aime ceci

#2
mikemike37

mikemike37
  • Members
  • 669 messages
hey, thanks for sharing. I've added it to the tutorial (made a new page for deleting them). I adapted it for windows XP users who have different paths.

http://bg2redux.stud...helightmapfiles 

(for those interested, I suggest copying from the wiki page I made, since forum formatting kind of butchered Inner's post - not his fault, mind!)

Modifié par mikemike37, 02 juin 2010 - 03:54 .


#3
Inner

Inner
  • Members
  • 12 messages
Your welcome.