资源简介
http://blog.csdn.net/chenjinxian_3D/article/category/6285650 博客配套学习代码
代码片段和文件信息
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2016 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 “TargetAnimation.h“
#include
#include
#include “StringComparison.h“
#include
#include
using namespace Assimp;
// ------------------------------------------------------------------------------------------------
// 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 = 0xcdcdcdcd;
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::string::npos == s.find(“default“))continue;
if (mScene
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-08-08 08:49 Build\
目录 0 2016-08-08 08:49 Build\Release\
文件 387584 2016-08-07 21:53 Build\Release\AmbientLightingDemo.exe
文件 421376 2016-08-07 21:54 Build\Release\AnimationDemo.exe
目录 0 2016-08-08 08:49 Build\Release\Assets\
目录 0 2016-08-08 08:49 Build\Release\Assets\Effects\
文件 2854 2016-08-07 21:53 Build\Release\Assets\Effects\AmbientLighting.cso
文件 1951 2016-08-07 21:52 Build\Release\Assets\Effects\BasicEffect.cso
文件 977 2016-07-27 09:41 Build\Release\Assets\Effects\BasicEffect.fx
文件 6412 2016-08-07 21:52 Build\Release\Assets\Effects\Bloom.cso
文件 6874 2016-08-07 21:54 Build\Release\Assets\Effects\ColorFilter.cso
文件 3096 2016-08-07 21:54 Build\Release\Assets\Effects\ComputeShader.cso
文件 3761 2016-08-07 21:52 Build\Release\Assets\Effects\DepthMap.cso
文件 4626 2016-08-07 21:53 Build\Release\Assets\Effects\DiffuseLighting.cso
文件 5867 2016-08-07 21:52 Build\Release\Assets\Effects\Distortion.cso
文件 2492 2016-08-07 21:54 Build\Release\Assets\Effects\DistortionPost.cso
文件 4800 2016-08-07 21:53 Build\Release\Assets\Effects\EnvironmentMapping.cso
文件 10937 2016-08-07 21:53 Build\Release\Assets\Effects\Fog.cso
文件 3894 2016-08-07 21:52 Build\Release\Assets\Effects\GaussianBlur.cso
文件 5971 2016-08-07 21:54 Build\Release\Assets\Effects\Instancing.cso
文件 14488 2016-08-07 21:54 Build\Release\Assets\Effects\ModelTessellation.cso
文件 6581 2016-08-07 21:53 Build\Release\Assets\Effects\NormalMapping.cso
文件 6721 2016-08-07 21:54 Build\Release\Assets\Effects\PointLight.cso
文件 13009 2016-08-07 21:54 Build\Release\Assets\Effects\PointSprite.cso
文件 19260 2016-08-07 21:52 Build\Release\Assets\Effects\ProjectiveTextureMapping.cso
文件 5766 2016-08-07 21:54 Build\Release\Assets\Effects\QuadHeightmapTessellation.cso
文件 4140 2016-08-07 21:54 Build\Release\Assets\Effects\QuadTessellation.cso
文件 20417 2016-08-07 21:52 Build\Release\Assets\Effects\ShadowMapping.cso
文件 7444 2016-08-07 21:52 Build\Release\Assets\Effects\SkinnedModel.cso
文件 2182 2016-08-07 21:52 Build\Release\Assets\Effects\Skybox.cso
文件 7443 2016-08-07 21:53 Build\Release\Assets\Effects\SpotLight.cso
............此处省略1127个文件信息
- 上一篇:ROM解包打包工具箱
- 下一篇:Cisco Packet Tracer 6.0
相关资源
- war song 5v5.unitypackage王者荣耀场景地图
- unity3d 各种鸟类模型资源 带动画 BIR
- Unity 3d 家畜动物模型带动作
- img OpenSceneGraph三维渲染引擎设计与实
- [GPU精粹3].(GPU.Gems.3).(美)Hubert.
- OpenGL 3D 机器人
- 图形着色器 理论与实践 第二版 Gra
- untiy3D开发的小游戏坦克大战
- 2.5D Platformer Engineunity2.5D精美游戏框架
- Unity3D人物怪物互攻小游戏Demo
- Unity3D项目游戏设置界面NGUI
- Unity3D模拟太阳系
- 3d Via Wizard 3.1 (支持Ansoft HFSS 12/13/1
- 3本适用于游戏开发的3D数学和物理教
- unity3D制作的飞车单机小游戏
- MAXWELL3D教程
- b1eab6eefa1f2b8f05b5eb06f3d23219.rar
- Survival Shooter噩梦射手成品.rar
- Unity3D人工智能编程精粹代码
- Learn Three.js 第3版(英文)
- unity3D空战游戏《鹰击长空》源码
- unity体积雾详解内含中文版
- Soda_3D_Reader_6 安装包
- OgreMaxSceneExporterfor3DSMax
- 手把手教你架构3D游戏引擎-姜雪伟 高
- Unity 3d 森林动物模型资源包带动作
- Unity3D特效粒子 FXLab - Unity Effects 高级
- Unity3D休闲射击类游戏《Survival Shoote
- CesiumJS 1.56 (发布时间 2019-04-01)
- 3D Game Engine Design - A Practical Approach T
评论
共有 条评论