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 

osgviewer camera initial angle.


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Vagn
Newbie


Joined: 20 Jun 2018
Posts: 1

PostPosted: Wed Jun 20, 2018 2:31 pm    Post subject:
osgviewer camera initial angle.
Reply with quote

Hello there,

I am using osgviewer in order to plot both the left- and right-eye image of a point cloud which is stored in a '.osg' file.

The commands I use are quite simple:

Left: osgviewer --display MONITOR --screen 1 --stereo LEFT_EYE File.osg
Right: osgviewer --display MONITOR --screen 1 --stereo RIGHT_EYE File.osg

What I need to do is to print out the image of both the left- and right-eye for a given angle of viewing of the camera. Unfortunately, the angle of viewing is not the initial one, thus I have to use the mouse .. but I can't really keep truck of the rotation angle induced by the mouse, and thus I can't force the same viewing angle for both images.

I was wondering how would you tackle such a problem. Is there a way to force the viewing angle from the command line? Or do I have to modify the source code of the Trackball camera manipulator (default manipulator)?

Thank you for your time,

Cheers,

Vagn
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12127

PostPosted: Mon Jun 25, 2018 1:15 pm    Post subject:
osgviewer camera initial angle.
Reply with quote

HI Vagn,

The OSG has built in support for multi-view and stereo, there should
be no need to attempt to play games with rendering with two separate
osgviewer instances.

Since you are describing a set up there I've never come across anyone
attempting before could you take a step back and explain to us what
you are trying to do and then we can tell you the appropriate way to
do it.

Robert.
On Mon, 25 Jun 2018 at 14:09, Vagn Budak <> wrote:
Quote:

Hello there,

I am using osgviewer in order to plot both the left- and right-eye image of a point cloud which is stored in a '.osg' file.

The commands I use are quite simple:

Left: osgviewer --display MONITOR --screen 1 --stereo LEFT_EYE File.osg
Right: osgviewer --display MONITOR --screen 1 --stereo RIGHT_EYE File.osg

What I need to do is to print out the image of both the left- and right-eye for a given angle of viewing of the camera. Unfortunately, the angle of viewing is not the initial one, thus I have to use the mouse .. but I can't really keep truck of the rotation angle induced by the mouse, and thus I can't force the same viewing angle for both images.

I was wondering how would you tackle such a problem. Is there a way to force the viewing angle from the command line? Or do I have to modify the source code of the Trackball camera manipulator (default manipulator)?

Thank you for your time,

Cheers,

Vagn

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74093#74093








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
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 Resizing FBO camera while rendering romulogcerqueira General 9 Tue Oct 02, 2018 3:34 am View latest post
No new posts ReaderWriterCFG - offset for single c... Marcin Prus Submission 0 Fri Jul 06, 2018 11:27 am View latest post
No new posts Model(s) load ~10 times longer in 3.6... davisjamesf General 16 Wed Jul 04, 2018 7:18 pm View latest post
No new posts osgOcean - Render to Texture Camera rob_ewbank osgOcean [osgOcean] 3 Wed Jul 04, 2018 11:27 am View latest post
No new posts Model flickering on osgViewer ceranco General 3 Thu Jun 21, 2018 10:02 am 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