fixed the issue by skipping setlocale VTBuilder/App.cpp 80 On Thu, Feb 9, 2012 at 5:45 PM, Sergey Kurdakov <[email protected]>wrote:
> Hi > > I would suggest, that you compile http://code.google.com/p/vtp/ there you > will see, how to > lay roads ( they are similar to rivers, just consist of straight segments, > and rivers from curved segments), > > if you use http://qt.nokia.com/products/developer-tools/ you would be > able to visually set breakpoints > and see, how roads are laid onto terrain. > > also - the project http://osgearth.org/ has code to combine different > layers. > > the other one which might be of interest is > http://www.osgvisual.org/projects/osgvisual/ > > so it is only by debugging someones code you would get idea, > > there is also FlightGear simulator which is built using osg - it also has > rivers etc. You may ask where rivers are laid in code in FlightGear dev > list.. > > you may also take a look at delta3d http://www.delta3d.org > though old, this page seems appropriate > http://www.delta3d.org/article.php?story=20051013142113452 > > it is not that easy, still, from my experience - looking for familiar > words like road in code it is possible to set breakpoint or watchpoint ( > that the variable changed somewhere ) and then figure out what happens. > > Also I would suggest to search for osg books ( they are available on the > internet in pdf format ) from that books you would get a strong foundation > to move forward. > > Best regards > Sergey > > > On Thu, Feb 9, 2012 at 3:27 PM, Mohammed Rashad < > [email protected]> wrote: > >> Thanks Sergery. But I am a newbie to this OSG,OpenGL and 3D. But I am >> going to do my phd related to virtual reality which I think will help to >> contribute to OSG and entire community because I am on the open source >> coding part. I do C++ well. >> >> So If you have some free time with you. can you tell me a detailed step >> for visualizing water over dem. >> >> The mail you posted before may be a detailed step but not for a beginner >> like me. >> >> Thanks in advance >> >> On Thu, Feb 9, 2012 at 4:23 AM, Sergey Kurdakov >> <[email protected]>wrote: >> >>> Hi Rashad, >>> >>> in case you did not get reply from osgRiver author - few spare thoughts >>> ( do not expect too much, just some ideas), >>> >>> I think, that the approach to render rivers over dem is many step task. >>> >>> 1) st you decide where river would be in 2D >>> 2) nd compute intersections along river boundaries ( with some interval >>> step ), and compute heigh of >>> river ( river would be represented as a set of patches ) if it >>> approximates those points ( the rivers could change it's height see code >>> and first pdf I sent ) >>> >>> 3) if the error between terrain and river is big you should re tesselate >>> the whole thing with new points >>> >>> basically you should change you dem so that river was below highest >>> points along the 2D path ( when seen from above). >>> >>> how to re tesselate? >>> >>> I think, that it is possible to use http://gts.sourceforge.net/ though >>> tessellating square grid is trivial, then >>> you can move internal points to height which are better suite your needs. >>> then you can join your more tesselated patches with whole dem as >>> described in http://hal.inria.fr/docs/00/41/62/21/PDF/eusipco09_3_1.pdf >>> >>> if still it gives too much error you might then develop a custom terrain >>> using >>> http://tetgen.berlios.de/ ( http://tetgen.berlios.de/features.html#F3) >>> >>> so that you place a lot of pixels on your terrain ( you might heigh test >>> for heights between dem grid ) >>> and also put desired height for river, then run tetgen over it to get >>> new mesh, with this mesh placing river would be just rendering river >>> patches after mesh is rendered. >>> >>> >>> you might try to search for some code which performs similar operations >>> ( maybe http://geodynamics.org/ ?) >>> >>> >>> also take a look at http://code.google.com/p/vtp/ it is virtual terrain >>> project, based on OpenSceneGraph, >>> it should have some utilities to work with DEM. >>> >>> also see >>> http://www.ruraltech.org/pubs/theses/mouton/mouton_ms_thesis.pdf >>> http://www.geocarto.com.hk/cgi-bin/pages1/mar06/3_Maathuis.pdf >>> >>> >>> >>> Best regards >>> Sergey >>> >>> >>> On Tue, Feb 7, 2012 at 5:56 PM, Mohammed Rashad < >>> [email protected]> wrote: >>> >>>> thanks. will put a mail to him >>>> >>>> >>>> On Tue, Feb 7, 2012 at 7:19 PM, Sergey Kurdakov <[email protected] >>>> > wrote: >>>> >>>>> Hi >>>>> >>>>> try to contact initial author >>>>> >>>>> Quintijn Hendrickx [email protected] >>>>> >>>>> not sure is he still available by this address, but I just sent you >>>>> code ( and know it was applied to terrains ) >>>>> but cannot assist with anything else. >>>>> >>>>> Regards >>>>> Sergey >>>>> >>>>> >>>>> On Tue, Feb 7, 2012 at 5:42 PM, Mohammed Rashad < >>>>> [email protected]> wrote: >>>>> >>>>>> i had done creating cmake for osgRiver with some fixes for linux. >>>>>> i need to know how to run osgRiver on terrain data >>>>>> >>>>>> >>>>>> On Sat, Feb 4, 2012 at 3:02 PM, Sergey Kurdakov < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi >>>>>>> >>>>>>> cmake files were absent from initial download, >>>>>>> but I think you could take osgOcean cmake files and edit them to fit >>>>>>> osgRiver. >>>>>>> >>>>>>> Regards >>>>>>> Sergey >>>>>>> >>>>>>> >>>>>>> On Sat, Feb 4, 2012 at 10:12 AM, Mohammed Rashad < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> do you have some cmake files . I am using ubuntu linux >>>>>>>> >>>>>>>> >>>>>>>> On Fri, Feb 3, 2012 at 7:43 PM, Mohammed Rashad < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> thanks indeed Sergery. Will defenitely look into it and get back >>>>>>>>> to you. >>>>>>>>> >>>>>>>>> Thanks again >>>>>>>>> >>>>>>>>> >>>>>>>>> On Fri, Feb 3, 2012 at 7:32 PM, Sergey Kurdakov < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> final part 3 of osgRiver >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Fri, Feb 3, 2012 at 6:02 PM, Sergey Kurdakov < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> part 2 of osgRiver >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Fri, Feb 3, 2012 at 6:01 PM, Sergey Kurdakov < >>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi, >>>>>>>>>>>> >>>>>>>>>>>> see my reply in mailing list, >>>>>>>>>>>> next three messages will be with attachment of osgRiver >>>>>>>>>>>> compressed with 7z ( free archiver - take it on the net if you >>>>>>>>>>>> don't) >>>>>>>>>>>> >>>>>>>>>>>> Regards >>>>>>>>>>>> Sergey >>>>>>>>>>>> >>>>>>>>>>>> On Fri, Feb 3, 2012 at 3:32 PM, Mohammed Rashad < >>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> All, >>>>>>>>>>>>> I know my question doesnt have a single line answer. >>>>>>>>>>>>> But it will be great if somone provides some info or sparks >>>>>>>>>>>>> for starting >>>>>>>>>>>>> I have an SRTM data. I created deom using osgdem >>>>>>>>>>>>> and i got a srtm_12.ive file which I visualized using >>>>>>>>>>>>> osgviewer and is fine >>>>>>>>>>>>> Now I want to show that >>>>>>>>>>>>> How a water flow occurs in DEM >>>>>>>>>>>>> or srtm_12.ive data >>>>>>>>>>>>> dem contains some valleys and hills so i need to find a way in >>>>>>>>>>>>> OSG to display water get accumulated on terrain valleys(no >>>>>>>>>>>>> realtime >>>>>>>>>>>>> rendering). >>>>>>>>>>>>> >>>>>>>>>>>>> For a given altitude I need to show the coast of dem which is >>>>>>>>>>>>> filled with water >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Regards, >>>>>>>>>>>>> Rashad >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> osg-users mailing list >>>>>>>>>>>>> [email protected] >>>>>>>>>>>>> >>>>>>>>>>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Regards, >>>>>>>>> Rashad >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Regards, >>>>>>>> Rashad >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Rashad >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Rashad >>>> >>>> >>> >> >> >> -- >> Regards, >> Rashad >> >> > -- Regards, Rashad
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

