Normalized device coordinates and frustum coordinates


Please take a look at the diff below:

Index: src/com/jme/renderer/
--- src/com/jme/renderer/    (r

I will test these new methods some days before submitting anything.

I read this on the OpenGL FAQ:

Object Coordinates are transformed by the ModelView matrix to produce Eye Coordinates.

Eye Coordinates are transformed by the Projection matrix to produce Clip Coordinates.

Clip Coordinate X, Y, and Z are divided by Clip Coordinate W to produce Normalized Device Coordinates.

Normalized Device Coordinates are scaled and translated by the viewport parameters to produce Window Coordinates.

The method getScreenCoordinates scales the normal device coordinates but it does not translate them by the viewport parameters, that is what I thought, there was a mistake.