Re: [osg-users] memory releasing problem by addchild and removechild

2014-03-13 Thread Robert Osfield
On 12 March 2014 16:21, Lv Qing donlvq...@msn.com wrote: what is your recommendation reliable tools for tracking memory by windows? Linux ;-) I haven't actually used Windows for about 13 years, and even then it was only for a short spell experimenting with a home pc before I installed

Re: [osg-users] memory releasing problem by addchild and removechild

2014-03-13 Thread Sebastian Messerschmidt
Hi Lv, can you provide a full compiling example? Then I can test it with the Intel Compiler tools. Unfortunately they are not free but I have a license in the company. I agree with Robert, that the memory management with ref_ptrs is rock-stable if used correctly, so a full example could help

[osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
Hi, I have a problem which Im not able to solve. Im using this piece of code in my application: Code: osg::ref_ptrosg::Image video1 = osgDB::readImageFile( external/videos/a.mp4.ffmpeg ); which always returns NULL pointer. The path is right, I even tried absolute path, I tried move that mp4

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Sebastian Messerschmidt
Hi Petr, Do you have ffmpeg plugin built and installed? Here is small snippet from my application: std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); osg::Image* image =

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
using export OSG_NOTIFY_LEVEL=DEBUG I found Warning: dynamic library 'osgPlugins-3.2.1/osgdb_ffmpeg.so' does not exist (or isn't readable): osgPlugins-3.2.1/osgdb_ffmpeg.so: cannot open shared object file: No such file or directory DynamicLibrary::failed loading

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Sebastian Messerschmidt
Hi Petr, What is your OpenSceneGraph version? Did you build it from scratch and compile it with ffmpeg? For me it seems you have some mixed install here. using export OSG_NOTIFY_LEVEL=DEBUG I found Warning: dynamic library 'osgPlugins-3.2.1/osgdb_ffmpeg.so' does not exist (or isn't

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
I downloaded newest release - 3.2.1 rc2 clasiic style: configure make make install But the thing is that ffmpeg wont build (skipped?). All plugins were built but ffmpeg. In source folder src there are source files for ffmpeg. Are there any pre-requisites? Any reason why all plugins were built

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Sebastian Messerschmidt
Hi Petr, sorry I can't help you with this. I use CMake to generate the projects and usually compile under Windows only. Cheers Sebastian I downloaded newest release - 3.2.1 rc2 clasiic style: configure make make install But the thing is that ffmpeg wont build (skipped?). All plugins were

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Alberto Luaces
Petr Svoboda writes: I downloaded newest release - 3.2.1 rc2 clasiic style: configure make make install But the thing is that ffmpeg wont build (skipped?). All plugins were built but ffmpeg. In source folder src there are source files for ffmpeg. Are there any pre-requisites? Any reason

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
I downloaded latest libav, make, make instal etc.. Then I just re-run building osgPlugins and ffmpeg started building and crashed with some errors Code: OpenSceneGraph-3.2.1-rc2/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*,

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Robert Osfield
Hi Petr, On 13 March 2014 13:31, Petr Svoboda upd...@seznam.cz wrote: I downloaded latest libav, make, make instal etc.. Which version of ffmpeg were you trying to compile against? ffmpeg keeps changing it's API, we do try to keep up but it's a moving goal post. The ffmpeg version I'm

Re: [osg-users] PolytopeIntersector, LineSegmentIntersector, and PagedLOD

2014-03-13 Thread Olivier Tournaire
Hi Chris, I also fight a long time with PolytopeIntersector and PagedLOD. Did you add callback to read your PagedLOD? See osgSim::LineOfSight for an example. Does it help? Regards 2014-03-12 21:15 GMT+01:00 Chris Long cl...@setcorp.com: Hi, I'm getting unexpected behavior from

Re: [osg-users] PolytopeIntersector, LineSegmentIntersector, and PagedLOD

2014-03-13 Thread Robert Osfield
HI Chris, It really is hard to know what is going on with your usage as I don't know you data or the code that you are using with the OSG. It could be a problem with the orientation of the planes of the Polytope - they are need to be consistent with all their normals pointing inwards. If you

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Petr Svoboda
Ok, so situation: - running on Ubuntu 13.04 - downloaded latest OpenSceneGraph-3.2.1-rc2 - downloaded http://git.libav.org/?p=libav.git;a=snapshot;h=HEAD;sf=tgz which should be latest libav I suppose Then I tried to recompile OpenSceneGraph Plugins with this errors: Code:

Re: [osg-users] ReadImageFile fails open video

2014-03-13 Thread Robert Osfield
HI Petr, Pulling in ffmpeg's head will almost certainly expose you to changes in the API that we haven't caught up with yet. Try pulling ffmpeg from 13.04's repositories. Robert. On 13 March 2014 15:35, Petr Svoboda upd...@seznam.cz wrote: Ok, so situation: - running on Ubuntu 13.04 -

Re: [osg-users] PolytopeIntersector, LineSegmentIntersector, and PagedLOD

2014-03-13 Thread Chris Long
Hi, Thanks for the tips. I know the planes' orientations need to be right. I assumed that by creating the Polytope from a BoundingBox that they would be, and when I inspect the values I think they're correct. I did try flipping them all in case I was wrong about the orientation, but that

[osg-users] Use osgShadow_shadowTexture in subsequent RTT pass?

2014-03-13 Thread Conan
Is it possible to use osg::ShadowMap to generate the osgShadow_shadowTexture texture, then use that texture in a subsequent RTT pass as input? CD ___ osg-users mailing list osg-users@lists.openscenegraph.org