bullet3/build3
Erwin Coumans 1e8f39b492 improve premake4 build in case X11 headers are missing
improve video_sync_mp4.py example
allow to create a heightfield from file or programmatically in C++ robotics api. Example:

{
		b3RobotSimulatorCreateCollisionShapeArgs shapeArgs;
		shapeArgs.m_shapeType = GEOM_HEIGHTFIELD;
		bool useFile = true;
		if (useFile)
		{
			shapeArgs.m_fileName = "D:/dev/bullet3/data/heightmaps/gimp_overlay_out.png";
			shapeArgs.m_meshScale.setValue(.05, .05, 1);
		}
		else
		{
			shapeArgs.m_numHeightfieldColumns = 256;
			shapeArgs.m_numHeightfieldRows = 256;
			shapeArgs.m_meshScale.setValue(.05, .05, 1);
			shapeArgs.m_heightfieldData.resize(shapeArgs.m_numHeightfieldRows * shapeArgs.m_numHeightfieldColumns);
			double heightPerturbationRange = 0.05;
			for (int j = 0; j<int(shapeArgs.m_numHeightfieldColumns / 2); j++)
			{
				for (int i = 0; i < (int(shapeArgs.m_numHeightfieldRows / 2)); i++)
				{
					double height = ((double)rand() / (RAND_MAX)) * heightPerturbationRange;
					shapeArgs.m_heightfieldData[2 * i + 2 * j * shapeArgs.m_numHeightfieldRows] = height;
					shapeArgs.m_heightfieldData[2 * i + 1 + 2 * j * shapeArgs.m_numHeightfieldRows] = height;
					shapeArgs.m_heightfieldData[2 * i + (2 * j + 1) * shapeArgs.m_numHeightfieldRows] = height;
					shapeArgs.m_heightfieldData[2 * i + 1 + (2 * j + 1) * shapeArgs.m_numHeightfieldRows] = height;
				}
			}
		}
		int shape = sim->createCollisionShape(shapeArgs.m_shapeType, shapeArgs);
		b3RobotSimulatorCreateMultiBodyArgs bodyArgs;
		bodyArgs.m_baseCollisionShapeIndex = shape;
		int groundId = sim->createMultiBody(bodyArgs);
		int texId = sim->loadTexture(shapeArgs.m_fileName);
		b3RobotSimulatorChangeVisualShapeArgs args;
		args.m_objectUniqueId = groundId;
		args.m_linkIndex = -1;
		args.m_textureUniqueId = texId;
		sim->changeVisualShape(args);
	}
2020-07-24 18:09:13 -07:00
..
Android/jni Convert DOS (CRLF) source files to Unix (LF) line endings 2019-05-22 10:01:32 +02:00
cmake add yapf style and apply yapf to format all Python files 2019-04-27 07:31:15 -07:00
bin2cpp.bat add BspDemo.bsp data file 2015-04-16 10:17:35 -07:00
bin2cpp.lua add BspDemo.bsp data file 2015-04-16 10:17:35 -07:00
bullet_ico.ico add Bullet icon files 2013-12-19 12:41:36 -08:00
bullet.rc add Bullet icon files 2013-12-19 12:41:36 -08:00
findDirectX11.lua move build to build3 to avoid naming conflict with Bullet 2.x 2013-06-19 14:54:28 -07:00
findOpenCL.lua don't use the vendor OpenCL sdks (commented out in 'findOpenCL.lua' file), just use clew 2014-01-30 06:05:34 -08:00
findOpenGLGlewGlut.lua improve premake4 build in case X11 headers are missing 2020-07-24 18:09:13 -07:00
lcpp.lua change lcpp Lua preprocessor, to keep #defines and comments, remove empty lines 2013-08-08 12:24:09 -07:00
premake4_arm64 add premake4_arm64 that works on NVIDIA TX2 2017-03-18 18:32:21 +00:00
premake4_linux move build to build3 to avoid naming conflict with Bullet 2.x 2013-06-19 14:54:28 -07:00
premake4_linux64 move build to build3 to avoid naming conflict with Bullet 2.x 2013-06-19 14:54:28 -07:00
premake4_osx update the binary premake4_osx binary, avoid the -Wl,-x flag so clang linker doesn't produce an error 2014-05-16 16:11:59 -07:00
premake4_osx32 allow to compile and run the ExampleBrowser on older Mac OSX versions (without OpenGL3) 2015-05-06 10:35:14 -07:00
premake4.exe move build to build3 to avoid naming conflict with Bullet 2.x 2013-06-19 14:54:28 -07:00
premake4.lua Add --dynamic-runtime option to compile with /MD[d] in MSVC for compat 2020-06-30 17:12:11 +01:00
premake5.exe update premake5.exe (note we still use premake4.exe by default) 2018-12-22 17:55:50 -08:00
stringify.bat Add shader for projective texture. 2018-02-11 21:29:02 -08:00
stringify.sh Add shader for projective texture. 2018-02-11 21:29:02 -08:00
stringifyKernel.lua contact normal should point from B to A (to be consistent with Bullet 2.x) 2013-08-10 12:08:15 -07:00
stringifyShaders.bat PyBullet OpenGL/EGL hardware getCameraImage: use glViewport to reduce the glReadPixels calling cost dramatically for small images 2018-09-30 07:10:40 -07:00