assimp 5.0.1已经测试通过编译,编译方式为Release x64,可自行选择编译,CMake测试编译平台为VS2017_x64
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-01-12 11:56 assimp-5.0.1
文件 413 2020-01-12 11:56 assimp-5.0.1.editorconfig
文件 75 2020-01-12 11:56 assimp-5.0.1AssimpBuildTreeSettings.cmake.in
文件 436 2020-01-12 11:56 assimp-5.0.1AssimpConfigVersion.cmake.in
文件 959 2020-01-12 11:56 assimp-5.0.1BUILDBINARIES_EXAMPLE.bat
文件 4433 2020-01-12 11:56 assimp-5.0.1Build.md
文件 25085 2020-01-12 11:56 assimp-5.0.1CHANGES
文件 28562 2020-01-12 11:56 assimp-5.0.1CMakeLists.txt
文件 736 2020-01-12 11:56 assimp-5.0.1CONTRIBUTING.md
文件 4573 2020-01-12 11:56 assimp-5.0.1CREDITS
文件 397 2020-01-12 11:56 assimp-5.0.1CodeConventions.md
文件 1628 2020-01-12 11:56 assimp-5.0.1INSTALL
文件 3791 2020-01-12 11:56 assimp-5.0.1LICENSE
文件 14 2020-01-12 11:56 assimp-5.0.1README
文件 8160 2020-01-12 11:56 assimp-5.0.1Readme.md
文件 2351 2020-01-12 11:56 assimp-5.0.1assimp-config-version.cmake.in
文件 55 2020-01-12 11:56 assimp-5.0.1assimp-config.cmake.in
文件 462 2020-01-12 11:56 assimp-5.0.1assimp.pc.in
文件 4511 2020-01-12 11:56 assimp-5.0.1assimpTargets-debug.cmake.in
文件 4582 2020-01-12 11:56 assimp-5.0.1assimpTargets-release.cmake.in
文件 3663 2020-01-12 11:56 assimp-5.0.1assimpTargets.cmake.in
目录 0 2020-01-12 11:56 assimp-5.0.1cmake-modules
文件 4959 2020-01-12 11:56 assimp-5.0.1cmake-modulesCoveralls.cmake
文件 1366 2020-01-12 11:56 assimp-5.0.1cmake-modulesCoverallsClear.cmake
文件 16928 2020-01-12 11:56 assimp-5.0.1cmake-modulesCoverallsGenerateGcov.cmake
文件 17425 2020-01-12 11:56 assimp-5.0.1cmake-modulesDebSourcePPA.cmake
文件 2423 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindDevIL.cmake
文件 4067 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindDirectX.cmake
文件 521 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindIrrxml.cmake
文件 5393 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindPkgMacros.cmake
文件 596 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindRT.cmake
............此处省略2427个文件信息
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2019 assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms
with or without modification are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above
copyright notice this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of the assimp team nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of the assimp team.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
“AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------
*/
/** @file Implementation of the 3ds importer class */
#ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
// internal headers
#include “3DSLoader.h“
#include “Common/TargetAnimation.h“
#include
#include
#include
#include
#include
using namespace Assimp;
static const unsigned int NotSet = 0xcdcdcdcd;
// ------------------------------------------------------------------------------------------------
// Setup final material indices generae a default material if necessary
void Discreet3DSImporter::ReplaceDefaultMaterial()
{
// Try to find an existing material that matches the
// typical default material setting:
// - no textures
// - diffuse color (in grey!)
// NOTE: This is here to workaround the fact that some
// exporters are writing a default material too.
unsigned int idx( NotSet );
for (unsigned int i = 0; i < mScene->mMaterials.size();++i)
{
std::string &s = mScene->mMaterials[i].mName;
for ( std::string::iterator it = s.begin(); it != s.end(); ++it ) {
*it = static_cast< char >( ::tolower( *it ) );
}
if (std::st
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-01-12 11:56 assimp-5.0.1
文件 413 2020-01-12 11:56 assimp-5.0.1.editorconfig
文件 75 2020-01-12 11:56 assimp-5.0.1AssimpBuildTreeSettings.cmake.in
文件 436 2020-01-12 11:56 assimp-5.0.1AssimpConfigVersion.cmake.in
文件 959 2020-01-12 11:56 assimp-5.0.1BUILDBINARIES_EXAMPLE.bat
文件 4433 2020-01-12 11:56 assimp-5.0.1Build.md
文件 25085 2020-01-12 11:56 assimp-5.0.1CHANGES
文件 28562 2020-01-12 11:56 assimp-5.0.1CMakeLists.txt
文件 736 2020-01-12 11:56 assimp-5.0.1CONTRIBUTING.md
文件 4573 2020-01-12 11:56 assimp-5.0.1CREDITS
文件 397 2020-01-12 11:56 assimp-5.0.1CodeConventions.md
文件 1628 2020-01-12 11:56 assimp-5.0.1INSTALL
文件 3791 2020-01-12 11:56 assimp-5.0.1LICENSE
文件 14 2020-01-12 11:56 assimp-5.0.1README
文件 8160 2020-01-12 11:56 assimp-5.0.1Readme.md
文件 2351 2020-01-12 11:56 assimp-5.0.1assimp-config-version.cmake.in
文件 55 2020-01-12 11:56 assimp-5.0.1assimp-config.cmake.in
文件 462 2020-01-12 11:56 assimp-5.0.1assimp.pc.in
文件 4511 2020-01-12 11:56 assimp-5.0.1assimpTargets-debug.cmake.in
文件 4582 2020-01-12 11:56 assimp-5.0.1assimpTargets-release.cmake.in
文件 3663 2020-01-12 11:56 assimp-5.0.1assimpTargets.cmake.in
目录 0 2020-01-12 11:56 assimp-5.0.1cmake-modules
文件 4959 2020-01-12 11:56 assimp-5.0.1cmake-modulesCoveralls.cmake
文件 1366 2020-01-12 11:56 assimp-5.0.1cmake-modulesCoverallsClear.cmake
文件 16928 2020-01-12 11:56 assimp-5.0.1cmake-modulesCoverallsGenerateGcov.cmake
文件 17425 2020-01-12 11:56 assimp-5.0.1cmake-modulesDebSourcePPA.cmake
文件 2423 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindDevIL.cmake
文件 4067 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindDirectX.cmake
文件 521 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindIrrxm
文件 5393 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindPkgMacros.cmake
文件 596 2020-01-12 11:56 assimp-5.0.1cmake-modulesFindRT.cmake
............此处省略2427个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)