[osg-users] VPB Differently sized Texture and DEM files

2013-06-07 Thread Mahdi Samadzad
Dear all, I am using VPB (Virtual Planet Builder) for creating a terrain database. My DEM is a 3601x3601 GeoTiff file. The texture file that I want to use is a high resolution 5000x5000 bitmap file. I do not want to reduce my texture size to 3601x3601. But when I input the DEM and Texture files t

[osg-users] osg::ref ptr and memory leaks.

2013-06-07 Thread Roman Grigoriev
Hi, Sorry for newbee question. But I found that my program memory usage grows up to 200 k per cycle. I try to find memory leak and maybe some guru look to this code portion and give me some advice. (sorry because on linux when I copy code from qtcreator I've got some mess.) Code: osg::r

Re: [osg-users] VPB Differently sized Texture and DEM files

2013-06-07 Thread Robert Osfield
H Mahdi, The resolution of DEMs and imagery are completely decoupled in VPB, it's only the positions that the DEMs and geotiff define that will govern the geographical extents. Perhaps you data is lacking proper projections? Robert. On 7 June 2013 11:32, Mahdi Samadzad wrote: > Dear all, > > I

Re: [osg-users] osg::ref ptr and memory leaks.

2013-06-07 Thread Robert Osfield
Hi Roman, The scene graph uses ref_ptr<> internally to make sure that it's memory management is robust. In your own application you should also use ref_ptr<> for almost all cases where you would have used a C pointer before. Exceptions are cases such as inner loops where you don't want to pay th

Re: [osg-users] VPB Differently sized Texture and DEM files

2013-06-07 Thread Mahdi Samadzad
Dear Robert, Yes indeed, my imagery file is a bitmap without any geographical references (I downloaded it from Google earth satellite). So can I define extents of the imagery file in command line and make my DEM and Texture match geographically? My textures are very high resolution aerial photos a

Re: [osg-users] VPB Differently sized Texture and DEM files

2013-06-07 Thread Robert Osfield
HI Mahdi, As I am busy preparing for a trip I will have to leave it to others to help guide you through what to do to set up your imagery georeferenced. If you can't wait go have a look a gdal and it's online documentation. Robert. ___ osg-users mailin

Re: [osg-users] osg::ref ptr and memory leaks.

2013-06-07 Thread Roman Grigoriev
Hi, Robert Thanx for your quick reply, Is there any way to calculate memory usage of my custom particle system class? If I query this->smoke_right.valid() it returns false, when i remove children but As far as you've seen I don't have destructor on my node and I suspect that internal geode and

Re: [osg-users] osg::ref ptr and memory leaks.

2013-06-07 Thread Bram Vaessen
Another idea might be to use valgrind, memory doctor or some similar program to detect actuall memory leaks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54491#54491 ___ osg-users mailing list osg-

Re: [osg-users] PrecipitationEffect blending of particles

2013-06-07 Thread Louis Bouchard
robertosfield wrote: > Hi Louis, > > What on earth have you do to the example to make a remarkable colour? > Normally rain and snow and white/grey.. Also there is no motion blur > effect evident which surprises me, is this with an extremely slow > descent rate? > It's just the example with th

[osg-users] [osgDB] Registry::writeNodeImplementation()

2013-06-07 Thread Judson Weissert
Hi, I was working on OSG export related code and I noticed some interesting problems with osgDB::Registry::writeNodeImplementation() and other similar functions within Registry.cpp. The first issue is that performing the same task twice gives different result. Reproduction case: 1. Create a

Re: [osg-users] Stop osgGA::TrackballManipulator spinning

2013-06-07 Thread Patrick Keenan
Hi, here is one way without inheriting: Code: void M_OSG_viewer::Stop_spinning(void) { osg::Quat rot(manipulator->getRotation()); osg::Vec3d ctr(manipulator->getCenter()); double dist(manipulator->getDistance()); manipulator->home(0); manipulator->setDista