android Programming Glossary: xyzw
Android OpenGL 3D picking http://stackoverflow.com/questions/6699387/android-opengl-3d-picking all the resulting coordinates by the 4th one like so float xyzw 0 0 0 0 android.opengl.GLU.gluUnProject rx ry rz mg.mModelView.. rx ry rz mg.mModelView 0 mg.mProjection 0 this.viewport 0 xyzw 0 xyzw 0 xyzw 3 xyzw 1 xyzw 3 xyzw 2 xyzw 3 xyzw 3 xyzw 3 xyzw.. rz mg.mModelView 0 mg.mProjection 0 this.viewport 0 xyzw 0 xyzw 0 xyzw 3 xyzw 1 xyzw 3 xyzw 2 xyzw 3 xyzw 3 xyzw 3 xyzw 3 1..
Android OpenGL 3D picking http://stackoverflow.com/questions/6699387/android-opengl-3d-picking but you need to pass it a float 4 and then divide all the resulting coordinates by the 4th one like so float xyzw 0 0 0 0 android.opengl.GLU.gluUnProject rx ry rz mg.mModelView 0 mg.mProjection 0 this.viewport 0 xyzw 0 xyzw 0 xyzw 3 xyzw.. like so float xyzw 0 0 0 0 android.opengl.GLU.gluUnProject rx ry rz mg.mModelView 0 mg.mProjection 0 this.viewport 0 xyzw 0 xyzw 0 xyzw 3 xyzw 1 xyzw 3 xyzw 2 xyzw 3 xyzw 3 xyzw 3 xyzw 3 1 return xyzw xyzw should now contain the relevant space.. so float xyzw 0 0 0 0 android.opengl.GLU.gluUnProject rx ry rz mg.mModelView 0 mg.mProjection 0 this.viewport 0 xyzw 0 xyzw 0 xyzw 3 xyzw 1 xyzw 3 xyzw 2 xyzw 3 xyzw 3 xyzw 3 xyzw 3 1 return xyzw xyzw should now contain the relevant space coordinates...
|