<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Point Cloud Example in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511350#M6624</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just trying to run the point cloud example that comes with the binary sdk 2.1 (most recent binary) install in visual studio but I am getting a build error to do with a function it is using in example.cpp. (Does not take 4 arguments)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;draw_pointcloud(app.width(), app.height(), app_state, points);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function in example.cpp is as follows which only takes 3 parameters. Am I missing something? Is there a problem with the binary install 2.1 SDK? Anyone able to shine a light on this? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Handles all the OpenGL calls needed to display the point cloud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;void draw_pointcloud(window&amp;amp; app, glfw_state&amp;amp; app_state, rs2::points&amp;amp; points)&lt;P&gt;&amp;nbsp;&lt;/P&gt;{&lt;P&gt;&amp;nbsp;&lt;/P&gt;    if (!points)&lt;P&gt;&amp;nbsp;&lt;/P&gt;        return;&lt;P&gt;    // OpenGL commands that prep screen for the pointcloud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushAttrib(GL_ALL_ATTRIB_BITS);&lt;P&gt;    float width = app.width(), height = app.height();&lt;/P&gt;&lt;P&gt;    glClearColor(153.f / 255, 153.f / 255, 153.f / 255, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glClear(GL_DEPTH_BUFFER_BIT);&lt;P&gt;    glMatrixMode(GL_PROJECTION);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    gluPerspective(60, width / height, 0.01f, 10.0f);&lt;P&gt;    glMatrixMode(GL_MODELVIEW);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    gluLookAt(0, 0, 0, 0, 0, 1, 0, -1, 0);&lt;P&gt;    glTranslatef(0, 0, +0.5f + app_state.offset_y*0.05f);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glRotated(app_state.pitch, 1, 0, 0);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glRotated(app_state.yaw, 0, 1, 0);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTranslatef(0, 0, -0.5f);&lt;P&gt;    glPointSize(width / 640);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glEnable(GL_DEPTH_TEST);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glEnable(GL_TEXTURE_2D);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glBindTexture(GL_TEXTURE_2D, app_state.tex.get_gl_handle());&lt;P&gt;&amp;nbsp;&lt;/P&gt;    float tex_border_color[] = { 0.8f, 0.8f, 0.8f, 0.8f };&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, tex_border_color);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 0x812F); // GL_CLAMP_TO_EDGE&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 0x812F); // GL_CLAMP_TO_EDGE&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glBegin(GL_POINTS);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    /* this segment actually prints the pointcloud */&lt;P&gt;&amp;nbsp;&lt;/P&gt;    auto vertices = points.get_vertices();              // get vertices&lt;P&gt;&amp;nbsp;&lt;/P&gt;    auto tex_coords = points.get_texture_coordinates(); // and texture coordinates&lt;P&gt;&amp;nbsp;&lt;/P&gt;    for (int i = 0; i &amp;lt; points.size(); i++)&lt;P&gt;&amp;nbsp;&lt;/P&gt;    {&lt;P&gt;&amp;nbsp;&lt;/P&gt;        if (vertices[i].z)&lt;P&gt;&amp;nbsp;&lt;/P&gt;        {&lt;P&gt;&amp;nbsp;&lt;/P&gt;            // upload the point and texture coordinates only for points we have depth data for&lt;P&gt;&amp;nbsp;&lt;/P&gt;            glVertex3fv(vertices[i]);&lt;P&gt;&amp;nbsp;&lt;/P&gt;            glTexCoord2fv(tex_coords[i]);&lt;P&gt;&amp;nbsp;&lt;/P&gt;        }&lt;P&gt;&amp;nbsp;&lt;/P&gt;    }&lt;P&gt;    // OpenGL cleanup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glEnd();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glMatrixMode(GL_PROJECTION);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopAttrib();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;}</description>
    <pubDate>Tue, 27 Feb 2018 17:40:35 GMT</pubDate>
    <dc:creator>JTray</dc:creator>
    <dc:date>2018-02-27T17:40:35Z</dc:date>
    <item>
      <title>Point Cloud Example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511350#M6624</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just trying to run the point cloud example that comes with the binary sdk 2.1 (most recent binary) install in visual studio but I am getting a build error to do with a function it is using in example.cpp. (Does not take 4 arguments)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;draw_pointcloud(app.width(), app.height(), app_state, points);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function in example.cpp is as follows which only takes 3 parameters. Am I missing something? Is there a problem with the binary install 2.1 SDK? Anyone able to shine a light on this? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Handles all the OpenGL calls needed to display the point cloud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;void draw_pointcloud(window&amp;amp; app, glfw_state&amp;amp; app_state, rs2::points&amp;amp; points)&lt;P&gt;&amp;nbsp;&lt;/P&gt;{&lt;P&gt;&amp;nbsp;&lt;/P&gt;    if (!points)&lt;P&gt;&amp;nbsp;&lt;/P&gt;        return;&lt;P&gt;    // OpenGL commands that prep screen for the pointcloud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushAttrib(GL_ALL_ATTRIB_BITS);&lt;P&gt;    float width = app.width(), height = app.height();&lt;/P&gt;&lt;P&gt;    glClearColor(153.f / 255, 153.f / 255, 153.f / 255, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glClear(GL_DEPTH_BUFFER_BIT);&lt;P&gt;    glMatrixMode(GL_PROJECTION);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    gluPerspective(60, width / height, 0.01f, 10.0f);&lt;P&gt;    glMatrixMode(GL_MODELVIEW);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    gluLookAt(0, 0, 0, 0, 0, 1, 0, -1, 0);&lt;P&gt;    glTranslatef(0, 0, +0.5f + app_state.offset_y*0.05f);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glRotated(app_state.pitch, 1, 0, 0);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glRotated(app_state.yaw, 0, 1, 0);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTranslatef(0, 0, -0.5f);&lt;P&gt;    glPointSize(width / 640);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glEnable(GL_DEPTH_TEST);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glEnable(GL_TEXTURE_2D);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glBindTexture(GL_TEXTURE_2D, app_state.tex.get_gl_handle());&lt;P&gt;&amp;nbsp;&lt;/P&gt;    float tex_border_color[] = { 0.8f, 0.8f, 0.8f, 0.8f };&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, tex_border_color);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 0x812F); // GL_CLAMP_TO_EDGE&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 0x812F); // GL_CLAMP_TO_EDGE&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glBegin(GL_POINTS);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    /* this segment actually prints the pointcloud */&lt;P&gt;&amp;nbsp;&lt;/P&gt;    auto vertices = points.get_vertices();              // get vertices&lt;P&gt;&amp;nbsp;&lt;/P&gt;    auto tex_coords = points.get_texture_coordinates(); // and texture coordinates&lt;P&gt;&amp;nbsp;&lt;/P&gt;    for (int i = 0; i &amp;lt; points.size(); i++)&lt;P&gt;&amp;nbsp;&lt;/P&gt;    {&lt;P&gt;&amp;nbsp;&lt;/P&gt;        if (vertices[i].z)&lt;P&gt;&amp;nbsp;&lt;/P&gt;        {&lt;P&gt;&amp;nbsp;&lt;/P&gt;            // upload the point and texture coordinates only for points we have depth data for&lt;P&gt;&amp;nbsp;&lt;/P&gt;            glVertex3fv(vertices[i]);&lt;P&gt;&amp;nbsp;&lt;/P&gt;            glTexCoord2fv(tex_coords[i]);&lt;P&gt;&amp;nbsp;&lt;/P&gt;        }&lt;P&gt;&amp;nbsp;&lt;/P&gt;    }&lt;P&gt;    // OpenGL cleanup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glEnd();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glMatrixMode(GL_PROJECTION);&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPopAttrib();&lt;P&gt;&amp;nbsp;&lt;/P&gt;    glPushMatrix();&lt;P&gt;&amp;nbsp;&lt;/P&gt;}</description>
      <pubDate>Tue, 27 Feb 2018 17:40:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511350#M6624</guid>
      <dc:creator>JTray</dc:creator>
      <dc:date>2018-02-27T17:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Point Cloud Example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511351#M6625</link>
      <description>&lt;P&gt;Hello TrayJ, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thanks for posting in the RealSense community. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;The error you are been shown is a bug, I have reproduced it on my end. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I have sent the notification to engineering. Thanks for your feedback. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Best Regards, &lt;P&gt;&amp;nbsp;&lt;/P&gt;Juan N.</description>
      <pubDate>Wed, 28 Feb 2018 01:45:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511351#M6625</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-02-28T01:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Point Cloud Example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511352#M6626</link>
      <description>&lt;P&gt;Thanks Juan. If they manage to send you a short term fix you might let me know as I would like an example on how best to draw a point cloud&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:09:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511352#M6626</guid>
      <dc:creator>JTray</dc:creator>
      <dc:date>2018-02-28T02:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Point Cloud Example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511353#M6627</link>
      <description>&lt;P&gt;From the code you pasted [draw_pointcloud(window&amp;amp; app, glfw_state&amp;amp; app_state, rs2::points&amp;amp; points)] it looks like you should be able to pass app instead of app.width() and app.height() - does that work?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:32:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511353#M6627</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2018-02-28T10:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Point Cloud Example</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511354#M6628</link>
      <description>&lt;P&gt;You are correct. I was looking for the complicated solution. I had looked at an older version of the example.cpp file and it was very different to the current version. I thought somehow an older version was uploaded by mistake.  Thanks for the help. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:56:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Point-Cloud-Example/m-p/511354#M6628</guid>
      <dc:creator>JTray</dc:creator>
      <dc:date>2018-02-28T10:56:57Z</dc:date>
    </item>
  </channel>
</rss>

