[android-developers] Matrix.orthoM - How to use it

2012-09-14 Thread Steven Bruce
I have a very simple application which draws a triangle at zero on the z axis. I want an orthographics view but for the life of me this function won't work. It just shows a black screen with no triangle. How exactly do you use this function? I did the obvious thing which is:

Re: [android-developers] Matrix.orthoM - How to use it

2012-09-14 Thread Harri Smått
Hi, I'm usually doing the following (or the inverse); float ratio = (float) width / height; Matrix.orthoM(projection, -ratio, ratio, 1, -1, .1f, 100f); Especially using proper z -projection. -- H On Sep 14, 2012, at 11:25 AM, Steven Bruce stevebruc...@gmail.com wrote: