Hi all, I just tried some very basic JOML code, and I got an odd answer.
public class JomlTest {
public static void main( String[] args ) {
System.out.println( new Matrix4f().setPerspective( (float)Math.PI/3, 2,
0.1f, 1000f ) );
}
}
run:
8.660E-1 0.000E+0 0.000E+0 0.000E+0
0.000E+0 1.732E+0 0.000E+0 0.000E+0
0.000E+0 0.000E+0 -1.000E+0 -2.000E-1
0.000E+0 0.000E+0 -1.000E+0 0.000E+0
BUILD SUCCESSFUL (total time: 0 seconds)
Is that right? Did I do something wrong? The third column is confusing me, shouldn't the first and second element have non-zero values?
This is a relatively recent 1.9.4 snapshot that I downloaded from GitHub and compiled myself.