Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualheadbanger

Posted 10 October 2012 - 01:41 AM

Hello everyone. Need some direction on 3d point cloud display using openGl in c++ (vs2008). I am brand new to openGl and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size 1024x512) representing x,y,z of each point. I think I am on the right track with


> glBegin(GL_POLYGON);
> for(int i=0; i<1024; i++)
> {
> for(int j=0; j<512; j++)
> {
> glVertex3f(x[i][j], y[i][j], z[i][j]);
> }
> }
> glEnd();

EDIT: SORRY for putting in code in the text like this. for some reason only first two line of my code were showing using the code tags.

Now this loads all the vertices in the buffer (i think) but from here I am not sure how to proceed. Or I am completely wrong here.
Then I have another 2D array (same size) that contains color data (values from 0-255) that I want to use as texture on the 3D point cloud and display.

I understand that this maybe a very basic opengl implementation for some but for me this is a huge learning curve. So any pointers, nudge or kick in the right direction will be appreciated.

#6headbanger

Posted 10 October 2012 - 12:47 AM

Hello everyone. Need some direction on 3d point cloud display using openGl in c++ (vs2008). I am brand new to openGl and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size 1024x512) representing x,y,z of each point. I think I am on the right track with


> glBegin(GL_POLYGON);
> for(int i=0; i<1024; i++)
> {
> for(int j=0; j<512; j++)
> {
> glVertex3f(x[i][j], y[i][j], z[i][j]);
> }
> }
> glEnd();

EDIT: SORRY for putting in code in the text like this. for some reason only first two line of my code were showing using the code tags.

Now this loads all the vertices in the buffer (i think) but from here I am not sure how to proceed. Or I am completely wrong here.
Then I have another 2D array (same size) that contains color data (values from 0-255) that I want to use as texture on the 3D point cloud and display.

I understand that this maybe a very basic opengl implementation for some but for me this is a huge learning curve. So any pointers, nudge or kick in the right direction will be appreciated.

#5headbanger

Posted 10 October 2012 - 12:39 AM

Hello everyone. Need some direction on 3d point cloud display using openGl in c++ (vs2008). I am brand new to openGl and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size 1024x512) representing x,y,z of each point. I think I am on the right track with

[source lang="cpp"]glBegin(GL_POLYGON);for(int i=0; i<1024; i++){ for(int j=0; j<512; j++) { glVertex3f(x[i][j], y[i][j], z[i][j]); }} } glEnd();[/source]

[source lang="cpp"]glBegin(GL_POLYGON);for(int i=0; i<1024; i++){ for(int j=0; j<512; j++) { glVertex3f(x[i][j], y[i][j], z[i][j]); }} } glEnd();[/source]
Now this loads all the vertices in the buffer (i think) but from here I am not sure how to proceed. Or I am completely wrong here.
Then I have another 2D array (same size) that contains color data (values from 0-255) that I want to use as texture on the 3D point cloud and display.

I understand that this maybe a very basic opengl implementation for some but for me this is a huge learning curve. So any pointers, nudge or kick in the right direction will be appreciated.

#4headbanger

Posted 10 October 2012 - 12:39 AM

Hello everyone. Need some direction on 3d point cloud display using openGl in c++ (vs2008). I am brand new to openGl and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size 1024x512) representing x,y,z of each point. I think I am on the right track with

[source lang="cpp"]glBegin(GL_POLYGON);for(int i=0; i<1024; i++){ for(int j=0; j<512; j++) { glVertex3f(x[i][j], y[i][j], z[i][j]); }} } glEnd();[/source]

[source lang="cpp"]glBegin(GL_POLYGON);for(int i=0; i<1024; i++){ for(int j=0; j<512; j++) { glVertex3f(x[i][j], y[i][j], z[i][j]); }} } glEnd();[/source]
Now this loads all the vertices in the buffer (i think) but from here I am not sure how to proceed. Or I am completely wrong here.
Then I have another 2D array (same size) that contains color data (values from 0-255) that I want to use as texture on the 3D point cloud and display.

I understand that this maybe a very basic opengl implementation for some but for me this is a huge learning curve. So any pointers, nudge or kick in the right direction will be appreciated.

#3headbanger

Posted 10 October 2012 - 12:38 AM

Hello everyone. Need some direction on 3d point cloud display using openGl in c++ (vs2008). I am brand new to openGl and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size 1024x512) representing x,y,z of each point. I think I am on the right track with

[source lang="cpp"]glBegin(GL_POLYGON);for(int i=0; i<1024; i++){ for(int j=0; j<512; j++) { glVertex3f(x[i][j], y[i][j], z[i][j]); }} } glEnd();[/source]
Now this loads all the vertices in the buffer (i think) but from here I am not sure how to proceed. Or I am completely wrong here.
Then I have another 2D array (same size) that contains color data (values from 0-255) that I want to use as texture on the 3D point cloud and display.

I understand that this maybe a very basic opengl implementation for some but for me this is a huge learning curve. So any pointers, nudge or kick in the right direction will be appreciated.

#2headbanger

Posted 10 October 2012 - 12:35 AM

Hello everyone. Need some direction on 3d point cloud display using openGl in c++ (vs2008). I am brand new to openGl and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size 1024x512) representing x,y,z of each point. I think I am on the right track with

[source lang="cpp"]glBegin(GL_POLYGON);for(int i=0; i<1024; i++){ for(int j=0; j<512; j++) { glVertex3f(x[i][j], y[i][j], z[i][j]); }} } glEnd();[/source]
Now this loads all the vertices in the buffer (i think) but from here I am not sure how to proceed. Or I am completely wrong here.
Then I have another 2D array (same size) that contains color data (values from 0-255) that I want to use as texture on the 3D point cloud and display.

I understand that this maybe a very basic opengl implementation for some but for me this is a huge learning curve. So any pointers, nudge or kick in the right direction will be appreciated.

PARTNERS