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 

transformation question...


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Tueller, Shayne R Civ...
Guest





PostPosted: Mon Dec 01, 2008 6:30 pm    Post subject:
transformation question...
Reply with quote

I have a transformation question I’m hoping someone can shed some light on.

I have a camera that I can explicitly control by specifying a position and an orientation (using heading, pitch, roll) as input. I would like to define another view that uses the same position as the camera but uses an orientation (again heading, pitch, and roll) that is RELATIVE to the camera coordinate frame. In other words, a heading, pitch, and roll of 0.0 for this other view would yield the same axis coordinate frame as the camera.

I’ve tried several things to get this to work and I’ve had no success. Obviously I’m doing something fundamentally wrong.

If anyone has any ideas on how I can get this to work, it would be most appreciated…

Thanks,
-Shayne

------------------
Post generated by Mail2Forum
Back to top
Ralf Stokholm
Guest





PostPosted: Mon Dec 01, 2008 7:05 pm    Post subject:
transformation question...
Reply with quote

Hi Shayne

As far as I know this should be acomplished by placing a transform node as a child of the first camera and another camera on that.

What have you tried and what effects have you had?

Brgs.

Ralf Stokholm


2008/12/1 Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:

I have a transformation question I'm hoping someone can shed some light on.

I have a camera that I can explicitly control by specifying a position and an orientation (using heading, pitch, roll) as input. I would like to define another view that uses the same position as the camera but uses an orientation (again heading, pitch, and roll) that is RELATIVE to the camera coordinate frame. In other words, a heading, pitch, and roll of 0.0 for this other view would yield the same axis coordinate frame as the camera.

I've tried several things to get this to work and I've had no success. Obviously I'm doing something fundamentally wrong.

If anyone has any ideas on how I can get this to work, it would be most appreciatedā?Š

Thanks,
-Shayne


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Mon Dec 01, 2008 8:19 pm    Post subject:
transformation question...
Reply with quote

HI Shayne,

Your could control your viewer's master camera as you do currently,
then have a slave Camera that pre/post multiplies this Camera's
view/project matrix as required. The osgwindow example gives an
example of use of two slaves with offset views, albeit the default
post multiplication of the master camera (in eye coords), in your case
it might be that you pre multiplication (in world coords). The
osg::Camera::setTransformOrder() gives you control over the order of
transformation.

Robert.

On Mon, Dec 1, 2008 at 6:30 PM, Tueller, Shayne R Civ USAF AFMC 519
SMXS/MXDEC <> wrote:
Quote:
I have a transformation question I'm hoping someone can shed some light on.



I have a camera that I can explicitly control by specifying a position and
an orientation (using heading, pitch, roll) as input. I would like to define
another view that uses the same position as the camera but uses an
orientation (again heading, pitch, and roll) that is RELATIVE to the camera
coordinate frame. In other words, a heading, pitch, and roll of 0.0 for this
other view would yield the same axis coordinate frame as the camera.



I've tried several things to get this to work and I've had no success.
Obviously I'm doing something fundamentally wrong.



If anyone has any ideas on how I can get this to work, it would be most
appreciatedā?Š



Thanks,

-Shayne






------------------
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 Question about method of building osgQt trexmsuee Build system [build] 0 Thu Apr 11, 2019 2:22 pm View latest post
No new posts Really basic question light/material ... dhhabyc General 0 Tue Apr 09, 2019 4:53 pm View latest post
No new posts Question about linking OSG 3D content... Zachary1234 General 0 Mon Mar 25, 2019 6:14 am View latest post
No new posts Question about security of shader dev... Werner Modenbach General 5 Wed Jan 30, 2019 5:50 pm View latest post
No new posts Happy New Year to all OSG Users Chris Hanson General 0 Mon Jan 07, 2019 10:17 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