The radius of the problem on the PointLight?


Hello everybody~~
JME Version:(Both versions are tried)
jME3_06-17-2010/jME3_06-01-2010

code1:
       pl = new PointLight();
       pl.setColor(new ColorRGBA(1, 1f, 1f, 0));
       pl.setPosition(new Vector3f(0, 40, 0));
       pl.setRadius(5f);
       rootNode.addLight(pl);
code2:
       pl = new PointLight();
       pl.setColor(new ColorRGBA(1, 1f, 1f, 0));
       pl.setPosition(new Vector3f(0, 40, 0));
       pl.setRadius(20f);
       rootNode.addLight(pl);

The results of these two codes are identical...
I tried many different values of the radius. . But when the program runs, the results show is the same~~~ :'(
So .. I want to know how to control the scope of PointLight!

Having said that .. I also take this opportunity to ask More details on JME3 light. ;)
Please see below a few pictures.
Exactly the same code, just using different JME jar.

CODE:
       dl = new DirectionalLight();
       dl.setDirection(new Vector3f(-1f, -1, -1).normalizeLocal());
       dl.setColor(new ColorRGBA(1f, 1f, 1f, 1f));
       rootNode.addLight(dl);

       p1 = new PointLight();
       p1.setColor(new ColorRGBA(1, 1f, 1f, 0));
       p1.setPosition(new Vector3f(0, 200, 0));
       p1.setRadius(1f);
//        rootNode.addLight(p1);
This is PointLight (jME3_06-01-2010)

This is PointLight too.(jME3_06-17-2010)

This is DirectionalLight (jME3_06-01-2010)

This is DirectionalLight too (jME3_06-17-2010)


I just think that changes a little bit too much, and I think the new version of the light is not easy to use.
Whether old or new Light System, I can not set the radius of PointLight~~ :x

:?

Your pictures aren't loading, which makes it difficult to help.  :expressionless:

I (almost) fixed this issue. Please be patient :slight_smile:

Momoko_Fan said:

I (almost) fixed this issue. Please be patient :)

OK。。Thanks!! :D

Fixed in SVN :slight_smile:

See TestLightRadius