/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ // Original file Copyright Crytek GMBH or its affiliates, used under license. #include "stdafx.h" #include "SHFramework.h" #pragma comment(lib,"Winmm.lib") void Dump() { #if defined(_DEBUG) //check allocation and set this value after program start into _crtBreakAlloc _CrtDumpMemoryLeaks(); int hallo = 0; hallo += 1; #endif } int _tmain(int, _TCHAR*[]) { atexit(Dump); using namespace NSH; try { /* const char *pImageName[10] = { "E:/Martin/MasterCD/Textures/HDR/beach_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/building_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/campus_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/galileo_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/grace_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/kitchen_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/rnl_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/stpeters_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/uffizi0_probe.hdr", "E:/Martin/MasterCD/Textures/HDR/uffizi_probe.hdr" }; for(int i=0; i<10; ++i) NFramework::ProjectSphericalEnvironmentMap(pImageName[i]); */ /* std::vector objNames; // objNames.push_back("E:/Martin/MasterCD/Objects/Quad/Quad.obj"); objNames.push_back("E:/Martin/MasterCD/Objects/Green/g1.obj"); // objNames.push_back("E:/Martin/MasterCD/Objects/max_mutant/max_mutant.OBJ"); NTransfer::STransferParameters transferParams; transferParams.interreflectionDepth = 3; transferParams.sampleCountPerVertex = 2000; std::vector matrixVector; Matrix34 matrix; matrix.SetIdentity(); matrixVector.push_back(matrix); // matrix.SetTranslationMat(Vec3_tpl(10.f,0.f,0.f)); // matrixVector.push_back(matrix); NFramework::ComputeMeshTransfer(objNames, matrixVector, transferParams, NFramework::E_COEFFICIENT_STORE_POLICY_OBJ); */ }catch (const std::exception& rEx) { printf(rEx.what()); } printf("\n"); return 0; }