lonchinkao / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

RayHandler on box2dlight+latest libgdx #313

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.public RayHandler rays;
2.world = new World(new Vector2(0, 0), true);
3.rays = new RayHandler(world);

What is the expected output? What do you see instead?
Expect to at the output object type of RayHandler. Instead that:

Exception in thread "LWJGL Application" 
com.badlogic.gdx.utils.GdxRuntimeException: java.lang.IllegalArgumentException: 
color attribute must have 4 components
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:113)
Caused by: java.lang.IllegalArgumentException: color attribute must have 4 
components
    at com.badlogic.gdx.graphics.VertexAttributes.checkValidity(VertexAttributes.java:104)
    at com.badlogic.gdx.graphics.VertexAttributes.<init>(VertexAttributes.java:52)
    at com.badlogic.gdx.graphics.glutils.VertexBufferObject.<init>(VertexBufferObject.java:73)
    at com.badlogic.gdx.graphics.Mesh.<init>(Mesh.java:95)
    at box2dLight.RayHandler.<init>(RayHandler.java:120)
    at box2dLight.RayHandler.<init>(RayHandler.java:87)
    at stable.house15.TestingStableVersion.level.<init>(level.java:54)

What version of libgdx are you using? If not using the master git
branch, please try that before filing a bug.

Latest version of libgdx and box2dlights (29 May 2013) on Ubuntu 13.10

Please provide any additional information below.

A similar problem described here:

https://code.google.com/p/box2dlights/issues/detail?can=1&start=0&num=100&q=&col
spec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&
id=15

,but there was another type of exception. Decision has yet been forthcoming.

Original issue reported on code.google.com by Terran20...@gmail.com on 13 Jul 2013 at 8:37

GoogleCodeExporter commented 8 years ago
Isn't this a question for the libGDX forums?

Original comment by iforc...@gmail.com on 18 Jul 2013 at 5:10

GoogleCodeExporter commented 8 years ago
Nope. I already asked that question there. They say, if it's box2d issue, 
question must be posted here.

Proof:http://code.google.com/p/libgdx/issues/detail?id=1572

Original comment by Terran20...@gmail.com on 18 Jul 2013 at 5:56

GoogleCodeExporter commented 8 years ago
Not a C++ Box2D issue.

Original comment by erinca...@gmail.com on 28 Oct 2013 at 5:57