physx3.2 sdk(3)


很好的物理引擎学习资料,这是physx3.2的第三部分,与第一二部分一起使用
资源截图
代码片段和文件信息
// This code contains NVIDIA Confidential Information and is disclosed to you 
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation and 
// any modifications thereto. Any use reproduction disclosure or 
// distribution of this software and related documentation without an express 
// license agreement from NVIDIA Corporation is strictly prohibited.
// 
// ALL NVIDIA DESIGN SPECIFICATIONS CODE ARE PROVIDED “AS IS.“. NVIDIA MAKES
// NO WARRANTIES EXPRESSED IMPLIED STATUTORY OR OTHERWISE WITH RESPECT TO
// THE MATERIALS AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// Information and code furnished is believed to be accurate and reliable.
// However NVIDIA Corporation assumes no responsibility for the consequences of use of such
// information or for any infringement of patents or other rights of third parties that may
// result from its use. No license is granted by implication or otherwise under any patent
// or patent rights of NVIDIA Corporation. Details are subject to change without notice.
// This code supersedes and replaces all information previously supplied.
// NVIDIA Corporation products are not authorized for use as critical
// components in life support devices or systems without express written approval of
// NVIDIA Corporation.
//
// Copyright (c) 2008-2012 NVIDIA Corporation. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  

#include 
#include 
#include 
#include “PxTkBmpLoader.h“
#include “PsFile.h“

using namespace PxToolkit;

#define MAKETWOCC(ab) ( ((char)a) | (((char)b)<< 8) ) 

static bool isBigEndian() { int i = 1; return *((char*)&i)==0; }

static unsigned short endianSwap(unsigned short nValue)
{
   return (((nValue>> 8)) | (nValue << 8));

}

static unsigned int endianSwap(unsigned int i)
{
  unsigned char b1 b2 b3 b4;

  b1 = i & 255;
  b2 = ( i >> 8 ) & 255;
  b3 = ( i>>16 ) & 255;
  b4 = ( i>>24 ) & 255;

  return ((unsigned int)b1 << 24) + ((unsigned int)b2 << 16) + ((unsigned int)b3 << 8) + b4;
}

// -------------------------------------------------------------------

#pragma pack(1)

struct BMPHEADER {
unsigned short Type;
unsigned int Size;
unsigned short Reserved1;
unsigned short Reserved2;
unsigned int OffBits;
};

// Only Win3.0 BMPINFO (see later for OS/2)
struct BMPINFO {
unsigned int Size;
unsigned int Width;
unsigned int Height;
unsigned short Planes;
unsigned short BitCount;
unsigned int Compression;
unsigned int SizeImage;
unsigned int XPelsPerMeter;
unsigned int YPelsPerMeter;
unsigne

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     699192  2012-04-30 14:42  mediaPhysX3.2Samplesasphalt_diffuse.dds

     文件       1046  2012-04-30 14:42  mediaPhysX3.2SamplesBoxMesh.raw

     文件     133325  2012-04-30 14:42  mediaPhysX3.2Samplescape.obj

     文件    1572918  2012-04-30 14:42  mediaPhysX3.2SamplesCape_PlainGreen.bmp

     文件    1572918  2012-04-30 14:42  mediaPhysX3.2Samplescape_plain_green.bmp

     文件    2097206  2012-04-30 14:42  mediaPhysX3.2Samplescar02_diffuse.bmp

     文件    2097183  2012-04-30 14:42  mediaPhysX3.2Samplescar02_diffuse.tga

     文件     138615  2012-04-30 14:42  mediaPhysX3.2Samplescar2.raw

     文件       1078  2012-04-30 14:42  mediaPhysX3.2Samplescar_window_diffuse.bmp

     文件       1055  2012-04-30 14:42  mediaPhysX3.2Samplescar_window_diffuse.tga

     文件     102222  2012-04-30 14:42  mediaPhysX3.2Samplesctdm_cape_m.obj

     文件       5616  2012-04-30 14:42  mediaPhysX3.2Samplesdebris_texture.dds

     文件      43832  2012-04-30 14:42  mediaPhysX3.2SamplesdivingBoardFloor_diffuse.dds

     文件    3145782  2012-04-30 14:42  mediaPhysX3.2Samplesdummy_cape_d.bmp

     文件     174904  2012-04-30 14:42  mediaPhysX3.2Samplesgrass_diffuse.dds

     文件     699192  2012-04-30 14:42  mediaPhysX3.2Samplesgravel_diffuse.dds

     文件     174904  2012-04-30 14:42  mediaPhysX3.2Samplesice_diffuse.dds

     文件      72184  2012-04-30 14:42  mediaPhysX3.2SamplesLooping.raw

     文件        391  2012-04-30 14:42  mediaPhysX3.2Samplesmaterialsparticle_sample_heightmap.xml

     文件    1572918  2012-04-30 14:42  mediaPhysX3.2Samplesmission_race1_sky_side.bmp

     文件    1572895  2012-04-30 14:42  mediaPhysX3.2Samplesmission_race1_sky_SIDE.tga

     文件     786486  2012-04-30 14:42  mediaPhysX3.2Samplesmission_race1_sky_top.bmp

     文件     786463  2012-04-30 14:42  mediaPhysX3.2Samplesmission_race1_sky_TOP.tga

     文件       7268  2012-04-30 14:42  mediaPhysX3.2Samplesmotionstickman.asf

     文件     235468  2012-04-30 14:42  mediaPhysX3.2Samplesmotionstickman_jump_01.amc

     文件      75131  2012-04-30 14:42  mediaPhysX3.2Samplesmotionstickman_running_01.amc

     文件      93735  2012-04-30 14:42  mediaPhysX3.2Samplesmotionstickman_walking_01.amc

     文件     196664  2012-04-30 14:42  mediaPhysX3.2Samples
vidia.bmp

     文件    1572918  2012-04-30 14:42  mediaPhysX3.2Samples
vidia_flag_d.bmp

     文件      42890  2012-04-30 14:42  mediaPhysX3.2Samplesparticles_heightmap.tga

............此处省略1015个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)