PyBullet: explicit sync transform right before hardware OpenGL getCameraImage
This commit is contained in:
@@ -2226,6 +2226,11 @@ void PhysicsServerExample::updateGraphics()
|
|||||||
{
|
{
|
||||||
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,
|
||||||
m_multiThreadedHelper->m_pixelsRGBA,
|
m_multiThreadedHelper->m_pixelsRGBA,
|
||||||
|
|||||||
Reference in New Issue
Block a user