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 

Naive question about eyePoint and viewPoint


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Roger James
Guest





PostPosted: Wed Oct 15, 2008 7:13 pm    Post subject:
Naive question about eyePoint and viewPoint
Reply with quote

I am sorry if this is a naive question, but can somebody explain to me what is the difference between what is returned by CullStack::getEyeLocal and CullStack::getViewPointLocal (i.e. the eyePointStack and the viewPointStack). I want to get the current main scene camera position in a cull pass and am wondering which one to use.

Roger

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





PostPosted: Wed Oct 15, 2008 7:34 pm    Post subject:
Naive question about eyePoint and viewPoint
Reply with quote

HI Roger,

For most cases EyePoint and VIewPoint are one of the same thing.

The cases where EyePoint can be different from ViewPoint is when you
have a technique such as a local render to texture effect that has its
own local Camera and therefore eye point that it's subgraph will see,
but you want operations such as LOD transitions to consistent with
main Camera's rendering of the scene graph, so here the RTT Camera
subgraph can be told to inherit the main Camera's eye point as it's
view point rather than the local eye point. One good example of this
in action is when you are doing shadow mapping and you want the shadow
map to taken from one position, but have the same LOD children viewed
as the main view.

Robert.

On Wed, Oct 15, 2008 at 8:08 PM, Roger James
<> wrote:
Quote:
I am sorry if this is a naive question, but can somebody explain to me what
is the difference between what is returned by CullStack::getEyeLocal and
CullStack::getViewPointLocal (i.e. the eyePointStack and the
viewPointStack). I want to get the current main scene camera position in a
cull pass and am wondering which one to use.

Roger






------------------
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