Hi, my name is David, and I really appreciate how helpful this community is!

Nov
18
awarded Popular Question
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
3
awarded Nice Question
Jul
29
accepted main() and Closure Compiler
Jul
29
awarded Supporter
Jul
29
asked main() and Closure Compiler
Jul
25
awarded Yearling
Jul
25
awarded Yearling
Jul
24
comment OpenGL multiply ProjectionMatrix and ModelMatrix
Yes, you need to calculate the VP matrix every frame, because the view changes (unless your camera does not move/rotate). 60 4x4 matrices is not really that much memory. But you should not be storing the model matrix anyway. Every frame, you should be generating a model matrix for each object (based on its current position/orientation), making an MVP matrix, upload the MVP matrix to the shader, draw that object, then repeat for the other 59 objects.
Jul
24
comment OpenGL multiply ProjectionMatrix and ModelMatrix
No, every object needs their own model matrix. Let's say you have three objects: a human, a cat, and a table in your world. They are all located in different spots and are facing different directions. You need to generate a model matrix for each of them, using mTranslate and mRotate as appropriate. They can all use the same view matrix and perspective though. So each object has its "own" MVP matrix. Doing it this way requires a little more Android code, but it makes your vertex shader run faster.
Jul
24
comment OpenGL multiply ProjectionMatrix and ModelMatrix
mRotate and mTranslate should be used to move the object around, not the camera. You use things like mRotate, mTranslate, mScale to create a model matrix. The purpose of this model matrix is to put your object in the correct position and orientation in the world. Once you have a model matrix, you can left-multiply it by a view matrix and a perspective matrix, to get that MVP matrix that I was talking about.
Jul
24
answered OpenGL multiply ProjectionMatrix and ModelMatrix
Jul
2
awarded Curious
Jun
5
accepted MinGW 4.8.1 C++11 thread support
Jun
3
comment MinGW 4.8.1 C++11 thread support
My MinGW has a .dll package called "mingw32-libpthreadgc" or "POSIX threading library for Win32". But this is just the runtime library, so I just installed a package called mingw32-pthreads-w32, a "POSIX threading library for Win32", which contains the headers and development files. I thought that would fix it, but I'm still getting the same error.
Jun
3
comment MinGW 4.8.1 C++11 thread support
I'm using MinGW not cygwin
1 2 3 4 5