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 

osg::LOD node not being considered in compute intersections


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


Joined: 19 Feb 2019
Posts: 1

PostPosted: Tue Feb 19, 2019 6:52 pm    Post subject:
osg::LOD node not being considered in compute intersections
Reply with quote

Hi,

I have a scenegraph which carries an LOD top level node with 2 children.

Each child has it's own range values, 0 to 5000 and 5001 to 25000.

I have an osgGA::GUIActionAdapter computing the intersections on a mouse click area in a handle function. It recognizes any node in the LOD that has a minimum range value of 0. Anything over 0 and it isn't considered by compute intersections. It displays properly in the scene graph when within the ranges, so what is happening? Why can't I click on something outside the range?

For more detail, I have geodes under the two children in the LOD node. These geodes hold an svg image drawable and displays those in the scene. I want to select the svg nodes when they are visible.




Thank you!

Cheers,
Josiah
Back to top
View user's profile Send private message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 520
Location: France

PostPosted: Sat Feb 23, 2019 9:22 pm    Post subject:
Re: osg::LOD node not being considered in compute intersections
Reply with quote

have you implemented a visitor with traversalmode set to TRAVERSE_ACTIVE_CHILDREN ?
Josiah425 wrote:
Hi,

I have a scenegraph which carries an LOD top level node with 2 children.

Each child has it's own range values, 0 to 5000 and 5001 to 25000.

I have an osgGA::GUIActionAdapter computing the intersections on a mouse click area in a handle function. It recognizes any node in the LOD that has a minimum range value of 0. Anything over 0 and it isn't considered by compute intersections. It displays properly in the scene graph when within the ranges, so what is happening? Why can't I click on something outside the range?

For more detail, I have geodes under the two children in the LOD node. These geodes hold an svg image drawable and displays those in the scene. I want to select the svg nodes when they are visible.




Thank you!

Cheers,
Josiah

_________________
Twirling twirling twirling toward freedom
Back to top
View user's profile Send private message Visit poster's website
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 Different colors for a node shared sc... icf80 General 1 Thu Jun 13, 2019 12:49 pm View latest post
No new posts Write Image From texture Generated by... GarfieldPig General 1 Wed May 08, 2019 11:42 am View latest post
No new posts Deep cloning an active root scene node Robert Lockyer General 7 Thu Feb 28, 2019 5:52 pm View latest post
No new posts Can i use MatrixTransform to transfo... PeterGao General 8 Fri Jan 04, 2019 1:46 pm View latest post
No new posts Update node color on demand dhhabyc General 12 Sat Nov 24, 2018 3:05 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