more Collada physics work
This commit is contained in:
@@ -796,8 +796,9 @@ int main(int argc,char** argv)
|
|||||||
/// Import Collada 1.4 Physics objects
|
/// Import Collada 1.4 Physics objects
|
||||||
|
|
||||||
//char* filename = "analyticalGeomPhysicsTest.dae";//ColladaPhysics.dae";
|
//char* filename = "analyticalGeomPhysicsTest.dae";//ColladaPhysics.dae";
|
||||||
//char* filename = "colladaphysics_spherebox.dae";
|
char* filename = "colladaphysics_spherebox.dae";
|
||||||
char* filename = "friction.dae";
|
|
||||||
|
//char* filename = "friction.dae";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ FUStatus FCDGeometry::LoadFromXML(xmlNode* geometryNode)
|
|||||||
FCDGeometry* entity = GetDocument()->FindGeometry(url.prefix);
|
FCDGeometry* entity = GetDocument()->FindGeometry(url.prefix);
|
||||||
if (entity)
|
if (entity)
|
||||||
{
|
{
|
||||||
printf("found convex_mesh%s\n",url.prefix);
|
printf("found convex_mesh\n");
|
||||||
//quick hack
|
//quick hack
|
||||||
this->mesh = entity->GetMesh();
|
this->mesh = entity->GetMesh();
|
||||||
mesh->m_convex = true;
|
mesh->m_convex = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding = "Windows-1252"?>
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
<VisualStudioProject
|
<VisualStudioProject
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="7.10"
|
Version="7.10"
|
||||||
@@ -16,23 +16,23 @@
|
|||||||
OutputDirectory="..\..\out\release71\build\appColladaDemo\"
|
OutputDirectory="..\..\out\release71\build\appColladaDemo\"
|
||||||
IntermediateDirectory="..\..\out\release71\build\appColladaDemo\"
|
IntermediateDirectory="..\..\out\release71\build\appColladaDemo\"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
CharacterSet="2"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
UseOfMFC="0"
|
UseOfMFC="0"
|
||||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="2"
|
||||||
|
WholeProgramOptimization="TRUE">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="2"
|
|
||||||
StringPooling="TRUE"
|
|
||||||
EnableFunctionLevelLinking="TRUE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
BufferSecurityCheck="FALSE"
|
|
||||||
PreprocessorDefinitions="NDEBUG;_CONSOLE;WIN32"
|
|
||||||
OptimizeForProcessor="1"
|
|
||||||
ExceptionHandling="0"
|
|
||||||
AdditionalOptions=" "
|
AdditionalOptions=" "
|
||||||
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics"
|
Optimization="2"
|
||||||
|
OptimizeForProcessor="1"
|
||||||
|
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics;..\..\Extras\FCollada;..\..\Extras\FCollada\LibXML\include"
|
||||||
|
PreprocessorDefinitions="NDEBUG;_CONSOLE;WIN32"
|
||||||
|
StringPooling="TRUE"
|
||||||
|
ExceptionHandling="FALSE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
BufferSecurityCheck="FALSE"
|
||||||
|
EnableFunctionLevelLinking="TRUE"
|
||||||
|
TreatWChar_tAsBuiltInType="FALSE"
|
||||||
PrecompiledHeaderFile="..\..\out\release71\build\appColladaDemo\appColladaDemo.pch"
|
PrecompiledHeaderFile="..\..\out\release71\build\appColladaDemo\appColladaDemo.pch"
|
||||||
AssemblerListingLocation="..\..\out\release71\build\appColladaDemo\"
|
AssemblerListingLocation="..\..\out\release71\build\appColladaDemo\"
|
||||||
ObjectFile="..\..\out\release71\build\appColladaDemo\"
|
ObjectFile="..\..\out\release71\build\appColladaDemo\"
|
||||||
@@ -40,29 +40,26 @@
|
|||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
TreatWChar_tAsBuiltInType="false"
|
DebugInformationFormat="3"
|
||||||
CompileAs="0"/>
|
CompileAs="0"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
LinkIncremental="1"
|
IgnoreImportLibrary="TRUE"
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
GenerateDebugInformation="TRUE"
|
|
||||||
IgnoreDefaultLibraryNames="LIBC,LIBCD,LIBCMT,LIBCMTD"
|
|
||||||
OutputFile="..\..\ColladaDemo.exe"
|
|
||||||
SubSystem="1"
|
|
||||||
AdditionalOptions=" "
|
AdditionalOptions=" "
|
||||||
AdditionalDependencies="glut32.lib"
|
AdditionalDependencies="glut32.lib"
|
||||||
IgnoreImportLibrary="TRUE"
|
OutputFile="..\..\ColladaDemo.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories="..\..\Glut"
|
AdditionalLibraryDirectories="..\..\Glut"
|
||||||
|
IgnoreDefaultLibraryNames="LIBC,LIBCD,LIBCMT,LIBCMTD"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile="..\..\out\release71\build\appColladaDemo\ColladaDemo.pdb"
|
ProgramDatabaseFile="..\..\out\release71\build\appColladaDemo\ColladaDemo.pdb"
|
||||||
|
SubSystem="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
TargetMachine="1"/>
|
TargetMachine="1"/>
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
SuppressStartupBanner="TRUE"/>
|
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
PreprocessorDefinitions="NDEBUG;_CONSOLE"
|
PreprocessorDefinitions="NDEBUG;_CONSOLE"
|
||||||
@@ -71,8 +68,7 @@
|
|||||||
TargetEnvironment="1"
|
TargetEnvironment="1"
|
||||||
TypeLibraryName="..\..\out\release71\build\appColladaDemo\appColladaDemo.tlb"/>
|
TypeLibraryName="..\..\out\release71\build\appColladaDemo\appColladaDemo.tlb"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"/>
|
||||||
/>
|
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"/>
|
Name="VCPreBuildEventTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
@@ -80,33 +76,39 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCResourceCompilerTool"
|
Name="VCResourceCompilerTool"
|
||||||
PreprocessorDefinitions="NDEBUG;_CONSOLE;PROJECTGEN_VERSION=71"
|
PreprocessorDefinitions="NDEBUG;_CONSOLE;PROJECTGEN_VERSION=71"
|
||||||
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics"
|
Culture="1033"
|
||||||
Culture="1033"/>
|
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCWebDeploymentTool"/>
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="..\..\out\debug71\build\appColladaDemo\"
|
OutputDirectory="..\..\out\debug71\build\appColladaDemo\"
|
||||||
IntermediateDirectory="..\..\out\debug71\build\appColladaDemo\"
|
IntermediateDirectory="..\..\out\debug71\build\appColladaDemo\"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
CharacterSet="2"
|
|
||||||
UseOfMFC="0"
|
UseOfMFC="0"
|
||||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="2">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
|
||||||
MinimalRebuild="TRUE"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
RuntimeTypeInfo="TRUE"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32"
|
|
||||||
OptimizeForProcessor="1"
|
|
||||||
ExceptionHandling="0"
|
|
||||||
AdditionalOptions=" "
|
AdditionalOptions=" "
|
||||||
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics"
|
Optimization="0"
|
||||||
|
OptimizeForProcessor="1"
|
||||||
|
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics;..\..\Extras\FCollada;..\..\Extras\FCollada\LibXML\include"
|
||||||
|
PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32"
|
||||||
|
MinimalRebuild="TRUE"
|
||||||
|
ExceptionHandling="FALSE"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
TreatWChar_tAsBuiltInType="FALSE"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
PrecompiledHeaderFile="..\..\out\debug71\build\appColladaDemo\appColladaDemo.pch"
|
PrecompiledHeaderFile="..\..\out\debug71\build\appColladaDemo\appColladaDemo.pch"
|
||||||
AssemblerListingLocation="..\..\out\debug71\build\appColladaDemo\"
|
AssemblerListingLocation="..\..\out\debug71\build\appColladaDemo\"
|
||||||
ObjectFile="..\..\out\debug71\build\appColladaDemo\"
|
ObjectFile="..\..\out\debug71\build\appColladaDemo\"
|
||||||
@@ -114,27 +116,24 @@
|
|||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
Detect64BitPortabilityProblems="TRUE"
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
TreatWChar_tAsBuiltInType="false"
|
DebugInformationFormat="4"
|
||||||
CompileAs="0"/>
|
CompileAs="0"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
LinkIncremental="2"
|
IgnoreImportLibrary="TRUE"
|
||||||
GenerateDebugInformation="TRUE"
|
|
||||||
IgnoreDefaultLibraryNames="LIBC,LIBCD,LIBCMT,LIBCMTD,MSVCRT"
|
|
||||||
OutputFile="..\..\ColladaDemo.exe"
|
|
||||||
SubSystem="1"
|
|
||||||
AdditionalOptions=" "
|
AdditionalOptions=" "
|
||||||
AdditionalDependencies="glut32.lib"
|
AdditionalDependencies="glut32.lib"
|
||||||
IgnoreImportLibrary="TRUE"
|
OutputFile="..\..\ColladaDemo.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories="..\..\Glut"
|
AdditionalLibraryDirectories="..\..\Glut"
|
||||||
|
IgnoreDefaultLibraryNames="LIBC,LIBCD,LIBCMT,LIBCMTD,MSVCRT"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile="..\..\out\debug71\build\appColladaDemo\ColladaDemo.pdb"
|
ProgramDatabaseFile="..\..\out\debug71\build\appColladaDemo\ColladaDemo.pdb"
|
||||||
|
SubSystem="1"
|
||||||
TargetMachine="1"/>
|
TargetMachine="1"/>
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
SuppressStartupBanner="TRUE"/>
|
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
PreprocessorDefinitions="_DEBUG;_CONSOLE"
|
PreprocessorDefinitions="_DEBUG;_CONSOLE"
|
||||||
@@ -143,8 +142,7 @@
|
|||||||
TargetEnvironment="1"
|
TargetEnvironment="1"
|
||||||
TypeLibraryName="..\..\out\debug71\build\appColladaDemo\appColladaDemo.tlb"/>
|
TypeLibraryName="..\..\out\debug71\build\appColladaDemo\appColladaDemo.tlb"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"/>
|
||||||
/>
|
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"/>
|
Name="VCPreBuildEventTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
@@ -152,14 +150,22 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCResourceCompilerTool"
|
Name="VCResourceCompilerTool"
|
||||||
PreprocessorDefinitions="_DEBUG;_CONSOLE;PROJECTGEN_VERSION=71"
|
PreprocessorDefinitions="_DEBUG;_CONSOLE;PROJECTGEN_VERSION=71"
|
||||||
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics"
|
Culture="1033"
|
||||||
Culture="1033"/>
|
AdditionalIncludeDirectories=".;..\..;..\..\Bullet;..\..\BulletDynamics;..\..\LinearMath;..\..\Extras\PhysicsInterface\Common;..\..\Extras\ConvexDecomposition;..\..\Glut;..\..\Demos\OpenGL;..\..\Extras\PhysicsInterface\CcdPhysics"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCWebServiceProxyGeneratorTool"/>
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCWebDeploymentTool"/>
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
<Files>
|
<Files>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Source Files"
|
Name="Source Files"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user