Problem in draw a mask on the road with new driveworks

Hi Nvidia, I have the following code:

typedef struct
  float32_t x;
  float32_t y;
  dwRenderEngineColorRGBA color;
  } Point2D;
Point2D points[1];

points[0].x = xQ;
points[0].y = yQ; //getRandom();

points[0].color = {1.0f, 0.0f, 0.0f, 0.3f};

dwRenderEngine_setPointSize(2.1f, m_renderEngine);

dwRenderEngine_setColor({0.0f, 1.0f, 1.0f, 1.0f}, m_renderEngine);
dwRenderEngine_setColorByValue(DW_RENDER_ENGINE_COLOR_BY_VALUE_MODE_ATTRIBUTE_RGBA, 1.0f, m_renderEngine);

dwRenderEngine_setColor({1.0f, 0.0f, 0.0f, 1.0f}, m_renderEngine);
dwRenderEngine_setColorByValue(DW_RENDER_ENGINE_COLOR_BY_VALUE_MODE_INTENSITY, 1.0f, m_renderEngine);

with this code, I can do this:

but I do not know how to put the camera image in the background along with the mask, so I comment the following code:


dwVector2f range{};
range.x = m_imgGl->prop.width;
range.y = m_imgGl->prop.height;
CHECK_DW_ERROR(dwRenderEngine_setCoordinateRange2D(range, m_renderEngine));
CHECK_DW_ERROR(dwRenderEngine_renderImage2D(m_imgGl, {0.0f, 0.0f, range.x, range.y}, m_renderEngine));


when I remove the comment, the points are rendered in zero positions, i have the following image

Thank you, my English is in the progress.

Dear bruno.araujo,

I found below topics you registered before.

Could you tell me exactly what you are trying to do?

The Mask is for bounding box or segmentation or ?

Did you check sample_object_detector and freespace samples source codes?

Yes, I want to paint road to demonstrating traffic area for the driver. But I did it just using OpenGL.