Soo I asked this question already on stackoverflow but gouessej suggested I post this here as well.
I'm currently using OpenGL2 for one of my projects and I want to render a PointCloud. I can also already display the points at the correct positions but I have a problem with the colors. Since I am using WorldWind I cant use shaders to solve the problem and it's hard to post a simple example that you can just copy and paste to see what my code does.
I can post my render method and the different attempts I tried.
//interleaveArrays Method just interleaves the color and vertex arrays.
// It looks like this as example : 0.8f , 0.0f, 0.7f, <- colorValues
// 0.75f, 0.3f, 0.4f <- vertexPositions
// and so on...
InterleavedBuf = Buffers.newDirectFloatBuffer(interleaveArrays(normalizeColors(colorValues),vertex_positions));
Both of these attempts yield the same result. I can see the points at the correct position but they are just grey. And yes I also checked my color values and they are not grey :D.
I will try to render my PointCloud with color in a normal GLWindow and not in WorldWind to see if WorldWind may be causing problems later.
Ok so I tried out the 2nd Code example in a normal GLCanvas and it has color. So the problem has to be somewhere in WorldWind. I'm gonna post some OpenGL Code later that WorldWind uses maybe someone knows what's wrong ^^. Gonna try out some stuff myself first.
Hmm I couldn't find anything yet and I guess this is quite specific to WorldWind. Sad thing is the WorldWindJava Forum is pretty much dead and I couldn't find any posts related to my problem yet. I guess I have to keep searching for a solution ^^;.
I found a solution yesterday. I made my own Layer and only implemented the doRender method from the AbstractLayer it extends. Then I removed the begin- & endStandardlighting calls in my render method(In the WorldWind CustomRenderable tutorial it says that you need this) and it works now :). I finally have color :D. Thank you for your help I really appreciate it.