{"action":"created","issue":{"url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1765","repository_url":"https://api.github.com/repos/Rajawali/Rajawali","labels_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1765/labels{/name}","comments_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1765/comments","events_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1765/events","html_url":"https://github.com/Rajawali/Rajawali/issues/1765","id":175424088,"number":1765,"title":"Draw a 3D theta360 with 2 half sphere, screen is black(sometimes one half sphere)","user":{"login":"gedeju","id":12440740,"avatar_url":"https://avatars.githubusercontent.com/u/12440740?v=3","gravatar_id":"","url":"https://api.github.com/users/gedeju","html_url":"https://github.com/gedeju","followers_url":"https://api.github.com/users/gedeju/followers","following_url":"https://api.github.com/users/gedeju/following{/other_user}","gists_url":"https://api.github.com/users/gedeju/gists{/gist_id}","starred_url":"https://api.github.com/users/gedeju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedeju/subscriptions","organizations_url":"https://api.github.com/users/gedeju/orgs","repos_url":"https://api.github.com/users/gedeju/repos","events_url":"https://api.github.com/users/gedeju/events{/privacy}","received_events_url":"https://api.github.com/users/gedeju/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-07T06:36:12Z","updated_at":"2016-09-07T07:11:32Z","closed_at":null,"body":"#### Rajawali Version or Branch\r\n[rajawali-1.0.325]\r\n\r\n#### Device and Android Version\r\n[nexus5/5x android6.0.1]\r\n\r\n#### Summary\r\n[draw a 3D theta 360 with 2 half sphere]\r\n\r\n#### Steps to Reproduce\r\n[   private void initSceneForImage() {\r\n            try {\r\n                // one half \r\n                int\\[\\] textureIds1 = new int\"[1\"];\r\n                GLES20.glGenTextures(1, textureIds1, 0);\r\n                GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureIds1[0]);\r\n\r\n                Bitmap northBitmap = BitmapUtil.loadBitmapScaled(mPathNorth);\r\n                GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, northBitmap, 0);\r\n                northBitmap.recycle();\r\n\r\n                GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D,\r\n                        GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST);\r\n                GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D,\r\n                        GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_NEAREST);\r\n\r\n                mImageNorth = new Texture(\"jetTexture\" + mTextureNameSuffix);\r\n                mImageNorth.setTextureId(textureIds1[0]);\r\n                mNorthSphere = initHalfPicture(mImageNorth);\r\n                getCurrentScene().addChild(mNorthSphere);\r\n\r\n                // the other half \r\n                int[] textureIds2 = new int[1];\r\n                GLES20.glGenTextures(1, textureIds2, 0);\r\n                GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureIds2[0]);\r\n                \r\n                Bitmap southBitmap;\r\n                if (TextUtils.isEmpty(mPathSouth)) {\r\n                    southBitmap = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.texture_background);\r\n                } else {\r\n                    southBitmap = BitmapUtil.loadBitmapScaled(mPathSouth);\r\n                }\r\n                GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, southBitmap, 0);\r\n                southBitmap.recycle();\r\n                \r\n                GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D,\r\n                        GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST);\r\n                GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D,\r\n                        GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_NEAREST);\r\n\r\n                mImageSouth = new Texture(\"southTexture\" + mTextureNameSuffix);\r\n                mImageSouth.setTextureId(textureIds2[0]);\r\n                mSouthSphere = initHalfPicture(mImageSouth);\r\n                setRotationAngle(mRotationAngle);\r\n                getCurrentScene().addChild(mSouthSphere);\r\n            } catch (Exception e) {\r\n                Log.e(TAG, \"Error:\" + e.getMessage());\r\n            }\r\n        }\r\n]\r\n\r\n#### Trace or Log Output\r\n[java.lang.IllegalArgumentException: string == null\r\nW/System.err:     at android.opengl.GLES20.glShaderSource(Native Method)\r\nW/System.err:     at org.rajawali3d.materials.Material.loadShader(Material.java:732)\r\nW/System.err:     at org.rajawali3d.materials.Material.createProgram(Material.java:757)\r\nW/System.err:     at org.rajawali3d.materials.Material.createShaders(Material.java:680)\r\nW/System.err:     at org.rajawali3d.materials.Material.reload(Material.java:488)\r\nW/System.err:     at org.rajawali3d.materials.MaterialManager.taskReload(MaterialManager.java:72)\r\nW/System.err:     at org.rajawali3d.renderer.RajawaliRenderer.onRenderSurfaceSizeChanged(RajawaliRenderer.java:363)\r\nW/System.err:     at xxxxxxxx$xxxRenderer.onRenderSurfaceSizeChanged(xxxxViewer.java:)\r\nW/System.err:     at org.rajawali3d.surface.RajawaliTextureView$GLThread.guardedRun(RajawaliTextureView.java:1266)\r\nW/System.err:     at org.rajawali3d.surface.RajawaliTextureView$GLThread.run(RajawaliTextureView.java:997)\r\n]\r\n"},"comment":{"url":"https://api.github.com/repos/Rajawali/Rajawali/issues/comments/245194775","html_url":"https://github.com/Rajawali/Rajawali/issues/1765#issuecomment-245194775","issue_url":"https://api.github.com/repos/Rajawali/Rajawali/issues/1765","id":245194775,"user":{"login":"gedeju","id":12440740,"avatar_url":"https://avatars.githubusercontent.com/u/12440740?v=3","gravatar_id":"","url":"https://api.github.com/users/gedeju","html_url":"https://github.com/gedeju","followers_url":"https://api.github.com/users/gedeju/followers","following_url":"https://api.github.com/users/gedeju/following{/other_user}","gists_url":"https://api.github.com/users/gedeju/gists{/gist_id}","starred_url":"https://api.github.com/users/gedeju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedeju/subscriptions","organizations_url":"https://api.github.com/users/gedeju/orgs","repos_url":"https://api.github.com/users/gedeju/repos","events_url":"https://api.github.com/users/gedeju/events{/privacy}","received_events_url":"https://api.github.com/users/gedeju/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T07:11:32Z","updated_at":"2016-09-07T07:11:32Z","body":"<img width=\"348\" alt=\"111\" src=\"https://cloud.githubusercontent.com/assets/12440740/18302979/55599b8c-750d-11e6-8d64-e8bf9a742869.png\">\r\n"}}
{"actor":{"display_login":"gedeju"}}