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 

Precipitation problems


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


Joined: 28 Oct 2015
Posts: 21

PostPosted: Wed Dec 19, 2018 9:50 pm    Post subject:
Precipitation problems
Reply with quote

We are trying to integrate precipitation from the OSG examples into an osgEarth application. In the initial attempt the application crashed every time we zoomed out beyond a certain point. In the current application included ass attachment it no longer crashes but we still have orientation problems. This issue was reported on the forum a couple years back as a geocentric issue. I can get the snow to appear and it looks normal until I try to rotate the earth to be tangent to the surface. The it disappears. We could use the precipitation if we could put it in a transform but that did not work either. Even if it was loosely attached to the camera so we could push it out in front of the viewer some distance and not try to show the particle until the viewer was close to the tangent line.
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12323

PostPosted: Thu Dec 20, 2018 8:34 am    Post subject:
Precipitation problems
Reply with quote

HI Bruce,


When I wrote the osgParticle::PrecipitationEffect is was specifically for local ground based usage, I didn't attempt the handle the case of a geocentric scene.  Off the top of my head I don't know if would be possible to adapt it - I'd need to sit down spend time review the code and thinking about the particular usage case, unfortunately I don't have much free time right now so can't just head off looking into stuff.



As a general statement, if I were to write a precipitation effect for a geocentric application right now I'd want to add extra rendering constraints to the rendering technique over what PrecitpitationEffect uses.  I would want to add geometric constraints for the coverage of the effect and support having multiple blocks of precipitation - essentially have it so we have the ability to have individual clouds with precipitation beneath them.  These precipitation blocks would naturally have their own transform that could place them in a geocentric setting.  



This is differs from PrecipitationEffect as it uses an infinite effect approach.  This scales beautifully - you can drive forever in super heavy snow for hours and never break a frame, but this approach does limit one to how general purpose it is.



With modern shaders there are probably ways of implementing the effect in a more general way, so it may be more efficient to sit down and work out how to implement exactly the type of effect you need for your application rather than trying to reuse something that wasn't written with that usage case in mind.



Cheers,

Robert.





On Thu, 20 Dec 2018 at 03:16, Bruce Clay < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
We are trying to integrate precipitation from the OSG examples into an osgEarth application.  In the initial attempt the application crashed every time we zoomed out beyond a certain point.  In the current application included ass attachment it no longer crashes but we still have orientation problems.  This issue was reported on the forum a couple years back as a geocentric issue.  I can get the snow to appear and it looks normal until I try to rotate the earth to be tangent to the surface.  The it disappears. We could use the precipitation if we could put it in a transform but that did not work either.  Even if it was loosely attached to the camera so we could push it out in front of the viewer some distance and not try to show the particle until the viewer was close to the tangent line.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75326#75326



_______________________________________________
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
View user's profile Send private message
bclay
User


Joined: 28 Oct 2015
Posts: 21

PostPosted: Thu Dec 20, 2018 1:21 pm    Post subject:
Reply with quote

Robert:
Thanks for your reply.
It was not the answer I hoped for but we move on

Bruce
Back to top
View user's profile Send private message
Trajce Nikolov NICK
Guest





PostPosted: Thu Dec 20, 2018 1:40 pm    Post subject:
Precipitation problems
Reply with quote

Hi Bruce,


you familiar with SilverLining ? Atmosphere model by SunDog (https://sundog-soft.com) .. It works well in ECEF Geocentric and it is really affordable .. Give it a shot, there is a evaluation license .. You get the code too




On Thu, Dec 20, 2018 at 2:31 PM Bruce Clay < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Robert:
  Thanks for your reply.
  It was not the answer I hoped for but we move on

Bruce

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75328#75328





_______________________________________________
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


--
trajce nikolov nick

------------------
Post generated by Mail2Forum
Back to top
Chris Hanson
Guest





PostPosted: Thu Dec 20, 2018 7:55 pm    Post subject:
Precipitation problems
Reply with quote

Seconded. Silver Lining will probably solve all your problems and the licensing cost is SUPER reasonable.

If you have any questions, hit me up or Frank Kane (the author of Silver Lining and founder of Sun Dog) is super responsive.


On Thu, Dec 20, 2018 at 3:40 PM Trajce Nikolov NICK < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi Bruce,


you familiar with SilverLining ? Atmosphere model by SunDog (https://sundog-soft.com) .. It works well in ECEF Geocentric and it is really affordable .. Give it a shot, there is a evaluation license .. You get the code too




On Thu, Dec 20, 2018 at 2:31 PM Bruce Clay < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Robert:
  Thanks for your reply.
  It was not the answer I hoped for but we move on

Bruce

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75328#75328





_______________________________________________
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


--
trajce nikolov nick

_______________________________________________
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



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
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 Problems with dae plugin John Richardson Plugins [osgPlugins] 0 Thu Apr 11, 2019 5:00 pm View latest post
No new posts [PARTIALLY SOLVED] Problems with dae ... Nikkitta Plugins [osgPlugins] 4 Mon Apr 08, 2019 3:51 pm View latest post
No new posts Particular Build Problems with OSG. Zachary1234 Build system [build] 5 Wed Mar 27, 2019 7:12 am View latest post
No new posts Problems with forum. poweruserm@live.com.au General 1 Sun Oct 28, 2018 11:45 pm View latest post
No new posts Problems porting from osg-3.4.0 to os... hvarma General 10 Wed Sep 12, 2018 3:29 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