Note: Some of this MIGHT be related to the Cubes framework, then again, it might be Point Light Shadow utils as well.
I really didn’t know whether it was one or the other but I am having quite the hard time with making my shadows look…pretty xD
This is what I have as far as light goes:
[java]
private void initLighting() {
AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.White);
rootNode.addLight(al);
this.rootNode.addLight(this.star.getLight());
PointLightShadowRenderer plsr = new PointLightShadowRenderer(this.assetManager, SHADOWMAP_SIZE);
plsr.setLight(this.star.getLight());
plsr.setEdgeFilteringMode(EdgeFilteringMode.PCF8);
//plsr.setFlushQueues(false);
//plsr.displayFrustum();
//plsr.displayDebug();
this.viewPort.addProcessor(plsr);
PointLightShadowFilter plsf = new PointLightShadowFilter(this.assetManager, SHADOWMAP_SIZE);
plsf.setLight(this.star.getLight());
plsf.setEdgeFilteringMode(EdgeFilteringMode.PCF8);
plsf.setEnabled(true);
FilterPostProcessor fpp = new FilterPostProcessor(this.assetManager);
BloomFilter bloom = new BloomFilter(BloomFilter.GlowMode.Objects);
fpp.addFilter(bloom);
fpp.addFilter(plsf);
this.viewPort.addProcessor(fpp);
}
[/java]
…
[java]
private void generateStar()
{
StarNode = new Node();
Box starsphere = new Box(500,500,500);
this.StarGeometry = new Geometry("Star", starsphere);
Material mat = new Material(Celestial.portal.getAssetManager(), // Create new material and...
"Common/MatDefs/Light/Lighting.j3md");
mat.setColor("Diffuse", new ColorRGBA(247f, 214f, 81f, 0f));
mat.setColor("Ambient", new ColorRGBA(247f, 214f, 81f, 0f));
mat.setColor("Specular", new ColorRGBA(247f, 214f, 81f, 0f));
mat.setColor("GlowColor", new ColorRGBA(247f, 214f, 81f, 0f));
mat.setFloat("Shininess", 5f);
mat.setBoolean("UseMaterialColors",true);
this.StarGeometry.setMaterial(mat);
this.StarNode.attachChild(this.StarGeometry);
this.StarNode.setQueueBucket(Bucket.Opaque);
light = new PointLight();
light.setPosition(location);
light.setColor(ColorRGBA.White);
light.setRadius(65000f);
this.StarNode.addLight(light);
this.StarNode.move(location);
}
[/java]
Is there any fix to this?