Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime failure #22

Open
ypiadyk opened this issue Jul 22, 2014 · 5 comments
Open

Runtime failure #22

ypiadyk opened this issue Jul 22, 2014 · 5 comments

Comments

@ypiadyk
Copy link

ypiadyk commented Jul 22, 2014

Hello, Benny.
I really liked your Intro to modern OpenGL tutorial and decided to try your Game Engine in C++. It compiled fine (I use Visual Studio 2012 and all dependences are resolved with versions of libraries from your repository). But during the runtime at some point assertion failes (see screenshot, I output names of the uniforms before the assertion check to see when it failes). Can it be that name of the uniform is too long or something else specific to my case? If I comment the assertion check it runs but without any lighting.
assert_failure
Thanks in advance.

@ypiadyk
Copy link
Author

ypiadyk commented Jul 22, 2014

Looks like R_spotLight.pointLight.base.intensity (and several more uniform further in list) are not active uniforms in the program. But it's out of the scope of my knowledge of OpenGL and this particular engine why it's so.

@ypiadyk
Copy link
Author

ypiadyk commented Jul 22, 2014

I have found this issue:
http://stackoverflow.com/questions/19894839/opengl-uniform-array-of-structures/19918602#19918602
It might be related to my case as I also have an AMD graphics card. Do you think it's worthy to implement enumeration of active only uniforms as it's suggested in the answer?

@BennyQBD
Copy link
Owner

Sorry for the delayed response!

Do you know which shader (as in it's file name) seems to be causing the issue?

Thanks in advance!

@ypiadyk
Copy link
Author

ypiadyk commented Jul 29, 2014

I haven't finished all your tutorials yet, so can't say. But good news are that 3DGameEngineCpp_60 works just fine and at some point I will find the reason. Meanwhile, I don't think that it's worthy to spend time on my issue because 3DEngineCpp works fine on my brother's laptop which is less old than mine. So it must be the compatibility issue although my laptop fully supports OpenGL 3.3 and partially 4.0.
Thanks for support anyway.

@BennyQBD
Copy link
Owner

Well, if you really don't think it's that big of a deal, then I'll let it be for a while.
However, please keep me updated on the issue. If you've encountered this problem, then there's almost certainly other people who've run into it as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants