{"action":"created","issue":{"url":"https://api.github.com/repos/kmkolasinski/AwesomeBump/issues/116","repository_url":"https://api.github.com/repos/kmkolasinski/AwesomeBump","labels_url":"https://api.github.com/repos/kmkolasinski/AwesomeBump/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/kmkolasinski/AwesomeBump/issues/116/comments","events_url":"https://api.github.com/repos/kmkolasinski/AwesomeBump/issues/116/events","html_url":"https://github.com/kmkolasinski/AwesomeBump/issues/116","id":212040072,"number":116,"title":"Issue on Mac & AMD","user":{"login":"Norfiwafi","id":4518160,"avatar_url":"https://avatars1.githubusercontent.com/u/4518160?v=3","gravatar_id":"","url":"https://api.github.com/users/Norfiwafi","html_url":"https://github.com/Norfiwafi","followers_url":"https://api.github.com/users/Norfiwafi/followers","following_url":"https://api.github.com/users/Norfiwafi/following{/other_user}","gists_url":"https://api.github.com/users/Norfiwafi/gists{/gist_id}","starred_url":"https://api.github.com/users/Norfiwafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Norfiwafi/subscriptions","organizations_url":"https://api.github.com/users/Norfiwafi/orgs","repos_url":"https://api.github.com/users/Norfiwafi/repos","events_url":"https://api.github.com/users/Norfiwafi/events{/privacy}","received_events_url":"https://api.github.com/users/Norfiwafi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-03-06T07:05:30Z","updated_at":"2017-03-24T08:05:30Z","closed_at":null,"body":"Specs:\r\nMac book pro retina mid 2015\r\nOS Version : Mac OSX Sierra 10.10\r\nGraphics:\r\nAMD Radeon R9 M370X 2048 Mo\r\nIntel Iris Pro 1536 Mo \r\n\r\nHi,\r\nI know there are others threads talking to issues with mac, but I think it was good to make a whole new post to ask my questions. Tell me if it is bothering you, or if I should post elsewhere.\r\n\r\nSo... As other users, I managed to build Awesome Bump but I encountered the same issues with black screen and all.\r\nAfter looking to the log, and to the code, I have a lot of questions, but I need to start with one especially.\r\n\r\nThe very first error we have when launching the project is with the GLTextureCube, etc... \r\nGL_INVALID_ENUM is returned for this kind of methods : \r\n```\r\n        GLCHK(glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, 4, size, size, 0,\r\n            GL_BGRA, GL_UNSIGNED_BYTE, 0));\r\n\r\n```\r\n_Why is the internal format 4 ? Should it be GL_RGBA instead? Because when writing it down, there is no errors anymore_\r\n\r\nOh by the way, It seems that with the new versions of QT Creator, the location of RESOURCE_BASE is quite confused. When trying to find something it looks in the root folder of the mac instead of where Core and Configs should be (I fixed this by my side, but I made RESOURCE_BASE really specific :p ) \r\n\r\n\r\nOk, so now, another question : \r\nWhen checking Mesh objects and glimageeditor, some GL_INVALID_OPERATION were coming from the glDrawArrays, with vbo. It appears on Mac OSX, and with my AMD for instance, there is no Default Vertex Array Object.\r\nTo my opinion, that's why it is failing to drawing anything. I generated Vertex Array Object for each mesh and for the Image Editor. Could you tell me if I am doing anything wrong here ? \r\n\r\nAnd last question :\r\nDuring the paintGL of glWidget, the line \r\n    GLCHK( glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) );\r\n\r\nAround l.730 , just after the ColorFBO->bindDefault(); generates an error. Looking for the default framebuffer doing glCheckFramebufferStatus(GL_FRAMEBUFFER) just after colorFBO->bindDefault();  returns GL_FRAMEBUFFER_UNDEFINED.\r\nIs this the case on WIndows? (Really, I don't think so) \r\n\r\nSorry for this long post, but I am trying to give some details. If you need further information feel free to tell me. \r\nThank you !\r\n"},"comment":{"url":"https://api.github.com/repos/kmkolasinski/AwesomeBump/issues/comments/288957858","html_url":"https://github.com/kmkolasinski/AwesomeBump/issues/116#issuecomment-288957858","issue_url":"https://api.github.com/repos/kmkolasinski/AwesomeBump/issues/116","id":288957858,"user":{"login":"Norfiwafi","id":4518160,"avatar_url":"https://avatars1.githubusercontent.com/u/4518160?v=3","gravatar_id":"","url":"https://api.github.com/users/Norfiwafi","html_url":"https://github.com/Norfiwafi","followers_url":"https://api.github.com/users/Norfiwafi/followers","following_url":"https://api.github.com/users/Norfiwafi/following{/other_user}","gists_url":"https://api.github.com/users/Norfiwafi/gists{/gist_id}","starred_url":"https://api.github.com/users/Norfiwafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Norfiwafi/subscriptions","organizations_url":"https://api.github.com/users/Norfiwafi/orgs","repos_url":"https://api.github.com/users/Norfiwafi/repos","events_url":"https://api.github.com/users/Norfiwafi/events{/privacy}","received_events_url":"https://api.github.com/users/Norfiwafi/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T08:05:30Z","updated_at":"2017-03-24T08:05:30Z","body":"Hi ! \r\nAfter a long work, testing a lot of stuff I finally managed to get this :\r\n\r\n<img width=\"1440\" alt=\"capture d ecran 2017-03-24 a 08 54 52\" src=\"https://cloud.githubusercontent.com/assets/4518160/24285252/949ef7b2-106f-11e7-897a-409c4b920481.png\">\r\n\r\nThe work is not done yet, since loading an image and then apply the convert button gives black texture.\r\n\r\nI pushed  on my fork the changes I made. \r\n\r\nAs you can see, I'm working with openGL 330 : it's more confortable for me as it seems subroutines on Mac are wayyyyyyyy too slow ! It takes around 1-3 minutes to draw the first diffuse. \r\nWith gl330, it's loading instantaneously. \r\n\r\nAlso, the QGLWidget->bind(\"Texture\") is the cause of rendering a black texture, returning INVALID_ENUM 500. When using QOpenGLTexture, I did not have the issue  (So I need to apply this on Lens, Flare, & so on). \r\n\r\nDuring this 13 days without giving you infos, I tried to make AB qt5, but I cannot make it work (the glImageEditor displays a texture though, but nothing on GLWidget). If you want I can push this branch, but it's full of logs, debugging, and test value. (And you have around 1/3 crash at launch).\r\n\r\nI also checked the new branch  from Ppiecuch, and it seems not working on the mac for the moment . \r\n\r\nQOpenGLTexture->bind(GL_TEXTURE2) gives me INVALID_ENUM \r\nand I have some logs saying shader program was not compiled\r\n"}}
{"actor":{"display_login":"Norfiwafi"}}