![]() So the question is, I bet i can go further with this and create collision detection in the vertex/fragment shader somehow. (never hidden) although i tested a pipeline object hiding a GLKBaseEffect object, (which fails) so it could be there is a bug just mixing the two types, if you go the other way, have a GLKBaseEffect object hide a pipeline object, it gives the correct answer, i did not test further yet. ![]() However, there appears to be a bug in GLKit, where if you use self.effect2 = init] type of GLKit code to render an object, rather than a normal GLES2.0 pipeline, the queries will fail to give you the correct answer. Hopefully some here can use this code, i've tested it and it works, If (!theParams) object is hidden don't draw next time Framebuffer objects are core in 3.x, whereas theyre extensions in 2.0 (and even then. If (hasBeenTested) glGetQueryObjectuivEXT(testBox, GL_QUERY_RESULT_EXT, &theParams) x provides a lot of functionality that unextended ES 2.0 simply does not. GlGetQueryObjectuivEXT(testBox, GL_QUERY_RESULT_AVAILABLE_EXT, &hasBeenTested) GlEndQueryEXT(GL_ANY_SAMPLES_PASSED_EXT) GlBeginQueryEXT(GL_ANY_SAMPLES_PASSED_EXT, testBox) you can imagine how they would go in your code from this little sudo code here: import UIKit/UIKit.h ![]() So here they are set up properly.which is not documented anywhere as far as i can tell. It looks to me like not a single person on the entire internet has posted about these new extensions nor used this code. EXT_occlusion_query_boolean is new with OS5.0, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |