Problem with parallelProjection

hi,



I try to render a .obj in parallel projection but I have a problem with the z-culling :

I have attached 2 screenshots : the first with cam.setFrustumPerspective(45.0f, (float)width / (float)height, 0.0001f, 1000); and the second with cam.setParallelProjection(true);



I have set the z-function with :


ZBufferState buf = display.getRenderer().createZBufferState();
buf.setFunction(ZBufferState.TestFunction.LessThan);
buf.setWritable(true);
scene.setRenderState(buf);


(and I have tried the other z-functions but it doesn't solve the problem)

what can I do to solve this problem?

thanks,
delfare

I've seen stuff look like that if I forgot to call updateRenderState() after adding geometry to a scene. I have no idea if that is your issue.

I call updateRenderState() after adding geometry and after every move of my camera

maybe add a cull state with face set to backā€¦