allow to set color of deformables for debug visualizer

don't render deformables for TinyRenderer/EGL if p.configureDebugVisualizer(p.COV_ENABLE_TINY_RENDERER,0)
Fix segmentation mask in tinyrenderer for deformables
This commit is contained in:
Erwin Coumans
2020-09-12 19:41:10 -07:00
parent d104e4c2e1
commit c58a54174e
3 changed files with 37 additions and 29 deletions

View File

@@ -937,7 +937,7 @@ int TinyRendererVisualShapeConverter::registerShapeAndInstance(const float* vert
}
if (numvertices && numIndices)
{
TinyRenderObjectData* tinyObj = new TinyRenderObjectData(m_data->m_rgbColorBuffer, m_data->m_depthBuffer, &m_data->m_shadowBuffer, &m_data->m_segmentationMaskBuffer, -1, -1);
TinyRenderObjectData* tinyObj = new TinyRenderObjectData(m_data->m_rgbColorBuffer, m_data->m_depthBuffer, &m_data->m_shadowBuffer, &m_data->m_segmentationMaskBuffer, bodyUniqueId, linkIndex);
//those are primary soft bodies, possibly cloth, make them double-sided by default
tinyObj->m_doubleSided = true;
{