CCD not working, PSSM shadows display issue

I set the CCD motion threshold to an obscenely small number (Float.MinValue) and it has no impact (ha, ha) on fast objects not colliding. Also, I have an issue with PSSM shadows causing a large shadow on anything within a certain distance. This happens with the PSSM test class too. I recorded a video that shows both problems:



http://www.youtube.com/watch?v=7F8aWJDMcP8



[xml]watch?v=7F8aWJDMcP8[/xml]

Yeah, I think ccd is broken in jbullet, ask jezek.

I can’t reproduce the pssm issue in the test case, but maybe try to tweak the lambda parameter

Actually the CCD if at all imposes a artifical max speed on the objects in jbullet.

No, what it does is its doing a sweep test between the before and after location when the movement in one frame is over the motion threshold. And thats a bit broken in jbullet too (doesnt work when starting within objects), so it might very well be.

Related PSSM problem - when I draw lines on screen, the entire scene is cast in shadow. The debug display is fine, and shadow mode is set to off:







[java]Material mat = new Material(stage.getAssetManager(), “Common/MatDefs/Misc/Unshaded.j3md”);

mat.setColor(“Color”, ColorRGBA.Pink);

Mesh lineMesh = new Mesh();

lineMesh.setMode(Mesh.Mode.Lines);

lineMesh.setBuffer(VertexBuffer.Type.Position, 3, new float[] {start.getX(), start.getY(), start.getZ(), end.getX(), end.getY(), end.getZ()} );

lineMesh.setBuffer(VertexBuffer.Type.Index, 2, new short[] { 0, 1 } );

lineMesh.updateBound();

lineGeometry = new Geometry(“line”, lineMesh);

lineGeometry.setMaterial(mat);

lineGeometry.setShadowMode(ShadowMode.Off);[/java]



How to fix?

Bumping for solution. Happens with all filtering modes, stops as soon as the line geometry is removed. I don’t understand why this happens even if the mode is set to off. Also, basic shadow renderer does not have this problem but obviously looks terrible.

kidneytrader said:
Bumping for solution.

That doesn't work I am afraid.

Is the line in the gui bucket? I dont understand what you mean by “I draw lines on screen”

I follow this tutorial



https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:custom_meshes



with 2 points and the draw mode set to line. then I attach it to a Geometry and then the root node.



[java]stage.getRootNode().attachChild(lineGeometry);[/java]

http://i.imgur.com/wR9f2.png

It works for me