Jump to content

  • Log In with Google      Sign In   
  • Create Account


We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.

Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Member Since 10 Oct 2012
Offline Last Active Oct 10 2012 12:20 PM

Posts I've Made

In Topic: opengl 3d point cloud render from x,y,z 2d array with texture

10 October 2012 - 11:34 AM

When you say that the color data consists of values from 0 to 255, do you mean that you have red, green and blue values for each point? In that case you can use glColor3b(red[i][j],green[i][j],blue[i][j]); (if your color arrays are called red,green and blue). I'm actually not sure how to do non-RGB colours in OpenGL so I don't think I can help you if my assumption is incorrect.

No I don't have RGB for each point. I am tring to use the last array as my texture for the 3D point cloud. But first I need to generate the point cloud. That' where I am stuck at. How would I go about generating the point cloud (creat a mesh or a surface????) using the 3 array I have. That's the main question.