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 

setting 2D manipulator


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


Joined: 18 Nov 2016
Posts: 15

PostPosted: Wed May 31, 2017 4:55 am    Post subject:
setting 2D manipulator
Reply with quote

Hi,
How can i set 2D manipulator instead of 3D manipulator and also how can i set Units (width units) to meters or feet or Miles etc...

...

Thank you!

Cheers,
Bhanu
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11146

PostPosted: Wed May 31, 2017 7:51 am    Post subject:
setting 2D manipulator
Reply with quote

Hi Bhanu,

On 31 May 2017 at 05:55, Bhanu Chandra <> wrote:
Quote:
How can i set 2D manipulator instead of 3D manipulator and also how can i set Units (width units) to meters or feet or Miles etc...

The core OSG doesn't have any 2D camera manipulators so you'll need to
write your own. It's not essential to use a osgGA::CameraManipulator,
you can just set the viewer's Camera view+projection matrices yourself
on each new frame if you so wish.

The core OSG itself doesn't have any specific units, so you typically
can interpret than as you wish. The general assumption for most
loaders and classes that require specific units (such as
osg:EllipsoidModel) is that they load to meters. Most loaders just
honour the units of the original data so it's not a hard fast rule.

Robert.


------------------
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 Setting up a shadowDepthCamera wernerM General 0 Fri Sep 08, 2017 11:28 am View latest post
No new posts using modern shaders with osg - setti... antiro42 General 18 Fri Sep 01, 2017 9:30 am View latest post
No new posts Setting the transform matrices robertosfield General 9 Wed Aug 09, 2017 8:35 am View latest post
No new posts Setting vertex attribute array of float Bruno Oliveira General 1 Mon Mar 20, 2017 9:55 am View latest post
No new posts Custom camera manipulator Ninin General 1 Wed Dec 28, 2016 8:24 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