Re: OpenGL2 Can't render points with color
Posted by
FieryToken on
Jan 29, 2021; 8:59am
URL: https://forum.jogamp.org/OpenGL2-Can-t-render-points-with-color-tp4040994p4041004.html
Yes so as you said i removed these two parts:
if(!drawContext.isPickingMode()){
drawContext.beginStandardLighting(); //<---- Evil (`Д´*)
}
if(!drawContext.isPickingMode()){
drawContext.endStandardLighting();
}
And then i also made my own Layer like this:
public class PCloud3DTilesLayer extends AbstractLayer {
PCloud3DTiles pointCloud;
PCloud3DTilesLayer(PCloud3DTiles pointCloud){
this.pointCloud = pointCloud;
}
protected void doRender(DrawContext drawContext) {
if(pointCloud != null){
pointCloud.render(drawContext);
}
}
}
My PCloud3DTiles basically looks kind of like this:
https://worldwind.arc.nasa.gov/java/tutorials/build-a-custom-renderable/Event though you dont need to implement the Renderable Interface anymore if you use your own Layer.
And thats pretty much what fixed it for me :)