PyBullet: explicit sync transform right before hardware OpenGL getCameraImage
This commit is contained in:
@@ -2224,7 +2224,12 @@ void PhysicsServerExample::updateGraphics()
|
|||||||
}
|
}
|
||||||
case eGUIHelperCopyCameraImageData:
|
case eGUIHelperCopyCameraImageData:
|
||||||
{
|
{
|
||||||
B3_PROFILE("eGUIHelperCopyCameraImageData");
|
B3_PROFILE("eGUIHelperCopyCameraImageData");
|
||||||
|
|
||||||
|
if (m_multiThreadedHelper->m_startPixelIndex == 0)
|
||||||
|
{
|
||||||
|
m_physicsServer.syncPhysicsToGraphics();
|
||||||
|
}
|
||||||
|
|
||||||
m_multiThreadedHelper->m_childGuiHelper->copyCameraImageData(m_multiThreadedHelper->m_viewMatrix,
|
m_multiThreadedHelper->m_childGuiHelper->copyCameraImageData(m_multiThreadedHelper->m_viewMatrix,
|
||||||
m_multiThreadedHelper->m_projectionMatrix,
|
m_multiThreadedHelper->m_projectionMatrix,
|
||||||
|
|||||||
Reference in New Issue
Block a user