About JOGL drawable...

Hello to All,

  I am working on JOGL graphics application that run animation in web browser using applet and GLCanvas.

  I have a requirement that animation should not have a background and i have to use browser window as Drawable like GLCanvas. Means i want to overlay on web page.

  Any help will be appreciated.....

Thanks In Advance

I am afraid it’s not possible. All you can do is generate a background image that looks like your webpage or like your webpages design.

Make the webpage background a single colour, and use the same colour for the OpenGL’s glClearColor() ?

Hello,

    But i have a C++ application that use OpenGL to overlay on webpage and it uses webpage as drawable window. It takes browser window as drawable to render 3D animations.

Regards
Patel Vinod

Well, with Java, you have to place the applet in your webpage in order for your jogl program to even have something to run in. Which means that even if you set your GL context clear color to be completely transparent, all you’d see is the background for your applet, so you still don’t get anything from that. However I don’t know how you got your c++ stuff to work directly with the browser as the drawable, but if it was the way I think it was, jogl also allows you to grab external OpenGL contexts and use them in java, so you could try that and see if that gives you any results. Mind you, I’ve never used this functionality, so I could be mistaken, it could be faulty/broken, or it might work beautifully.

Hello,

     If you can provide me the code example to grab external context then it would be better for me.
  
    Anyway, thanks for you help and suggestion.

Regards