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 

Camera collision with terrain


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty]
View previous topic :: View next topic  
Author Message
ht11
Newbie


Joined: 13 Oct 2017
Posts: 1

PostPosted: Fri Oct 13, 2017 7:34 am    Post subject:
Camera collision with terrain
Reply with quote

Hi,

I've create terrain with VirtualPlanetBuilder, what I need to do to prevent the camera sinking under the loaded surface. In TerrainManipulator class, exist method which as I understand will helps me to do this, like setNode, this method is called from View class by setCameraManipulator where scene will be attached to camera manipulator, but methods of TerrainManipulator performMovementMiddleMouseButton and performMovementRightMouseButton never called any where, so camera intersection with scene can't be handled. Is this mean that i need to create my own manipulator which should be inherited from TerrainManipulator and where I have to handle camera collision or is there any other way to resolve my problem.

Thank you!
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 [3rdparty] 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 When gets the view matrix of a camera... wernerM General 1 Sat Nov 18, 2017 4:08 pm View latest post
No new posts How to set field of view of second sl... kefaline General [forum] 2 Wed Oct 04, 2017 1:29 pm View latest post
No new posts Rotating Slave Camera Views Jim Perkins General 1 Tue Sep 26, 2017 7:57 pm View latest post
No new posts Is Camera should be a MatrixTransform? mp3butcher General 0 Mon Sep 18, 2017 4:42 pm View latest post
No new posts Continuous Terrain moet General 14 Sat Sep 16, 2017 7:51 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