Remove Interior Object format (DIF)

This commit is contained in:
thecelloman 2013-04-05 12:39:26 -04:00
parent a868b649ad
commit b4ea1123dc
99 changed files with 76 additions and 17318 deletions

View file

@ -37,7 +37,7 @@
DepthSortList BlobShadow::smDepthSortList;
GFXTexHandle BlobShadow::smGenericShadowTexture = NULL;
S32 BlobShadow::smGenericShadowDim = 32;
U32 BlobShadow::smShadowMask = TerrainObjectType | InteriorObjectType;
U32 BlobShadow::smShadowMask = TerrainObjectType;
F32 BlobShadow::smGenericRadiusSkew = 0.4f; // shrink radius of shape when it always uses generic shadow...
Box3F gBlobShadowBox;

View file

@ -40,14 +40,6 @@
#include "core/stream/fileStream.h"
#include "core/crc.h"
//#define DUMP_LIGHTMAPS
#ifdef DUMP_LIGHTMAPS
#include "interior/interiorInstance.h"
#include "core/volume.h"
#endif
namespace
{
bool gTerminateLighting = false;
@ -394,23 +386,6 @@ void SceneLighting::sgSGObjectCompleteEvent(S32 object)
// only the last light does something
mLitObjects[object]->postLight(true);
#ifdef DUMP_LIGHTMAPS
InteriorInstance *interiorinst = dynamic_cast<InteriorInstance *>(mLitObjects[object]->getObject());
if(interiorinst)
{
Interior *detail = interiorinst->getDetailLevel(0);
for(U32 i=0; i<detail->mNormalLMapIndices.size(); i++)
{
GFXTexHandle normHandle = gInteriorLMManager.duplicateBaseLightmap(detail->getLMHandle(),
interiorinst->getLMHandle(), detail->getNormalLMapIndex(i));
GBitmap *normLightmap = normHandle->getBitmap();
FileStream output;
output.open(avar("lightmaps/lm_%d_%d.png", object, i), Torque::FS::File::Write);
normLightmap->writeBitmap("png",output);
}
}
#endif
/*ObjectProxy *obj = mLitObjects[object];
for(U32 i=0; i<mLights.size(); i++)