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 

Cylinder underwater problem with dimensions > 2000.


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean]
View previous topic :: View next topic  
Author Message
Paradox
Appreciator


Joined: 19 Apr 2010
Posts: 121

PostPosted: Tue Jun 30, 2015 10:40 am    Post subject:
Cylinder underwater problem with dimensions > 2000.
Reply with quote

Hi,

I'm looking into a problem inside underwater scene: normally I use those parameters for underwater cylinder:

CylinderHeight="4000.0"
CylinderRadius="2000.0"

I'm using osgHimmel as sky /but I can see the same problem with the original osgOcean sky dome) and the camera setup for near-far is:

Near-Far Mode: osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
Near-Far value: 0.0009

If I attach a camera to an object inside position (0, 3000, -20)-(0,-3000,-20) all works fine. For all values greater then above I can see the sky behind in some camera setup. I've made a video which make a camera rotation at (0, 3500, -20) position. You can see the problem.

I've tried some other configuration about Near-Far mode and value without success. In others, seems to be impossible to set a greater value for CylinderRadius because in this case the same problem come for low distance also!

In practice, it's impossible to move object over 2000 units from 0 without this problem. For example, cylinder at 20.000 and object in 0 show the sky behind underwater.

Can you tell me some way to look?
You can see the video here: https://vid.me/NAeB

Thank you!

Cheers,
Dario
Back to top
View user's profile Send private message
Paradox
Appreciator


Joined: 19 Apr 2010
Posts: 121

PostPosted: Wed Jul 01, 2015 1:39 pm    Post subject:
Reply with quote

Hi,

I have tried the osgOcean example also and in effect this problem seems to happen here also. After a lot of movement underwater I can see the plane behind. Rotating left or right disappears.


Thank you!

Cheers,
Dario
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean] 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 Scale problem while transforming obje... YuraIU02 General 1 Sat Apr 15, 2017 4:26 pm View latest post
No new posts OSG 3.4 and Qt 5 cmake problem. Found... Elias Tarasov General 1 Mon Apr 10, 2017 12:26 pm View latest post
No new posts osg::Image::setImage problem evanyftsai General 6 Sat Feb 18, 2017 2:38 am View latest post
No new posts problem with shapefile height when lo... vinothrajendran4 General 2 Thu Feb 16, 2017 12:22 pm View latest post
No new posts Jittering/Flickering geometry problem umesh General 3 Tue Feb 14, 2017 10:53 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