expose shadowMapResolution (texture resolution) and shadowMapWorldSize (size in meters in world space)
expose pybullet.ConfigureOpenGLVisualizerRequest(lightPosition=[x,y,z], shadowMapWorldSize=10.5, shadowMapResolution=16384) See examples/pybullet/examples/configureDebugVisualizer.py for an example. This reimplements https://github.com/bulletphysics/bullet3/pull/2295 but without creating a new command/status and explicitly referring to the debug visualizer (since the 'getCameraImage' also has a lightPosition)
This commit is contained in:
@@ -905,6 +905,9 @@ enum InternalOpenGLVisualizerUpdateFlags
|
||||
{
|
||||
COV_SET_CAMERA_VIEW_MATRIX = 1,
|
||||
COV_SET_FLAGS = 2,
|
||||
COV_SET_LIGHT_POSITION = 4,
|
||||
COV_SET_SHADOWMAP_RESOLUTION = 8,
|
||||
COV_SET_SHADOWMAP_WORLD_SIZE = 16,
|
||||
};
|
||||
|
||||
struct ConfigureOpenGLVisualizerRequest
|
||||
@@ -913,7 +916,9 @@ struct ConfigureOpenGLVisualizerRequest
|
||||
double m_cameraPitch;
|
||||
double m_cameraYaw;
|
||||
double m_cameraTargetPosition[3];
|
||||
|
||||
double m_lightPosition[3];
|
||||
int m_shadowMapResolution;
|
||||
int m_shadowMapWorldSize;
|
||||
int m_setFlag;
|
||||
int m_setEnabled;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user