OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

auto-capture example: capturing an image from a


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
John Vidar Larring
Guest





PostPosted: Tue Oct 28, 2008 2:35 pm    Post subject:
auto-capture example: capturing an image from a
Reply with quote

Hi all,

_Goal_: I'd like to make a command-line tool where I can open paged
database, set the camera at a particular position and supply a filename,
and the program will dump an image and exit.

% ./osgautocapture
Usage: ./osgautocapture [options] filename ...
Options:
--active Use active rendering instead of passive / lazy rendering
--camera <lat> <lon> <alt> <heading> <incline> <roll> Specify camera
position for image capture. Angles are specified in degrees and altitude
in meters above sealevel (e.g. --camera 55 10 300000 0 30 0)
--filename Filename for the captured image

Example below yields the attached image called autocapture.jpg:
./osgautocapture --camera 55 10 300000 0 30 0 --filename autocapture.jpg
http://www.openscenegraph.org/data/earth_bayarea/earth.ive

(Robert: thanks for making that database available;)

_Problem_: The image is blurred because the the necessary level of
detail has not been loaded when the image is captured (Ref: autocapture.jpg)

If I force to program to render the 180 frames before capturing, I'll
get at descent image (ref: autocapture_180_frames.jpg). However, this
approach will either not give a good result or take more time and
resources than necessary.

What I would like to do is to query the DatabasePager to find out
whether or not it needs load more tiles for the image to be rendered
with the correct level of detail. However, I can't seem to find the
correct method (or correct context for calling the method) for finding
out when the DatabasePager is done loading all necessary tiles.

Please, help. I'm quite stuck. The complete source code is attached to
this email.

Best regards,
John






--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osg::Image::setImage problem evanyftsai General 6 Sat Feb 18, 2017 2:38 am View latest post
No new posts 答复: osg-users Digest, Vol 105, Is... 韩志平 General 1 Thu Feb 09, 2017 3:03 am View latest post
No new posts Minor issue with GraphicsWindowWin32.... loopy General 0 Mon Jan 23, 2017 10:18 pm View latest post
No new posts Capture image on iOS get black image nghien_rbc General 6 Tue Dec 27, 2016 12:57 am View latest post
No new posts How to render the image without reduc... umadevi2193 General 5 Tue Nov 22, 2016 12:58 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP