[osg-users] [vpb] Why is my database so big?
Hi, I am trying to build a VPB database of the United Kingdom using the freely available Ordnance Survey OpenData. This gives me as input an elevation dataset which is approximately 630 Mbytes of ArcGIS ASCII grids with a 50 metre posting, and a collection of TIFF map image overlays which total 4.5gb and have a 2.5 metre resolution. I have 168 GBytes of free space available for the output database. By default VPB appears to split each level into 4 sub-tiles at the next level. In an ideal world this would appear to give the geometric progression T = a + a/4 + a/16 + a/64.etc. which converges on T = 4a/3 (thank you Archimedes) where a is the size of the input datasets and T is the total size of the generated database. I know this is a gross simplification but at least it should provide some guidance on how much disk space will be needed (i.e 7.2 Gbytes) Using VPB 0.9.10 I run out of disk space some time before the run has finished. I set up the run to use DDS compression on the imagery and .ive output (the default). VPB calculates that the optimum number of levels is 8 and that the final level should have 64 subtiles on the X axis and 128 on the Y. OK, I know I have made a stupid mistake in my assumptions. But I find I hard to believe I am so far out. Help! Roger -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35175#35175 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg question
Michael W. Hall writes: My bad. The error now states: osgversion: symbol lookup error: /usr/local/lib64/libosg.so.70: undefined symbol: _ZN11OpenThreads5MutexC1ENS0_9MutexTypeE Ideas? It seems you are mixing libraries and executables from different OSG versions. Use the ldd command with osgversion in order to now which so's are picked for your system an environment. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Shadow implementation
Hi, I have tried using StandardShadowMap. However I am having strange effect as attached in this post. Could anyone give some clue what is wrong? Thank you! Cheers, Linda -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35179#35179 Attachments: http://forum.openscenegraph.org//files/shadow_500.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ArgumentParser::isString bug?
Hi, I've decided to give the osg ArgumentParser class a try. Is the method: bool ArgumentParser::isString(const char* str) { if (!str) return false; return true; //return !isOption(str); } doing as advertised? The comment says: /** Return true if string is non-NULL and not an option in the form * -option or --option. */ Thanks, John ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] StandardShadowMap effect
Hi, I tried using StandardShadowMap but however, have strange result as attached. Could anyone give some clue as what went wrong? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35176#35176 Attachments: http://forum.openscenegraph.org//files/shadow_213.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How can I get a screenshot from the specified window?
Hi, How can I get a screenshot from the specified window? I have a multi-dialog app created by MFC.And I use CompositeViewer to show a model in two dialog,the compositeviewer contains two viewers,which correspond to the two dialogs separately.My code is: Code: viewer1-getCamera()-setPostDrawCallback(new CaptuerDrawCallBack(image_c.get())); viewer2-getCamera()-setPostDrawCallback(new CaptuerDrawCallBack(image_c.get())); c_viewer-frame(); struct CaptuerDrawCallBack:public osg::Camera::DrawCallback { CaptuerDrawCallBack(osg::ref_ptrosg::Imageimage) { _image=image; } ~CaptuerDrawCallBack(){} virtual void operator()(const osg::Camera camera)const { _image-allocateImage(720,576,1,GL_RGBA,GL_UNSIGNED_BYTE); _image-readPixels(0,0,720,576,GL_RGBA,GL_UNSIGNED_BYTE); pData=_image-data(); } osg::ref_ptrosg::Image_image; Where c_frame is a CompositeViewer.It only can get a screenshot from the viewer2.How can I get a screenshot from the two windows separately? Thank you! Cheers, Duan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35181#35181 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [vpb] VPB vs osgEarth...
Glenn and Robert, Thanks much for the input. I'll try out osgEarth to see how it works in a small app I have... Thanks again, -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Glenn Waldron Sent: Thursday, December 23, 2010 3:22 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [vpb] VPB vs osgEarth... Shayne, Whether you get a palpable performance hit depends on a lot of factors. One of osgEarth's features is the ability to pull data from web mapping services (similar to Googe Maps). That type of data is pre-tiled into raster pyramids - which is what VPB does too. So if your source data is similarly prepared, you can achieve loading speeds comparable to a pre-generated terrain model. osgEarth includes tools for that. osgEarth's caching stores multi-resolution pyramids of source data, so if you have to ingest expensive data it will only be a performance hit the first time through. If you're loading flat files - GeoTIFFs, DEMs, etc - then there is some processing overhead in pulling in the data, especially if it needs reprojecting. But otherwise, you might be surprised at how fast is actually is. It is worth mentioning that osgEarth is not just a terrain engine, but a whole toolkit. It includes an API for coordinate conversion, support for vector features, utilities for clamping, a programmable manipulator, plugins for lots of web- and file-based data sources, and shader composition support. Glenn Waldron : Pelican Mapping On Thu, Dec 23, 2010 at 2:59 PM, Shayne Tueller shayne.tuel...@hill.af.mil wrote: All, Up to this point, we've used VPB for building our databases that our OSG app uses. However, I've contemplated taking a look at osgEarth for future consideration. My question is, is what advantages are there for using osgEarth vs. VPB? I understand that source content (DTED, GeoTiff, etc.) is loaded on the fly in osgEarth but doesn't that hurt performance when compared to a statically built database done with VPB? Thanks for any input in advance... -Shayne ... Thank you! Cheers, Shayne -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35137#35137 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [vpb] geographic to geocentric coordinate transformation
Hi, I am using osgdem to generate a terrain from a set of dted-files in geocentric coordinates. What I am trying to do next is to navigate the camera along a path given in geographic coordinates (lat, long, alt). However, when I try to convert a geographic coordinate (of which I am sure from where the terrain is visible) to geocentric coordinates, and place my camera there I do not get to see anything. I transform the coordinates using osg:EllipsoidModel. I also realized that I am getting weird output results from the Ellipsoid transformation: when I construct a bounding sphere bounding the whole terrain (built in geocentric coord-sys) and test a point at the center of the terrain (converted from geographic to geocentric coordinates) to see if it is included in this bonding sphere, it turns out that this point in geocentric coordinates is not included inside this bounding sphere - which is a contradiction. am I missing something when performing the transformation from geographic to geocentric coordinates? are there other transformations I have to incorporate into my calculation? or am I building my terrain database with the wrong parameters ? I use --geocentric option and I pass the root directory of all dted files. I use osg-version 2.9.5 and virtual-planet-builder-v11. any help is greatly appreciated.. Thank you! Cheers, deniz -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35183#35183 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StandardShadowMap effect
Hi Linda, Looks like shadow map was rendered using different projection than the texture projection which is applied by shadow texgen. This is most probably a result of texgen unit conflict. Does your model use texture coordinates on the same stage as shadow map (1 by default) ? But that issue could be also caused by other factors (old ATI drivers, texture matrix settings etc) so it would be best it you could prepare a test case and post it on forum. You may also try ShadowMap which should give you very similar results to StandardShadowMap and see if the issue is present there. ShadowMap does not use Vertex shaders so if your issue is caused by something in Vertex setup phase it may not appear in ShadowMap. Cheers, Wojtek Lewandowski -Oryginalna wiadomość- From: Linda Lee Sent: Monday, December 27, 2010 2:02 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] StandardShadowMap effect Hi, I tried using StandardShadowMap but however, have strange result as attached. Could anyone give some clue as what went wrong? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35176#35176 Attachments: http://forum.openscenegraph.org//files/shadow_213.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] denaulay triangles calculate error
Hi, i'm working about using polytopeintersector to intersect the terrrain , and then I use the intersect points to construct my dulaunay .. but there comes out some triangle cover the oter triangle ,that meams i can't use all the tiangles to calculate area of the terrain being selected. here are two pictures ,you can see some triangles are extra . someone can help me please? [img]http://photo.yupoo.com/qylibohao/AJbeu7Cx/medium.jpg[/img] [img]http://photo.yupoo.com/qylibohao/AJbeqWYw/medium.jpg[/img] Thank you! Cheers, mark___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How can I get a screenshot from the specified window?
Hi, I have already known the handle of each window. ... Thank you! Cheers, Duan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35186#35186 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org