I'm trying to build a game engine with LWJGL under Java. I'm want to implement Shadowmapping, but I'm stuck with the tutorials from Oskar Veehoek (here, specifcally). When I try to use the shadow mapping OpenGL extension, I get the error:

GL ARB Shadow Ambient Extension is not supported

What might be the source of this problem?

  • \$\begingroup\$ Could you link to the tutorial? ARB is the OpenGL Architecture Review Board, who check over proposals to the OpenGL standards. I'm pretty sure the tutorials are referring to this extension. (I just Googled all of that. You should try it too.) Does that help? \$\endgroup\$ – Anko Mar 9 '14 at 14:00
  • \$\begingroup\$ Yes ,here is the Link: youtube.com/… but what do I have to do with the file you directed to see it work? Thanks,Mineorbit \$\endgroup\$ – Mineorbit Mar 9 '14 at 14:23
  • \$\begingroup\$ The file I linked is just a status document for the shadow mapping OpenGL extension. (It's not code.) Oskar's code is on github, linked from the video description. Have you tried it? \$\endgroup\$ – Anko Mar 9 '14 at 14:28
  • \$\begingroup\$ Yes ,I know that but if I run the code, than i get the error that the GL ARB Shadow Ambient Extension is not supported, how can I fix that? Thanks, Mineorbit! \$\endgroup\$ – Mineorbit Mar 9 '14 at 14:36
  • 1
    \$\begingroup\$ For those who scroll above this site and have the same Problem as I had, the Problem was that nVidia Graphicscrad do not love FBO so you have to revamp this part and the Problem is solved! \$\endgroup\$ – Mineorbit Mar 9 '14 at 19:59

Take a look at the shadow mapping tutorials at this site. Another great tutorial can be found here.

I managed to implement shadow mapping for my LWJGL game without using any extensions and using only these two tutorials. The code can be transferred to Java pretty easily.

As far as i know, if you are using C++, only OpenGL 1.1 is guaranteed. Anything else needs to be loaded manually from extensions. LWJGL does this for you. You can find the corresponding functions in the GL30 etc. namespaces.

  • \$\begingroup\$ @Mineorbit Please mark this as the correct answer if it solved your problem, thank you :) \$\endgroup\$ – famousgarkin Mar 20 '14 at 11:16

From the comments by the OP, this was the problem:

nVidia Graphicscrad do not love FBO so you have to revamp this part and the Problem is solved!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.