2015-05-28 23:05:24 +00:00
|
|
|
|
2017-02-24 23:34:11 +00:00
|
|
|
project "App_PhysicsServer_SharedMemory"
|
2015-05-28 23:05:24 +00:00
|
|
|
|
|
|
|
if _OPTIONS["ios"] then
|
|
|
|
kind "WindowedApp"
|
|
|
|
else
|
|
|
|
kind "ConsoleApp"
|
|
|
|
end
|
|
|
|
|
2017-09-23 02:17:57 +00:00
|
|
|
includedirs {".","../../src", "../ThirdPartyLibs"}
|
2015-05-28 23:05:24 +00:00
|
|
|
|
|
|
|
links {
|
2018-01-09 20:23:25 +00:00
|
|
|
"BulletSoftBody", "Bullet3Common","BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision", "LinearMath", "BussIK"
|
2015-05-28 23:05:24 +00:00
|
|
|
}
|
2018-02-10 02:46:26 +00:00
|
|
|
if os.is("Linux") then
|
|
|
|
links{"dl"}
|
|
|
|
end
|
2015-05-28 23:05:24 +00:00
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
2016-07-03 01:53:19 +00:00
|
|
|
myfiles =
|
|
|
|
{
|
2018-06-05 22:59:01 +00:00
|
|
|
"b3RobotSimulatorClientAPI_NoDirect.cpp",
|
|
|
|
"b3RobotSimulatorClientAPI_NoDirect.h",
|
2016-09-08 22:15:58 +00:00
|
|
|
"IKTrajectoryHelper.cpp",
|
|
|
|
"IKTrajectoryHelper.h",
|
2015-09-17 06:09:10 +00:00
|
|
|
"PhysicsClient.cpp",
|
2015-09-25 05:50:34 +00:00
|
|
|
"PhysicsClientSharedMemory.cpp",
|
2015-09-17 06:09:10 +00:00
|
|
|
"PhysicsClientExample.cpp",
|
|
|
|
"PhysicsServerExample.cpp",
|
2017-05-31 02:54:55 +00:00
|
|
|
"PhysicsServerExampleBullet2.cpp",
|
2015-11-23 04:50:32 +00:00
|
|
|
"PhysicsServerSharedMemory.cpp",
|
|
|
|
"PhysicsServerSharedMemory.h",
|
|
|
|
"PhysicsServer.cpp",
|
|
|
|
"PhysicsServer.h",
|
2015-09-17 06:09:10 +00:00
|
|
|
"PhysicsClientC_API.cpp",
|
2019-06-14 06:24:22 +00:00
|
|
|
"GraphicsClientExample.cpp",
|
|
|
|
"GraphicsClientExample.h",
|
|
|
|
"GraphicsServerExample.cpp",
|
|
|
|
"GraphicsServerExample.h",
|
|
|
|
"GraphicsSharedMemoryBlock.h",
|
|
|
|
"GraphicsSharedMemoryCommands.h",
|
|
|
|
"GraphicsSharedMemoryPublic.h",
|
2019-06-14 21:34:56 +00:00
|
|
|
"RemoteGUIHelper.cpp",
|
|
|
|
"RemoteGUIHelper.h",
|
2016-06-27 01:18:30 +00:00
|
|
|
"SharedMemoryCommands.h",
|
|
|
|
"SharedMemoryPublic.h",
|
2015-09-17 06:09:10 +00:00
|
|
|
"PhysicsServer.cpp",
|
|
|
|
"PosixSharedMemory.cpp",
|
|
|
|
"Win32SharedMemory.cpp",
|
2016-03-10 22:36:46 +00:00
|
|
|
"InProcessMemory.cpp",
|
2015-11-23 04:50:32 +00:00
|
|
|
"PhysicsDirect.cpp",
|
|
|
|
"PhysicsDirect.h",
|
|
|
|
"PhysicsDirectC_API.cpp",
|
|
|
|
"PhysicsDirectC_API.h",
|
|
|
|
"PhysicsLoopBack.cpp",
|
|
|
|
"PhysicsLoopBack.h",
|
2015-11-23 16:00:42 +00:00
|
|
|
"PhysicsLoopBackC_API.cpp",
|
|
|
|
"PhysicsLoopBackC_API.h",
|
2016-11-04 20:15:10 +00:00
|
|
|
"PhysicsClientSharedMemory_C_API.cpp",
|
|
|
|
"PhysicsClientSharedMemory_C_API.h",
|
|
|
|
"PhysicsClientSharedMemory2_C_API.cpp",
|
|
|
|
"PhysicsClientSharedMemory2_C_API.h",
|
|
|
|
"PhysicsClientSharedMemory2.cpp",
|
|
|
|
"PhysicsClientSharedMemory2.h",
|
|
|
|
"SharedMemoryCommandProcessor.cpp",
|
|
|
|
"SharedMemoryCommandProcessor.h",
|
2015-11-23 04:50:32 +00:00
|
|
|
"PhysicsServerCommandProcessor.cpp",
|
|
|
|
"PhysicsServerCommandProcessor.h",
|
2017-09-23 02:17:57 +00:00
|
|
|
"b3PluginManager.cpp",
|
|
|
|
"b3PluginManager.h",
|
2018-07-27 13:48:24 +00:00
|
|
|
"plugins/collisionFilterPlugin/collisionFilterPlugin.cpp",
|
2018-06-05 22:59:01 +00:00
|
|
|
"plugins/pdControlPlugin/pdControlPlugin.cpp",
|
|
|
|
"plugins/pdControlPlugin/pdControlPlugin.h",
|
2015-05-29 18:37:21 +00:00
|
|
|
"../Importers/ImportURDFDemo/ConvertRigidBodies2MultiBody.h",
|
|
|
|
"../Importers/ImportURDFDemo/MultiBodyCreationInterface.h",
|
|
|
|
"../Importers/ImportURDFDemo/MyMultiBodyCreator.cpp",
|
|
|
|
"../Importers/ImportURDFDemo/MyMultiBodyCreator.h",
|
2015-07-04 01:17:14 +00:00
|
|
|
"../Importers/ImportURDFDemo/BulletUrdfImporter.cpp",
|
|
|
|
"../Importers/ImportURDFDemo/BulletUrdfImporter.h",
|
|
|
|
"../Importers/ImportURDFDemo/UrdfParser.cpp",
|
2015-06-29 04:21:57 +00:00
|
|
|
"../Importers/ImportURDFDemo/urdfStringSplit.cpp",
|
|
|
|
"../Importers/ImportURDFDemo/UrdfParser.cpp",
|
|
|
|
"../Importers/ImportURDFDemo/UrdfParser.h",
|
2015-05-29 18:37:21 +00:00
|
|
|
"../Importers/ImportURDFDemo/URDF2Bullet.cpp",
|
|
|
|
"../Importers/ImportURDFDemo/URDF2Bullet.h",
|
2016-12-31 22:43:15 +00:00
|
|
|
"../Importers/ImportMJCFDemo/BulletMJCFImporter.cpp",
|
|
|
|
"../Importers/ImportMJCFDemo/BulletMJCFImporter.h",
|
2015-07-04 01:17:14 +00:00
|
|
|
"../Utils/b3ResourcePath.cpp",
|
2017-02-17 18:47:55 +00:00
|
|
|
"../Utils/b3Clock.cpp",
|
|
|
|
"../Utils/RobotLoggingUtil.cpp",
|
|
|
|
"../Utils/RobotLoggingUtil.h",
|
2017-01-30 04:59:47 +00:00
|
|
|
"../Utils/ChromeTraceUtil.cpp",
|
|
|
|
"../Utils/ChromeTraceUtil.h",
|
2015-07-09 21:04:58 +00:00
|
|
|
"../../Extras/Serialize/BulletWorldImporter/*",
|
|
|
|
"../../Extras/Serialize/BulletFileLoader/*",
|
2015-05-29 18:37:21 +00:00
|
|
|
"../Importers/ImportURDFDemo/URDFImporterInterface.h",
|
|
|
|
"../Importers/ImportURDFDemo/URDFJointTypes.h",
|
|
|
|
"../Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp",
|
|
|
|
"../Importers/ImportObjDemo/LoadMeshFromObj.cpp",
|
|
|
|
"../Importers/ImportSTLDemo/ImportSTLSetup.h",
|
|
|
|
"../Importers/ImportSTLDemo/LoadMeshFromSTL.h",
|
|
|
|
"../Importers/ImportColladaDemo/LoadMeshFromCollada.cpp",
|
|
|
|
"../Importers/ImportColladaDemo/ColladaGraphicsInstance.h",
|
|
|
|
"../ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp",
|
2018-04-12 07:09:44 +00:00
|
|
|
"../ThirdPartyLibs/tinyxml2/tinyxml2.cpp",
|
2016-07-08 02:24:44 +00:00
|
|
|
"../Importers/ImportMeshUtility/b3ImportMeshUtility.cpp",
|
2018-09-11 06:18:34 +00:00
|
|
|
"../ThirdPartyLibs/stb_image/stb_image.cpp",
|
|
|
|
"../ThirdPartyLibs/stb_image/stb_image_write.cpp",
|
2017-09-23 02:17:57 +00:00
|
|
|
|
2015-05-28 23:05:24 +00:00
|
|
|
}
|
|
|
|
|
2017-10-25 17:00:45 +00:00
|
|
|
|
2016-07-03 01:53:19 +00:00
|
|
|
files {
|
|
|
|
myfiles,
|
2019-12-11 21:07:53 +00:00
|
|
|
"../OpenGLWindow/SimpleCamera.cpp",
|
|
|
|
"../OpenGLWindow/SimpleCamera.h",
|
2016-07-03 01:53:19 +00:00
|
|
|
"main.cpp",
|
|
|
|
}
|
|
|
|
|
2017-10-25 17:00:45 +00:00
|
|
|
if (_OPTIONS["enable_static_vr_plugin"]) then
|
2017-11-23 02:12:02 +00:00
|
|
|
defines("STATIC_LINK_VR_PLUGIN")
|
2017-10-25 17:00:45 +00:00
|
|
|
files {"plugins/vrSyncPlugin/vrSyncPlugin.cpp"}
|
|
|
|
end
|
|
|
|
|
2018-01-17 20:48:48 +00:00
|
|
|
if (not _OPTIONS["disable_static_tinyrenderer_plugin"]) then
|
|
|
|
files
|
|
|
|
{
|
|
|
|
"plugins/tinyRendererPlugin/tinyRendererPlugin.cpp",
|
|
|
|
"plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.cpp",
|
|
|
|
"../TinyRenderer/geometry.cpp",
|
|
|
|
"../TinyRenderer/model.cpp",
|
|
|
|
"../TinyRenderer/tgaimage.cpp",
|
|
|
|
"../TinyRenderer/our_gl.cpp",
|
|
|
|
"../TinyRenderer/TinyRenderer.cpp"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
defines("SKIP_STATIC_TINYRENDERER_PLUGIN")
|
|
|
|
end
|
2016-07-03 01:53:19 +00:00
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
files {
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.cpp",
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.h"
|
|
|
|
}
|
|
|
|
if os.is("Windows") then
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.h"
|
|
|
|
}
|
|
|
|
--links {"winmm"}
|
|
|
|
--defines {"__WINDOWS_MM__", "WIN32"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {"pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.h"
|
|
|
|
}
|
2016-07-03 01:53:19 +00:00
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
links {"pthread"}
|
|
|
|
--links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
|
|
|
--defines {"__MACOSX_CORE__"}
|
|
|
|
end
|
2016-07-03 01:53:19 +00:00
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
|
2017-02-24 23:34:11 +00:00
|
|
|
project "App_PhysicsServer_SharedMemory_GUI"
|
2016-07-03 01:53:19 +00:00
|
|
|
|
|
|
|
if _OPTIONS["ios"] then
|
2016-07-08 02:24:44 +00:00
|
|
|
kind "WindowedApp"
|
|
|
|
else
|
|
|
|
kind "ConsoleApp"
|
2016-07-03 01:53:19 +00:00
|
|
|
end
|
2016-07-08 02:24:44 +00:00
|
|
|
defines {"B3_USE_STANDALONE_EXAMPLE"}
|
|
|
|
|
2016-09-08 22:15:58 +00:00
|
|
|
includedirs {"../../src", "../ThirdPartyLibs"}
|
2016-07-03 01:53:19 +00:00
|
|
|
|
|
|
|
links {
|
2018-01-09 20:23:25 +00:00
|
|
|
"BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision", "LinearMath", "OpenGL_Window","Bullet3Common","BussIK"
|
2016-07-03 01:53:19 +00:00
|
|
|
}
|
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
language "C++"
|
2016-07-03 01:53:19 +00:00
|
|
|
|
2016-11-17 00:12:59 +00:00
|
|
|
if _OPTIONS["midi"] then
|
|
|
|
|
|
|
|
defines {"B3_USE_MIDI"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includedirs{"../ThirdPartyLibs/midi"}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../ThirdPartyLibs/midi/RtMidi.cpp",
|
|
|
|
"../ThirdPartyLibs/midi/RtMidi.h",
|
|
|
|
"../ThirdPartyLibs/midi/RtError.h",
|
|
|
|
}
|
|
|
|
if os.is("Windows") then
|
|
|
|
links {"winmm"}
|
|
|
|
defines {"__WINDOWS_MM__", "WIN32"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
defines {"__LINUX_ALSA__"}
|
|
|
|
links {"asound","pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
|
|
|
defines {"__MACOSX_CORE__"}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2018-01-17 20:48:48 +00:00
|
|
|
if (not _OPTIONS["disable_static_tinyrenderer_plugin"]) then
|
|
|
|
files
|
|
|
|
{
|
|
|
|
"plugins/tinyRendererPlugin/tinyRendererPlugin.cpp",
|
|
|
|
"plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.cpp",
|
|
|
|
"../TinyRenderer/geometry.cpp",
|
|
|
|
"../TinyRenderer/model.cpp",
|
|
|
|
"../TinyRenderer/tgaimage.cpp",
|
|
|
|
"../TinyRenderer/our_gl.cpp",
|
|
|
|
"../TinyRenderer/TinyRenderer.cpp"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
defines("SKIP_STATIC_TINYRENDERER_PLUGIN")
|
|
|
|
end
|
|
|
|
|
2016-11-17 00:12:59 +00:00
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
files {
|
|
|
|
myfiles,
|
|
|
|
"../StandaloneMain/main_opengl_single_example.cpp",
|
2016-07-03 01:53:19 +00:00
|
|
|
"../ExampleBrowser/OpenGLGuiHelper.cpp",
|
|
|
|
"../ExampleBrowser/GL_ShapeDrawer.cpp",
|
|
|
|
"../ExampleBrowser/CollisionShape2TriangleMesh.cpp",
|
|
|
|
}
|
2017-10-25 17:00:45 +00:00
|
|
|
if (_OPTIONS["enable_static_vr_plugin"]) then
|
2017-11-23 02:12:02 +00:00
|
|
|
defines("STATIC_LINK_VR_PLUGIN")
|
2017-10-25 17:00:45 +00:00
|
|
|
files {"plugins/vrSyncPlugin/vrSyncPlugin.cpp"}
|
|
|
|
end
|
|
|
|
|
2016-07-03 01:53:19 +00:00
|
|
|
|
|
|
|
if os.is("Linux") then initX11() end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"Cocoa.framework"}
|
2016-07-08 02:24:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.cpp",
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.h"
|
|
|
|
}
|
|
|
|
if os.is("Windows") then
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.h"
|
|
|
|
}
|
|
|
|
--links {"winmm"}
|
|
|
|
--defines {"__WINDOWS_MM__", "WIN32"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {"pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {"pthread"}
|
|
|
|
--links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
|
|
|
--defines {"__MACOSX_CORE__"}
|
|
|
|
end
|
|
|
|
|
2017-02-24 23:34:11 +00:00
|
|
|
|
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
if os.is("Windows") then
|
2017-02-24 23:34:11 +00:00
|
|
|
project "App_PhysicsServer_SharedMemory_VR"
|
2016-07-08 02:24:44 +00:00
|
|
|
--for now, only enable VR under Windows, until compilation issues are resolved on Mac/Linux
|
|
|
|
defines {"B3_USE_STANDALONE_EXAMPLE","BT_ENABLE_VR"}
|
|
|
|
|
|
|
|
if _OPTIONS["ios"] then
|
|
|
|
kind "WindowedApp"
|
|
|
|
else
|
|
|
|
kind "ConsoleApp"
|
|
|
|
end
|
2016-11-17 00:12:59 +00:00
|
|
|
|
|
|
|
if _OPTIONS["midi"] then
|
2016-07-08 02:24:44 +00:00
|
|
|
|
2016-11-17 00:12:59 +00:00
|
|
|
defines {"B3_USE_MIDI"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includedirs{"../ThirdPartyLibs/midi"}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../ThirdPartyLibs/midi/RtMidi.cpp",
|
|
|
|
"../ThirdPartyLibs/midi/RtMidi.h",
|
|
|
|
"../ThirdPartyLibs/midi/RtError.h",
|
|
|
|
}
|
|
|
|
if os.is("Windows") then
|
|
|
|
links {"winmm"}
|
|
|
|
defines {"__WINDOWS_MM__", "WIN32"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
defines {"__LINUX_ALSA__"}
|
|
|
|
links {"asound","pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
|
|
|
defines {"__MACOSX_CORE__"}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2017-04-29 17:32:30 +00:00
|
|
|
if _OPTIONS["audio"] then
|
|
|
|
files {
|
|
|
|
"../TinyAudio/b3ADSR.cpp",
|
|
|
|
"../TinyAudio/b3AudioListener.cpp",
|
|
|
|
"../TinyAudio/b3ReadWavFile.cpp",
|
|
|
|
"../TinyAudio/b3SoundEngine.cpp",
|
|
|
|
"../TinyAudio/b3SoundSource.cpp",
|
|
|
|
"../TinyAudio/b3WriteWavFile.cpp",
|
|
|
|
"../TinyAudio/RtAudio.cpp",
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {"B3_ENABLE_TINY_AUDIO"}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
|
|
|
links {"winmm","Wsock32","dsound"}
|
|
|
|
defines {"WIN32","__WINDOWS_MM__","__WINDOWS_DS__"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then initX11()
|
|
|
|
defines {"__OS_LINUX__","__LINUX_ALSA__"}
|
|
|
|
links {"asound","pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"Cocoa.framework"}
|
|
|
|
links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
|
|
|
defines {"__OS_MACOSX__","__MACOSX_CORE__"}
|
|
|
|
end
|
|
|
|
end
|
2016-07-08 02:24:44 +00:00
|
|
|
includedirs {
|
|
|
|
".","../../src", "../ThirdPartyLibs",
|
|
|
|
"../ThirdPartyLibs/openvr/headers",
|
|
|
|
"../ThirdPartyLibs/openvr/samples/shared"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {
|
2018-01-09 20:23:25 +00:00
|
|
|
"BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics","Bullet3Common", "BulletDynamics","BulletCollision", "LinearMath","OpenGL_Window","openvr_api","BussIK"
|
2016-07-08 02:24:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
|
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
2018-01-17 20:48:48 +00:00
|
|
|
if (not _OPTIONS["disable_static_tinyrenderer_plugin"]) then
|
|
|
|
files
|
|
|
|
{
|
|
|
|
"plugins/tinyRendererPlugin/tinyRendererPlugin.cpp",
|
|
|
|
"plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.cpp",
|
|
|
|
"../TinyRenderer/geometry.cpp",
|
|
|
|
"../TinyRenderer/model.cpp",
|
|
|
|
"../TinyRenderer/tgaimage.cpp",
|
|
|
|
"../TinyRenderer/our_gl.cpp",
|
|
|
|
"../TinyRenderer/TinyRenderer.cpp"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
defines("SKIP_STATIC_TINYRENDERER_PLUGIN")
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
files
|
|
|
|
{
|
|
|
|
myfiles,
|
|
|
|
"../StandaloneMain/hellovr_opengl_main.cpp",
|
|
|
|
"../ExampleBrowser/OpenGLGuiHelper.cpp",
|
|
|
|
"../ExampleBrowser/GL_ShapeDrawer.cpp",
|
|
|
|
"../ExampleBrowser/CollisionShape2TriangleMesh.cpp",
|
2016-10-14 22:06:09 +00:00
|
|
|
"../RenderingExamples/TinyVRGui.cpp",
|
|
|
|
"../RenderingExamples/TimeSeriesCanvas.cpp",
|
|
|
|
"../RenderingExamples/TimeSeriesFontData.cpp",
|
2016-07-08 02:24:44 +00:00
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/lodepng.cpp",
|
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/lodepng.h",
|
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/Matrices.cpp",
|
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/Matrices.h",
|
2017-05-03 15:40:29 +00:00
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/strtools.cpp",
|
2016-07-08 02:24:44 +00:00
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/pathtools.cpp",
|
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/pathtools.h",
|
|
|
|
"../ThirdPartyLibs/openvr/samples/shared/Vectors.h",
|
|
|
|
}
|
2017-10-25 17:00:45 +00:00
|
|
|
if (_OPTIONS["enable_static_vr_plugin"]) then
|
2017-11-23 02:12:02 +00:00
|
|
|
defines("STATIC_LINK_VR_PLUGIN")
|
2017-10-25 17:00:45 +00:00
|
|
|
files {"plugins/vrSyncPlugin/vrSyncPlugin.cpp"}
|
|
|
|
end
|
|
|
|
|
2016-07-08 02:24:44 +00:00
|
|
|
if os.is("Windows") then
|
2017-02-22 23:50:09 +00:00
|
|
|
configuration {"x32"}
|
|
|
|
libdirs {"../ThirdPartyLibs/openvr/lib/win32"}
|
|
|
|
configuration {"x64"}
|
|
|
|
libdirs {"../ThirdPartyLibs/openvr/lib/win64"}
|
|
|
|
configuration{}
|
2016-07-08 02:24:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then initX11() end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links{"Cocoa.framework"}
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.cpp",
|
|
|
|
"../MultiThreading/b3ThreadSupportInterface.h"
|
|
|
|
}
|
|
|
|
if os.is("Windows") then
|
|
|
|
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3Win32ThreadSupport.h"
|
|
|
|
}
|
|
|
|
--links {"winmm"}
|
|
|
|
--defines {"__WINDOWS_MM__", "WIN32"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {"pthread"}
|
|
|
|
end
|
|
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
files {
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.cpp",
|
|
|
|
"../MultiThreading/b3PosixThreadSupport.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {"pthread"}
|
|
|
|
--links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"}
|
|
|
|
--defines {"__MACOSX_CORE__"}
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2016-11-04 20:15:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
include "udp"
|
2017-02-20 22:43:01 +00:00
|
|
|
include "tcp"
|
2018-08-30 04:12:13 +00:00
|
|
|
|
2017-09-23 02:17:57 +00:00
|
|
|
include "plugins/testPlugin"
|
2017-09-26 01:14:50 +00:00
|
|
|
include "plugins/vrSyncPlugin"
|
2018-01-17 20:48:48 +00:00
|
|
|
include "plugins/tinyRendererPlugin"
|
2017-09-26 01:14:50 +00:00
|
|
|
|
2018-06-05 01:41:41 +00:00
|
|
|
include "plugins/pdControlPlugin"
|
|
|
|
include "plugins/collisionFilterPlugin"
|
|
|
|
|
Thanks to @dchichkov for some of the fixes in the eglRendererPlugin!
Rename tinyRenderer -> eglRenderer in the eglRendererPlugin.
Allow to run the eglRendererPlugin to run on Windows (not in EGL mode but Win32OpenGLWindow mode)
Here is a script I tested on Windows:
~~~~~~~~~~~~
mport pybullet as p
import time
p.connect(p.DIRECT)
plugin = p.loadPlugin("e:/develop/bullet3/bin/pybullet_eglRendererPlugin_vs2010_x64_debug.dll","_eglRendererPlugin")
print("plugin=",plugin)
p.setGravity(0,0,-10)
p.loadURDF("plane.urdf",[0,0,-1])
p.loadURDF("r2d2.urdf")
pixelWidth = 320
pixelHeight = 220
while (1):
p.stepSimulation()
viewMatrix = [1.0, 0.0, -0.0, 0.0, -0.0, 0.1736481785774231, -0.9848078489303589, 0.0, 0.0, 0.9848078489303589, 0.1736481785774231, 0.0, -0.0, -5.960464477539063e-08, -4.0, 1.0]
projectionMatrix = [1.0825318098068237, 0.0, 0.0, 0.0, 0.0, 1.732050895690918, 0.0, 0.0, 0.0, 0.0, -1.0002000331878662, -1.0, 0.0, 0.0, -0.020002000033855438, 0.0]
#img_arr = p.getCameraImage(pixelWidth, pixelHeight, viewMatrix,projectionMatrix, shadow=1,lightDirection=[1,1,1])#,renderer=pybullet.ER_BULLET_HARDWARE_OPENGL)
img_arr = p.getCameraImage(pixelWidth, pixelHeight, shadow=1,lightDirection=[1,1,1])#,renderer=pybullet.ER_BULLET_HARDWARE_OPENGL)
#print("img_arr=",img_arr)
time.sleep(1)
~~~~~~~~~~~~~
2018-09-09 20:37:49 +00:00
|
|
|
if _OPTIONS["enable_egl"] then
|
|
|
|
include "plugins/eglPlugin"
|
|
|
|
end
|
|
|
|
|
2018-09-04 21:49:12 +00:00
|
|
|
if _OPTIONS["enable_grpc"] then
|
2018-08-30 04:12:13 +00:00
|
|
|
include "grpc"
|
2018-09-06 00:58:14 +00:00
|
|
|
include "plugins/grpcPlugin"
|
2018-09-04 21:49:12 +00:00
|
|
|
end
|