Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 105513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:27:04+00:00 2026-05-11T01:27:04+00:00

As part of a larger project I’m trying to implement a facility using JOGL

  • 0

As part of a larger project I’m trying to implement a facility using JOGL that will export 3D renderings to bitmap formats. We do this by creating a GLJPanel and drawing the scene we want to it, then extracting the bitmap. This all works fine as long as the system has at least one visible window on the screen – not necessarily the window containing the panel we are drawing to.

But if we try to do this without making any window visible the GLJPanel won’t draw. Stepping through the JOGL source I find that it won’t draw unless it has a valid peer – essentially unless addNotify() has been called on it. The documentation says that addNotify() is only called when the panel is made part of a visible window heirarchy. Changing to a GLCanvas doesn’t make much difference – the failure mode is different. WindowsOnscreenGLDrawable.realized is not set, and this means lockSurface returns LOCK_SURFACE_NOT_READY, causing makeCurrent() to fail.

Any help would be welcome on how to create a Java app that can create and export 3D scenes without having to make it’s window visible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:27:04+00:00Added an answer on May 11, 2026 at 1:27 am

    Not sure if I should be answering my own question, but here goes with what I found seems to work now.

    The key is GLPbuffer, which is an offscreen GLAutoDrawable and can be created without a visible component heirarchy.

    This article was helpful in getting it to work. I’ll leave off accepting this answer until I’ve confirmed it’s fully functional.

    I should also say that the answer came from this forum, not my own meagre brain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As part of a larger project, I'm trying to embed a Python interactive interpreter
I'm trying to add something to a larger C++ project which is developed using
As part of a larger web-app (using CakePHP), I'm putting together a simple blog
As part of a larger series of operations, I'm trying to take tokenized chunks
As a part of a larger application I need to implement an SSL tunnel
I have a small lightweight application that is used as part of a larger
I am trying to implement a TCP server which is a part of a
I am part of the development of a larger-scale Silverlight 4 project, where we
I'm planing a larger project,so i'm considering some technology options. The project will use
I'm developing a small webserver in C# as part of a larger project (the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.