Capture a static render

classic Classic list List threaded Threaded
4 messages Options
Daven Quinn Daven Quinn
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Capture a static render

Is there any command line osgEarth tool that has been developed to capture a static render of an OSGEarth scene, given an Earth file and viewpoint information? Is such a thing in the examples section?

Thanks!
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Capture a static render

Hi Daven,

No, but you might look into ScreenCaptureHandler in OSG's osgViewer library.

Hope this helps!
Glenn Waldron / Pelican Mapping
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Capture a static render

Hey Daven,

Here is something I wrote a long time ago that works with any osg node, not just osgearth.  

It's a good starting point.  You could add a viewpoint to the command line and set it on the camera manipulator, and you also probably want to wait for the database pager to finish up before taking a screenshot too.  So just keep calling frame until viewer->getDatabasePager()->getRequestsInProgress() return false and then take the screenshot.

Jason

On Thu, Jul 27, 2017 at 8:40 AM gwaldron [via osgEarth] <[hidden email]> wrote:
Hi Daven,

No, but you might look into ScreenCaptureHandler in OSG's osgViewer library.

Hope this helps!
Glenn Waldron / Pelican Mapping



If you reply to this email, your message will be added to the discussion below:
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML
Daven Quinn Daven Quinn
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Capture a static render

Thanks, this is a great start! I'll try to create something based on this, probably.
Loading...