[osg-users] osgEarth Sky enable
Hello ! How do I have to setup the SkyNode by code? In the past I sed this: // SKY const Config externals = mapNode-externalConfig(); Config skyConf = externals.child( sky ); double hours = skyConf.value( hours, 3.0 ); s_sky = new SkyNode( mapNode-getMap() ); s_sky-setDateTime( 2011, 3, 6, hours ); s_sky-attach( viewer ); root-addChild( s_sky ); But now this is not working . What do I m doing wrong please? -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgEarth SkyNode code setup
In the past I sed this: // SKY const Config externals = mapNode-externalConfig(); Config skyConf = externals.child( sky ); double hours = skyConf.value( hours, 3.0 ); s_sky = new SkyNode( mapNode-getMap() ); s_sky-setDateTime( 2011, 3, 6, hours ); s_sky-attach( viewer ); root-addChild( s_sky ); But now is not working . What do I m doing wrong please? On Tue, Oct 21, 2014 at 9:53 AM, Carlos Sanches ces...@gmail.com wrote: Hello ! How do I have to setup the SkyNode by code? Thanks -- -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgEarth SkyNode code setup
Hello ! How do I have to setup the SkyNode by code? Thanks -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OsgEarth for comercial uses
Hello Glenn ! I d like to know how to proceed to use the osgearth in weather forecast in a broadcast television. We are developing an application using OsgEarth and readymap or arcgis online maps. We ll try to sell this in a future here in Brazil . We want to know how much ll cost this. And if you can sen a better map because some places in Brazil area we have clouds over the tiles. You can answer me in a private e-mail ces...@gmail.com Thank you ! On Fri, Jun 21, 2013 at 12:39 PM, Glenn Waldron gwald...@gmail.com wrote: Carlos, Best way is to use the contact form: http://pelicanmapping.com/?page_id=2 Or email me at gwald...@pelicanmapping.com Thanks. Glenn Waldron / @glennwaldron On Fri, Jun 21, 2013 at 11:34 AM, Carlos Sanches ces...@gmail.com wrote: Hello ! Please I m trying to contact pelican for information about to use maps for comercial ends. The e-mails are returning. Does anybody knows how to contact then ? Thank you ! -- ___ 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OsgEarth for comercial uses
Hello ! Please I m trying to contact pelican for information about to use maps for comercial ends. The e-mails are returning. Does anybody knows how to contact then ? Thank you ! -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgearth How to use cache .json ??
Hello ! I m using the osgearth 2.3.0 . I generated the cache file but . How I have to use it ? Before was a xml now this .json. I m trying this but the earth is white. map name=readymap.org type=geocentric version=2 image name=readymap_imagery driver=tms url/home/carlos/cache/ccb3f50c_3be5346/osgearth_cacheinfo.json/url /image /map what I have to change ? Thank you -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ffmpeg version to use ???
Hello ! I d like to know what version of ffmpeg I have to use to compile osg 3.0.1 in linux ? Thanks -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ANN: osgEarth 2.3 - terrain rendering SDK
where can I download it ? On Thu, Nov 1, 2012 at 12:54 PM, Glenn Waldron gwald...@gmail.com wrote: osgEarth 2.3 is now available! osgEarth is a powerful terrain rendering SDK built on top of OpenSceneGraph. It supports web standards, high-resolution imagery, elevation data, vector features, thousands of map projections, annotations, and dozens of utilities for geospatial visualization. It is completely cross-platform and uses the same CMAKE build system as OSG. Version 2.3 adds GLES2 (iOS) support, shadowing, GPU-based color filters, a new terrain engine, and lots of other goodies. Check out the Release Notes http://www.osgearth.org/wiki/ReleaseNotes23 for more information! Start here: * osgEarth main site http://osgearth.org/ * GitHub repository http://github.com/gwaldron/osgearth * Release notes http://www.osgearth.org/wiki/ReleaseNotes23 Or course, osgEarth would never be possible without the OpenSceneGraph community's dedication to building an excellent platform for developers. Thank you and enjoy! Glenn Waldron / Pelican Mapping / @glennwaldron ___ 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] Compilation error ffmpeg
Hi all !!! I m trying to compile OSG 3.0.0 in ubuntu 64bits I m trying using ffmpeg with many versions but the error persist : In file included from /usr/local/include/libavutil/ avutil.h:327:0, from /usr/local/include/libavutil/samplefmt.h:22, from /usr/local/include/libavcodec/avcodec.h:30, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:12, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /usr/local/include/libavutil/common.h:170:47: error: ‘UINT64_C’ was not declared in this scope In file included from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/FrameStamp:22:0, from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/BufferObject:20, from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/Image:17, from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/AudioStream:17, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:12, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1: /usr/include/c++/4.7/ctime: At global scope: /usr/include/c++/4.7/ctime:62:11: error: ‘::clock_t’ has not been declared /usr/include/c++/4.7/ctime:63:11: error: ‘::time_t’ has not been declared /usr/include/c++/4.7/ctime:66:11: error: ‘::clock’ has not been declared /usr/include/c++/4.7/ctime:67:11: error: ‘::difftime’ has not been declared /usr/include/c++/4.7/ctime:68:11: error: ‘::mktime’ has not been declared /usr/include/c++/4.7/ctime:69:11: error: ‘::time’ has not been declared /usr/include/c++/4.7/ctime:70:11: error: ‘::asctime’ has not been declared /usr/include/c++/4.7/ctime:71:11: error: ‘::ctime’ has not been declared /usr/include/c++/4.7/ctime:72:11: error: ‘::gmtime’ has not been declared /usr/include/c++/4.7/ctime:73:11: error: ‘::localtime’ has not been declared /usr/include/c++/4.7/ctime:74:11: error: ‘::strftime’ has not been declared /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’: /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:12: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4188) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:72: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4188) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream*)’: /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4102) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:44: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4102) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘size_t osgFFmpeg::FFmpegDecoderAudio::decodeFrame(void*, size_t)’: /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:341:48: error: ‘INT64_C’ was not declared in this scope make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1 make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2 make: *** [all] Error 2 Any idea of what can I do ? THank you! -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Compilation error using ffmpeg
Hi all !!! I m trying to compile OSG 3.0.0 in ubuntu 64bits I m trying using ffmpeg with many versions but the error persist : In file included from /usr/local/include/libavutil/avutil.h:327:0, from /usr/local/include/libavutil/samplefmt.h:22, from /usr/local/include/libavcodec/avcodec.h:30, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:12, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’: /usr/local/include/libavutil/common.h:170:47: error: ‘UINT64_C’ was not declared in this scope In file included from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/FrameStamp:22:0, from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/BufferObject:20, from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/Image:17, from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/AudioStream:17, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:12, from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1: /usr/include/c++/4.7/ctime: At global scope: /usr/include/c++/4.7/ctime:62:11: error: ‘::clock_t’ has not been declared /usr/include/c++/4.7/ctime:63:11: error: ‘::time_t’ has not been declared /usr/include/c++/4.7/ctime:66:11: error: ‘::clock’ has not been declared /usr/include/c++/4.7/ctime:67:11: error: ‘::difftime’ has not been declared /usr/include/c++/4.7/ctime:68:11: error: ‘::mktime’ has not been declared /usr/include/c++/4.7/ctime:69:11: error: ‘::time’ has not been declared /usr/include/c++/4.7/ctime:70:11: error: ‘::asctime’ has not been declared /usr/include/c++/4.7/ctime:71:11: error: ‘::ctime’ has not been declared /usr/include/c++/4.7/ctime:72:11: error: ‘::gmtime’ has not been declared /usr/include/c++/4.7/ctime:73:11: error: ‘::localtime’ has not been declared /usr/include/c++/4.7/ctime:74:11: error: ‘::strftime’ has not been declared /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’: /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:12: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4188) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:72: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4188) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream*)’: /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4102) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:44: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4102) [-Wdeprecated-declarations] /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘size_t osgFFmpeg::FFmpegDecoderAudio::decodeFrame(void*, size_t)’: /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:341:48: error: ‘INT64_C’ was not declared in this scope make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1 make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2 make: *** [all] Error 2 Any idea of what can I do ? THank you! -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] server is down !
Hi . I m trying to access the OSG website and download by svn the new version but looks like the that the site is down . Do you know how long to back on line ? -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Invitation to connect on LinkedIn
LinkedIn Carlos Sanches requested to add you as a connection on LinkedIn: -- mingyue, I'd like to add you to my professional network on LinkedIn. - Carlos Accept invitation from Carlos Sanches http://www.linkedin.com/e/-qywqtf-gvnw7bno-1c/ki9l5dc0WBU2jCm_-ENl0WSMUV6C2kw9fBND0WJWSkAnjfMIiTR/blk/I158008517_125/6lColZJrmZznQNdhjRQnOpBtn9QfmhBt71BoSd1p65Lr6lOfPkOclYTcjkUc30Udj59bQRGe6xColxUbPARdPkQdP8Od3cLrCBxbOYWrSlI/EML_comm_afe/?hs=falsetok=0kpOtb0p-Bp501 View invitation from Carlos Sanches http://www.linkedin.com/e/-qywqtf-gvnw7bno-1c/ki9l5dc0WBU2jCm_-ENl0WSMUV6C2kw9fBND0WJWSkAnjfMIiTR/blk/I158008517_125/dj8NnPsNdjwMc3wRckALqnpPbOYWrSlI/svi/?hs=falsetok=19epMzkD2Bp501 -- Why might connecting with Carlos Sanches be a good idea? Carlos Sanches's connections could be useful to you: After accepting Carlos Sanches's invitation, check Carlos Sanches's connections to see who else you may know and who you might want an introduction to. Building these connections can create opportunities in the future. -- (c) 2011, LinkedIn Corporation___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Picking objets
Hi ! I m trying to detect wich object is selected with LineSegmentIntersector . I m using the example osgpick to help. The problem is that I can only see where the line is intersected but I want to execute some command only if a test objet is intersected. For example if I have two spheres A and B . How do I know if I m touching only the A sphere ? thank you ! -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Invitation to connect on LinkedIn
LinkedIn Carlos Sanches requested to add you as a connection on LinkedIn: -- mingyue, I'd like to add you to my professional network on LinkedIn. - Carlos Accept invitation from Carlos Sanches http://www.linkedin.com/e/-qywqtf-gppgdmgp-3g/ki9l5dc0WBU2jCm_-ENl0WSMUV6C2kw9fBND0WJWSkAnjfMIiTR/blk/I49312073_125/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYRcz5vcPsMcz4Pejh9bQRGe6xColxUbPARdPkQdP8Od3cLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Carlos Sanches http://www.linkedin.com/e/-qywqtf-gppgdmgp-3g/ki9l5dc0WBU2jCm_-ENl0WSMUV6C2kw9fBND0WJWSkAnjfMIiTR/blk/I49312073_125/3kOclYPdP0OcjcVd4ALqnpPbOYWrSlI/svi/ -- Why might connecting with Carlos Sanches be a good idea? Carlos Sanches's connections could be useful to you: After accepting Carlos Sanches's invitation, check Carlos Sanches's connections to see who else you may know and who you might want an introduction to. Building these connections can create opportunities in the future. -- (c) 2011, LinkedIn Corporation___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Free memory from Particles
Hi all !! I have a scene and in a moment I switch ON a lot of particle emitter. Everything is going well but I see in top linux comand that after that I turn OFF the particles, the memory continues with the space alocated when I turned ON. I m using switch node to atach them. Is there some way to free memory alocated by particle emitters after that I switch OFF them ? THanks ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Real camera images in OSG
yeah your first instruction is my doubt ! get block of data from camera How do I get this block ? what's the interface to the camera? thanks ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Real camera images in OSG
Hi ! we have a camera already . is a panasonic HVX200 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Real camera images in OSG
I ll try . I know that this camera do stream in windows using an other software. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Changing mouse cursor
Hi all ! How Can I change the mouse cursor for some other art that I did ? thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Changing mouse cursor
Linux Ubuntu On Tue, Mar 23, 2010 at 10:27 AM, Trajce (Nick) Nikolov nikolov.tra...@gmail.com wrote: which platform? which OS? -Nick On Tue, Mar 23, 2010 at 3:26 PM, Carlos Sanches ces...@gmail.com wrote: Hi all ! How Can I change the mouse cursor for some other art that I did ? thanks ___ 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 -- Carlos Sanches Desenvolvimento de software Tel: 55 11 3816 2888 Cel: 55 11 6366 2677 msn: ce...@hotmail.com Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Make money with OSG
Hi all ! In my job we are using OSG in a project. When we finish it we can sell the software that we developed ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Make money with OSG
We did a weather forecast software for TV broadcast . The best 3D weather forescast software in the world with 3d rain and clouds with easy interface that anyone can create a new sequence based in a Qt interface :D On Mon, Feb 8, 2010 at 3:21 PM, Robert Osfield robert.osfi...@gmail.comwrote: HI Carlos, On Mon, Feb 8, 2010 at 5:09 PM, Carlos Sanches ces...@gmail.com wrote: In my job we are using OSG in a project. When we finish it we can sell the software that we developed ? Yes, this is exactly what the majority of OSG users do ;-) Robert. ___ 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] My OSG project
We don´t have a web site yet but somebody put some videos in youtube. http://www.youtube.com/watch?v=hpa1J2Gg2bofeature=related The virtual set is an other software . The OSG was used in all the map graphics ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] My OSG project
Thanks :D This link you can see the 3D rain. http://www.youtube.com/watch?v=WGnjboNqpjM ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] My OSG project
really cool !! One of the my problems is where to find the relief data . the texture and elevation data . Where did you get it ?? ...and How did you do the realief in a globe ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSGEXP page
Hi all !! hey guys where can I get OSGEXP for 3dmax 9 ? I think that the page is offline . thks ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgdem dont build height
Hi ! I m trying to build my reliefs . I already did it some time ago in others versions . Now I m not understanding because when I use osgviewer only appears the plane with the texture but not with the height data. I m using osg 2.9.5. i downloaded and compiled virtualplanet builder 1.6.2 my osgdem --version return: VirtualPlanetBuilder/osgdem version 0.9.11 im using this command line on linux: osgdem --xx 10 --yy 10 -t texchi8192.tif --xx 10 --yy 10 -d relchi8192.tif --TERRAIN -v 0.8 -o china.ive or this : osgdem --xx 10 --yy 10 -t texchi8192.tif --xx 10 --yy 10 -d relchi8192.tif --LOD -l 8 -v 0.8 -o china.ive Ever the same thing , the plane without height only texture. I have to change my command line ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Control of animated object
ok, I was far these days but I m back :) let me see if I understood all operation and you say me if Im correct please. First, I have a object like .OSG extension. This object have a lot of nodes. I have to look which node is a AnimationPathCallback When I find a node that is a AnimationPathCallback I have to setUpdateCallback to this node. this updatecallback can be a function that check the time offset of my AnimationPathCallback node for example. Is this correct?? tks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Control of animated object
Ok, I m studying callback and nodevisitors from the OSG book these days and I have some advance. :) I have this class : class FindNamedNode : public osg::NodeVisitor { public: FindNamedNode( ) : osg::NodeVisitor( osg::NodeVisitor::TRAVERSE_ALL_CHILDREN ){} virtual void apply( osg::Node node ) { cout\nnode.getName(); traverse( node ); } }; FindNamedNode *fn; fn=new FindNamedNode(); // then I load my object here : osg::Node* testenode; testenode=osgDB::readNodeFile(obj_mesh); testenode-accept(*fn); When I run the programm appears a list of nodes . The node names from visitor that run on my object.This I understood. very good! :) My doubt is, like I got the name of node, how do I get the total frame or time of animationPath . I see in .OSG file the animation path . I changed the loop to NO_LOOPING and the object play onetime. very good too.But I still need to know the animation time and later to check the current time. Why I need this ? I have to load a cellphone that user can interact . then I have the cellphone closed and only when the user click the animation of cellphone openning ll play one time . after the user can close the cellphone . the animation of cellphone closing ll appear and play . this can repeat many times the user wants . for this I have to do something like a review and play to be sure that animation dont break from one animated object to other. I m seeing the examples but look like that dont have how I need. only have animation done in program, not loaded from external file. If you have other way to do this please say me. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Control of animated object
Ok, I m studying the osganimate example . But I m stoped in the part that I have to insert the ControlPoints. animationPath-insert(time,osg::AnimationPath::ControlPoint(position, rotation)); How can I get the control points(position and rotation) of my imported animated object from 3DMAX like this : node=osgDB::readNodeFile( obj_mesh ); node dont have any function that return the values. I m correct to use osg::Node to load my objects ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Control of animated object
Hi all ! I have a animated object and I need that the animation stops in the last frame, not to be in loop. How do you sugest that I do this ? tks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Control of animated object
i m only loading it with this: osg::Node* testenode=osgDB::readNodeFile(obj_mesh); the animation is always in loop. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Control of animated object
I m seeing the examples but look like that my problem is that I m doing the animation in 3DMAX and exporting the object in .IVE file. The object load but always in loop mode. Maybe I m not understanding something but look like that OSG have a dificulty in control of animations . I m refering about 2D movies and imported 3d objects . Excuse-me, I know that I m a little user of OSG but I have some ideas. To be perfect to me OSG would have any functions like : setFrame () -- that stop object exactly in the frame that we want . int getCurrentFrame() -- return the current frame of animation. int getNumberOfFrames() -- return the total number of frames in the animation. These kind of functions ll help a lot with movies or image sequences and 3D object animations . I always have to know when an animation ends to execute next action. Nobody had this kind of problem ?? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Background image
Hi ! I m trying to put an image in background behind my 3D scene . the problem is that the 2d image is in middle of 3D scene . any sugestion to resolve this ? thks :) ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Background image
no, I m using hud but my 3d objects are behind the hud. I want my 3d objets in front of hud . ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Frame verification in ImageSequence
Hi all ! I have a image sequence of 30 frames for example . all is playing well. I need to know which frame is appearing. later I will use this to verify the end of the animation. thanks ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Video stream control
Anybody can help ? I only need to know when a movie is in the last frame. On Thu, May 14, 2009 at 9:28 AM, Carlos Sanches ces...@gmail.com wrote: Hi all ! I need to know if a movie that I m playing arrived in his end to do some action. But I dont have a status END for example. I m playing it once time and it stay stop in the last frame. I need to know when this happen automaticaly. I was thinking to use getlenght() to know the size . but I dont know where in the stream I m in the moment. I m using osg 2.9.1with ffmpeg pplugin tks -- Carlos Sanches Programação Gráfica; Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Call to ffmpeg plugin change !
Hi ! I was using versrio 2.9,1 and was all ok . Now I intalled the 2.9.4 and looklike that my program dont understand the command to use ffmpeg: std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); because is crashing with the old problem with xine . The call to ffmpeg changed to this version ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Rewinding vmovie.
Hello guys ! Im playing a movie with no problem .The movie I want to play only once time and stop in the last frame . this is going very well ! but I want to return to begin of the movie . I m using rewind function to do this. When I use rewind some time after that the movie is stoped in the last frame, the movie dont return to the first frame. the movie stays in the last . I did a keyboard key call the rewind function of osgstream. this go well if I press in video running before stops . Why the rewind function dont work if I take some time after the movie plays ?? tks :D ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Video stream control
Hi all ! I need to know if a movie that I m playing arrived in his end to do some action. But I dont have a status END for example. I m playing it once time and it stay stop in the last frame. I need to know when this happen automaticaly. I was thinking to use getlenght() to know the size . but I dont know where in the stream I m in the moment. I m using osg 2.9.1with ffmpeg pplugin tks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgEarth + OSG 2.8.0 + ATI card
hi ! I was running osgearth here but the texture arent so close like your pictures . How can I get the best textures ?? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Fullscreen with diferent resolutions
Hi guys ! Now I m trying to display my program in fullscreen mode, but the problem is that the resolution that is displayed is the same of my screen monitor. If my monitor is 1280x1024 and I dont put any value to my osgViewer my program ll be fullscreen with 1280x1024. If I put a value to my osgvier likerViewer-setUpViewInWindow( 320, 0, 640, 480 );my program opens in a window. I wanna that my program run in 640x480 in fullscreen mode and when it finish back to my desktop at 1280x1024. Anybody has an idea ? Thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Fullscreen with diferent resolutions
Hi Stephan . I m looking for some example of osg::GraphicsContext::WindowingSystemInterface . Do you know where I found some example of how to use it ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FFmpeg plugin
Yeah is all ok now . the problem that I had in my program using xine plugin dont appear with ffmpeg . thank you all ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FFmpeg plugin
yeah !!! Finally I did it ! Today I installed the beta version of ubuntu 9.04 and OSG 2.9.2 Now is running ffmpeg plugin :) Now I can sleep . ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FFmpeg plugin
good news :) this weekend i m trying to do ffmpeg run in my home computer. Here I have ubuntu too . The error dont appear here :) but , when I enter the directory OSG/bin and run the osgmovie example the terminal stay waiting and nothing happens . no errors. i m trying these commands : ./osgmovie /home/carlos/videos/test.avi ./osgmovie -e ffmpeg /home/carlos/videos/test.avi nothing happens :( I ll try run 'ldd osgdb_ffmpeg.so' tomorrow in my job. here in my home I m using ATI radeon x1600 card and ubuntu 7.10 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FFmpeg plugin
ok , now i m using svn version of ffmpeg. bow the example runs but the message still apear I put the the lines in main function of my program:: std::string libName = osgDB::Registry::instance()- createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); but looks like that its using xine yet . and the old error continues. *** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb73e9a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0] /usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823] /usr/lib/libxine.so.1[0xb58484d8] === Memory map: Why my ffmpeg is not in use ? I have to modify something in osgDB ? 2009/3/20 Robert Osfield robert.osfi...@gmail.com HI Carlos, Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself. I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray. Have a look in ffmpeg itself for the inflateInit_ method. Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories. Robert. 2009/3/19 Carlos Sanches ces...@gmail.com Ok , I did it . now I m trying to run de example: osgmovie -e ffmpeg this error occours Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it: /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_ Usage: ./osgmovie [options] filename ... Options: ... 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com I am working with windows, no problem there, but here my settings. Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/libswscale New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib New Value (Enter to keep current value): Variable Name: FFMPEG_ROOT Description: Location of FFMPEG Current Value: F:/dev/ffmpeg/SDK/include New Value (Enter to keep current value): 2009/3/19 Carlos Sanches ces...@gmail.com Hi Adrian ! ok, I have the ffmpeg installed . I use it to convert my movies. Now I m seeing in ccmake configure list . but have some options that I dont know what I have to put there. the options are : FFMPEG_LIBAVCODEC_INCLUDE_DIRS /usr/include FFMPEG_LIBAVCODEC_LIBRARIES /usr/lib/libavcodec.so FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND FFMPEG_LIBAVFORMAT_INCLUDE_DIR /usr/include FFMPEG_LIBAVFORMAT_LIBRARIES /usr/lib/libavformat.so FFMPEG_LIBAVUTIL_INCLUDE_DIRS /usr/include FFMPEG_LIBAVUTIL_LIBRARIES /usr/lib/libavutil.so FFMPEG_LIBSWSCALE_INCLUDE_DIRS /usr/include FFMPEG_LIBSWSCALE_LIBRARIES /usr/lib/libswscale.so FFMPEG_ROOT The options that I believe that must be wrong are: FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_ROOT What I have to do in these options ? tks 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com Hi Carlos You have to donwload ffmpeg and build the plugin by setting up the right parameters in cmake. then osg will build the ffmpeg plugin as well as the other 3rd party plugins will be build. adrian 2009/3/18
Re: [osg-users] FFmpeg plugin
yeah here * http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/zlib-inflateinit.html * On Fri, Mar 20, 2009 at 9:47 AM, Tanguy Fautre tang...@aristechnologies.com wrote: Hi guys, inflateInit_ sounds very much like an API entry point in zlib. Tanguy From: osg-users-boun...@lists.openscenegraph.org [mailto: osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Friday 20 March 2009 08:55 To: OpenSceneGraph Users Subject: Re: [osg-users] FFmpeg plugin HI Carlos, Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself. I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray. Have a look in ffmpeg itself for the inflateInit_ method. Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Carlos Sanches Programação Gráfica; Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FFmpeg plugin
:( ok. I downloaded, compiled and instaled zlib-1.2.3 built ffmpeg from svn again with new zlib installed in osg i changed the directories of zlib to the new zlib in ccmake cmakelist.txt in OpenSceneGraph-2.9.1 directory: ./configure make clean make the example was built again but . running example with ./osgmovie -e ffmpeg video.avi or .mpg the movie runs but the same error apears. Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it: /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_ image-s()640 image-t()=480 aspectRatio=1 Transparent movie, enabling blending. My sistem is Ubuntu 8.04 videocard nvidia 8800 gtx motherboard P5N-T DELUXE Intel(R) Core(TM)2 Quad CPUQ6600 @ 2.40GHz say me if you need more information . i realy need to play movies with ffmpeg. tks 2009/3/20 Robert Osfield robert.osfi...@gmail.com Hi Carlos, What happens when you run: osgmovie -e ffmpeg a_video.mpg Is it still reporting that it can't load the plugin? I suspect that you are still hitting against the plugin not loading correctly. The inflatInit method is still being reported as not found and this function is from zlib then ffmpeg is built without linking against zlib which is needs. Linking against zlib ourselves in our ffmpeg could a solution. It's odd that you're having problems wheras others aren't. What is the exact spec of your system? Robert. 2009/3/20 Carlos Sanches ces...@gmail.com ok , now i m using svn version of ffmpeg. bow the example runs but the message still apear I put the the lines in main function of my program:: std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); but looks like that its using xine yet . and the old error continues. *** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb73e9a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0] /usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823] /usr/lib/libxine.so.1[0xb58484d8] === Memory map: Why my ffmpeg is not in use ? I have to modify something in osgDB ? 2009/3/20 Robert Osfield robert.osfi...@gmail.com HI Carlos, Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so the missing sybmol must be coming from ffmpeg itself. I haven't see this error myself when building from various versions of ffmpeg so perhaps it's version 0.5 that has gone astray. Have a look in ffmpeg itself for the inflateInit_ method. Another thing you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down from the Ubuntu repositories. Robert. 2009/3/19 Carlos Sanches ces...@gmail.com Ok , I did it . now I m trying to run de example: osgmovie -e ffmpeg this error occours Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it: /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_ Usage: ./osgmovie [options] filename ... Options: ... 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com I am working with windows, no problem there, but here my settings. Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/libswscale New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
Re: [osg-users] FFmpeg plugin
Hi Adrian ! ok, I have the ffmpeg installed . I use it to convert my movies. Now I m seeing in ccmake configure list . but have some options that I dont know what I have to put there. the options are : FFMPEG_LIBAVCODEC_INCLUDE_DIRS /usr/include FFMPEG_LIBAVCODEC_LIBRARIES /usr/lib/libavcodec.so FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND FFMPEG_LIBAVFORMAT_INCLUDE_DIR /usr/include FFMPEG_LIBAVFORMAT_LIBRARIES /usr/lib/libavformat.so FFMPEG_LIBAVUTIL_INCLUDE_DIRS /usr/include FFMPEG_LIBAVUTIL_LIBRARIES /usr/lib/libavutil.so FFMPEG_LIBSWSCALE_INCLUDE_DIRS /usr/include FFMPEG_LIBSWSCALE_LIBRARIES /usr/lib/libswscale.so FFMPEG_ROOT The options that I believe that must be wrong are: FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_ROOT What I have to do in these options ? tks 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com Hi Carlos You have to donwload ffmpeg and build the plugin by setting up the right parameters in cmake. then osg will build the ffmpeg plugin as well as the other 3rd party plugins will be build. adrian 2009/3/18 Carlos Sanches ces...@gmail.com Hi Robert. I m seeing that my /usr/local/lib/osgPlugins-2.9.1 directory dont have the plugin for ffmpeg . this is correct ? I put this in my code ... std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); but how I know if it is using ffmpeg ? tks 2009/3/16 Robert Osfield robert.osfi...@gmail.com Hi Carlos, Have a look at the osgmovie example for guidance, it'll boil down to reading a image, and assing to the a textured quad. Right now you'll need to preload the ffmpeg plugin as osgDB won't yet automatically alias the movie extensions to ffmpeg. On the movie command line you use the option -e ffmpeg to pre load the plugin. Programatically you'd use: std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); Robert. 2009/3/16 Carlos Sanches ces...@gmail.com Hi all ! I downloaded osg 2.9.1 . I m using pImageStream = dynamic_castosg::ImageStream*(hudImage); to open a movie. What have I to do to use ffmpeg to read my movies ? tks ___ 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Adrian Egli ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Carlos Sanches Programação Gráfica; Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FFmpeg plugin
Ok , I did it . now I m trying to run de example: osgmovie -e ffmpeg this error occours Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it: /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_ Usage: ./osgmovie [options] filename ... Options: ... 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com I am working with windows, no problem there, but here my settings. Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/libswscale New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib New Value (Enter to keep current value): Variable Name: FFMPEG_ROOT Description: Location of FFMPEG Current Value: F:/dev/ffmpeg/SDK/include New Value (Enter to keep current value): 2009/3/19 Carlos Sanches ces...@gmail.com Hi Adrian ! ok, I have the ffmpeg installed . I use it to convert my movies. Now I m seeing in ccmake configure list . but have some options that I dont know what I have to put there. the options are : FFMPEG_LIBAVCODEC_INCLUDE_DIRS /usr/include FFMPEG_LIBAVCODEC_LIBRARIES /usr/lib/libavcodec.so FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND FFMPEG_LIBAVFORMAT_INCLUDE_DIR /usr/include FFMPEG_LIBAVFORMAT_LIBRARIES /usr/lib/libavformat.so FFMPEG_LIBAVUTIL_INCLUDE_DIRS /usr/include FFMPEG_LIBAVUTIL_LIBRARIES /usr/lib/libavutil.so FFMPEG_LIBSWSCALE_INCLUDE_DIRS /usr/include FFMPEG_LIBSWSCALE_LIBRARIES /usr/lib/libswscale.so FFMPEG_ROOT The options that I believe that must be wrong are: FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_ROOT What I have to do in these options ? tks 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com Hi Carlos You have to donwload ffmpeg and build the plugin by setting up the right parameters in cmake. then osg will build the ffmpeg plugin as well as the other 3rd party plugins will be build. adrian 2009/3/18 Carlos Sanches ces...@gmail.com Hi Robert. I m seeing that my /usr/local/lib/osgPlugins-2.9.1 directory dont have the plugin for ffmpeg . this is correct ? I put this in my code ... std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); but how I know if it is using ffmpeg ? tks 2009/3/16 Robert Osfield robert.osfi...@gmail.com Hi Carlos, Have a look at the osgmovie example for guidance, it'll boil down to reading a image, and assing to the a textured quad. Right now you'll need to preload the ffmpeg plugin as osgDB won't yet automatically alias the movie extensions to ffmpeg. On the movie command line you use the option -e ffmpeg to pre load the plugin. Programatically you'd use: std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); Robert. 2009/3/16 Carlos Sanches ces...@gmail.com Hi all ! I downloaded osg 2.9.1 . I m using pImageStream = dynamic_castosg::ImageStream*(hudImage); to open a movie. What have I to do to use ffmpeg to read my movies ? tks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org
Re: [osg-users] FFmpeg plugin
my ffmpeg version FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: libavutil 49.15. 0 / 49.15. 0 libavcodec52.20. 0 / 52.20. 0 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 built on Mar 19 2009 12:47:35, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) ffmpeg: missing argument for option '-v' On Thu, Mar 19, 2009 at 3:45 PM, Carlos Sanches ces...@gmail.com wrote: Ok , I did it . now I m trying to run de example: osgmovie -e ffmpeg this error occours Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error occurred while trying to open it: /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol: inflateInit_ Usage: ./osgmovie [options] filename ... Options: ... 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com I am working with windows, no problem there, but here my settings. Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL New Value (Enter to keep current value): Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS Description: Path to a file. Current Value: F:/dev/ffmpeg/SDK/include/libswscale New Value (Enter to keep current value): Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES Description: Path to a library. Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib New Value (Enter to keep current value): Variable Name: FFMPEG_ROOT Description: Location of FFMPEG Current Value: F:/dev/ffmpeg/SDK/include New Value (Enter to keep current value): 2009/3/19 Carlos Sanches ces...@gmail.com Hi Adrian ! ok, I have the ffmpeg installed . I use it to convert my movies. Now I m seeing in ccmake configure list . but have some options that I dont know what I have to put there. the options are : FFMPEG_LIBAVCODEC_INCLUDE_DIRS /usr/include FFMPEG_LIBAVCODEC_LIBRARIES /usr/lib/libavcodec.so FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND FFMPEG_LIBAVFORMAT_INCLUDE_DIR /usr/include FFMPEG_LIBAVFORMAT_LIBRARIES /usr/lib/libavformat.so FFMPEG_LIBAVUTIL_INCLUDE_DIRS /usr/include FFMPEG_LIBAVUTIL_LIBRARIES /usr/lib/libavutil.so FFMPEG_LIBSWSCALE_INCLUDE_DIRS /usr/include FFMPEG_LIBSWSCALE_LIBRARIES /usr/lib/libswscale.so FFMPEG_ROOT The options that I believe that must be wrong are: FFMPEG_LIBAVDEVICE_INCLUDE_DIR FFMPEG_LIBAVDEVICE_LIBRARIES FFMPEG_ROOT What I have to do in these options ? tks 2009/3/19 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com Hi Carlos You have to donwload ffmpeg and build the plugin by setting up the right parameters in cmake. then osg will build the ffmpeg plugin as well as the other 3rd party plugins will be build. adrian 2009/3/18 Carlos Sanches ces...@gmail.com Hi Robert. I m seeing that my /usr/local/lib/osgPlugins-2.9.1 directory dont have the plugin for ffmpeg . this is correct ? I put this in my code ... std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); but how I know if it is using ffmpeg ? tks 2009/3/16 Robert Osfield robert.osfi...@gmail.com Hi Carlos, Have a look at the osgmovie example for guidance, it'll boil down to reading a image, and assing to the a textured quad. Right now you'll need to preload the ffmpeg plugin as osgDB won't yet automatically alias the movie extensions to ffmpeg. On the movie command line you use the option -e ffmpeg to pre load the plugin. Programatically you'd use: std::string libName = osgDB::Registry::instance
Re: [osg-users] FFmpeg plugin
Hi Robert. I m seeing that my /usr/local/lib/osgPlugins-2.9.1 directory dont have the plugin for ffmpeg . this is correct ? I put this in my code ... std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); but how I know if it is using ffmpeg ? tks 2009/3/16 Robert Osfield robert.osfi...@gmail.com Hi Carlos, Have a look at the osgmovie example for guidance, it'll boil down to reading a image, and assing to the a textured quad. Right now you'll need to preload the ffmpeg plugin as osgDB won't yet automatically alias the movie extensions to ffmpeg. On the movie command line you use the option -e ffmpeg to pre load the plugin. Programatically you'd use: std::string libName = osgDB::Registry::instance()-createLibraryNameForExtension(ffmpeg); osgDB::Registry::instance()-loadLibrary(libName); Robert. 2009/3/16 Carlos Sanches ces...@gmail.com Hi all ! I downloaded osg 2.9.1 . I m using pImageStream = dynamic_castosg::ImageStream*(hudImage); to open a movie. What have I to do to use ffmpeg to read my movies ? tks ___ 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] FFmpeg plugin
Hi all ! I downloaded osg 2.9.1 . I m using pImageStream = dynamic_castosg::ImageStream*(hudImage); to open a movie. What have I to do to use ffmpeg to read my movies ? tks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Loading movie
Cool ! Hey guys how can I use this plugin ? What that I have to do to install it ? On Wed, Feb 25, 2009 at 8:21 AM, J.P. Delport jpdelp...@csir.co.za wrote: Hi, Tanguy Fautre wrote: Hi J.P., I've also given Roberts the FFmpeg win32 binaries (headers, libs and dlls) we're using with our osgFFmpeg plugin. Because we're making a commercial application that cannot be opensourced, we obviously had to compile FFmpeg in LGPL (that's what I meant by non-GPL ffmpeg). OK good, just wanted to make sure. rgds jp Tanguy -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of J.P. Delport Sent: Tuesday 24 February 2009 06:53 To: OpenSceneGraph Users Subject: Re: [osg-users] Loading movie Hi Tanguy, Robert, Tanguy Fautre wrote: Hi Robert, I've uploaded the plugin sources, plus example application and FFmpeg Windows binaries (non-GPL) to the FTP. When you say non-GPL what do you mean? I've done some research into the whole FFmpeg GPL vs LGPL issues, since I would like to release our code under LGPL. It is quite easy to build LGPL versions of ffmpeg on Debian/Ubuntu. The standard packages contain GPL code. If you would like to know the gory details, let me know. jp -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Carlos Sanches Programação Gráfica; Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Loading movie
ok, but what I have to do to change xine by ffmpeg for example ? I have to write other plugin ? On Tue, Jan 13, 2009 at 9:34 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Carlos, From your description this does sound like a threading issue with xinelib. xinelib wasn't really designed for how we use it, rather it's a lib designed for writing conventional movies players, and to get video support under Linux I had to fit this square peg through a round hole. When I wrote this plugin a few years back I looked at various alternatives but none were mature enough/amenable enough to be squished through our usage requirements, xinelib ended up being the best of bad lot. Things under Linux haven't stood still, gstreamer is probably viable now, and J.P mentions about a ffmpeg plugin that actually been developed and might even be open source soon. My guess is that now both gstreamer and ffmpeg are probably better routes for video support under Linux. Robert. On Tue, Jan 13, 2009 at 11:18 AM, Carlos Sanches ces...@gmail.com wrote: if I play only one movie there are no problem . the movie play well. if I wish play the second movie . the problem occours when I call play . if I try use the same video to first and second , when I play the second the program crash. the movies are ok . I play it in mplayer I m trying to play avi movies without compression . Remembering if I play only one all is fine . :( On Mon, Jan 12, 2009 at 8:42 PM, Gerwin de Haan gerwindeh...@gmail.com wrote: Dear Carlos, from my experiments some time ago (osg 2.4, ubuntu 7.10), playing _multiple_ movies through ImageStream instances using the osgdb xine plugin result in sporadic crashes and funny playback/pause behavior, most probably caused by threading issues. At the time I did not have the time to go into the problem too deeply, but I recall I found it suspicious that only a single xine player instance was responsible for handling multiple movies. Again, crashes might also have been caused by some video codec used inside xine. What type of movie (container, codec, sound, size etc.) are you trying to play? regards, Gerwin ps. I was hoping for some public ffmpeg plugin implementation to pop up on the list, but either I missed it or it's not yet been released. On Mon, Jan 12, 2009 at 6:51 PM, Carlos Sanches ces...@gmail.com wrote: Excuse-me I m going crazy. My version is OpenSceneGraph Library 2.7.7 OS Ubuntu 8.04 My program load the movies. I play the first but when I will play the second the program crash . This is what is happening ... *** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb7444a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0] /usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753] /usr/lib/libxine.so.1[0xb5aa54d8] === Memory map: 08048000-08071000 r-xp 08:12 6046911 /dados/workspace/desenv/OSG/Debug/OSG 08071000-08072000 rw-p 00028000 08:12 6046911 /dados/workspace/desenv/OSG/Debug/OSG 08072000-0fd3 rw-p 08072000 00:00 0 [heap] a1778000-a1779000 ---p a1778000 00:00 0 a1779000-a1f79000 rwxp a1779000 00:00 0 a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809 /dev/nvidia0 a20a5000-a22ff000 rw-p a20a5000 00:00 0 a22ff000-a230 ---p a22ff000 00:00 0 a230-a2b0 rwxp a230 00:00 0 a2b0-a2bd4000 rw-p a2b0 00:00 0 a2bd4000-a2c0 ---p a2bd4000 00:00 0 a2c0-a2c6c000 rw-p a2c0 00:00 0 a2c6c000-a2d0 ---p a2c6c000 00:00 0 a2d0-a2dfc000 rw-p a2d0 00:00 0 a2dfc000-a2e0 ---p a2dfc000 00:00 0 a2f0-a2ffe000 rw-p a2f0 00:00 0 a2ffe000-a300 ---p a2ffe000 00:00 0 a310-a31f7000 rw-p a310 00:00 0 a31f7000-a320 ---p a31f7000 00:00 0 a330-a33fc000 rw-p a330 00:00 0 a33fc000-a340 ---p a33fc000 00:00 0 a350-a35f9000 rw-p a350 00:00 0 a35f9000-a360 ---p a35f9000 00:00 0 a370-a37fc000 rw-p a370 00:00 0 a37fc000-a380 ---p a37fc000 00:00 0 a390-a39fe000 rw-p a390 00:00 0 a39fe000-a3a0 ---p a39fe000 00:00 0 a3b0-a3bff000 rw-p a3b0 00:00 0 a3bff000-a3c0 ---p a3bff000 00:00 0 a3d0-a3df9000 rw-p a3d0 00:00 0 a3df9000-a3e0 ---p a3df9000 00:00 0 a3f0-a3fed000 rw-p a3f0 00:00 0 a3fed000-a400 ---p a3fed000 00:00 0 a400-a40fb000 rw-p a400 00:00 0 a40fb000-a410 ---p a40fb000 00:00 0 a410-a41ff000 rw-p a410 00:00 0 a41ff000-a420 ---p a41ff000 00:00 0 a430-a440 rw-p a430 00:00 0 a450-a45fc000 rw-p a450 00:00 0 a45fc000-a460 ---p a45fc000 00:00 0 a470-a47fc000 rw-p a470 00:00 0 a47fc000-a480 ---p a47fc000 00:00 0 a490-a49f9000 rw-p a490 00
Re: [osg-users] Loading movie
if I play only one movie there are no problem . the movie play well. if I wish play the second movie . the problem occours when I call play . if I try use the same video to first and second , when I play the second the program crash. the movies are ok . I play it in mplayer I m trying to play avi movies without compression . Remembering if I play only one all is fine . :( On Mon, Jan 12, 2009 at 8:42 PM, Gerwin de Haan gerwindeh...@gmail.comwrote: Dear Carlos, from my experiments some time ago (osg 2.4, ubuntu 7.10), playing _multiple_ movies through ImageStream instances using the osgdb xine plugin result in sporadic crashes and funny playback/pause behavior, most probably caused by threading issues. At the time I did not have the time to go into the problem too deeply, but I recall I found it suspicious that only a single xine player instance was responsible for handling multiple movies. Again, crashes might also have been caused by some video codec used inside xine. What type of movie (container, codec, sound, size etc.) are you trying to play? regards, Gerwin ps. I was hoping for some public ffmpeg plugin implementation to pop up on the list, but either I missed it or it's not yet been released. On Mon, Jan 12, 2009 at 6:51 PM, Carlos Sanches ces...@gmail.com wrote: Excuse-me I m going crazy. My version is OpenSceneGraph Library 2.7.7 OS Ubuntu 8.04 My program load the movies. I play the first but when I will play the second the program crash . This is what is happening ... *** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb7444a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0] /usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753] /usr/lib/libxine.so.1[0xb5aa54d8] === Memory map: 08048000-08071000 r-xp 08:12 6046911 /dados/workspace/desenv/OSG/Debug/OSG 08071000-08072000 rw-p 00028000 08:12 6046911 /dados/workspace/desenv/OSG/Debug/OSG 08072000-0fd3 rw-p 08072000 00:00 0 [heap] a1778000-a1779000 ---p a1778000 00:00 0 a1779000-a1f79000 rwxp a1779000 00:00 0 a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809 /dev/nvidia0 a20a5000-a22ff000 rw-p a20a5000 00:00 0 a22ff000-a230 ---p a22ff000 00:00 0 a230-a2b0 rwxp a230 00:00 0 a2b0-a2bd4000 rw-p a2b0 00:00 0 a2bd4000-a2c0 ---p a2bd4000 00:00 0 a2c0-a2c6c000 rw-p a2c0 00:00 0 a2c6c000-a2d0 ---p a2c6c000 00:00 0 a2d0-a2dfc000 rw-p a2d0 00:00 0 a2dfc000-a2e0 ---p a2dfc000 00:00 0 a2f0-a2ffe000 rw-p a2f0 00:00 0 a2ffe000-a300 ---p a2ffe000 00:00 0 a310-a31f7000 rw-p a310 00:00 0 a31f7000-a320 ---p a31f7000 00:00 0 a330-a33fc000 rw-p a330 00:00 0 a33fc000-a340 ---p a33fc000 00:00 0 a350-a35f9000 rw-p a350 00:00 0 a35f9000-a360 ---p a35f9000 00:00 0 a370-a37fc000 rw-p a370 00:00 0 a37fc000-a380 ---p a37fc000 00:00 0 a390-a39fe000 rw-p a390 00:00 0 a39fe000-a3a0 ---p a39fe000 00:00 0 a3b0-a3bff000 rw-p a3b0 00:00 0 a3bff000-a3c0 ---p a3bff000 00:00 0 a3d0-a3df9000 rw-p a3d0 00:00 0 a3df9000-a3e0 ---p a3df9000 00:00 0 a3f0-a3fed000 rw-p a3f0 00:00 0 a3fed000-a400 ---p a3fed000 00:00 0 a400-a40fb000 rw-p a400 00:00 0 a40fb000-a410 ---p a40fb000 00:00 0 a410-a41ff000 rw-p a410 00:00 0 a41ff000-a420 ---p a41ff000 00:00 0 a430-a440 rw-p a430 00:00 0 a450-a45fc000 rw-p a450 00:00 0 a45fc000-a460 ---p a45fc000 00:00 0 a470-a47fc000 rw-p a470 00:00 0 a47fc000-a480 ---p a47fc000 00:00 0 a490-a49f9000 rw-p a490 00:00 0 a49f9000-a4a0 ---p a49f9000 00:00 0 a4b0-a4c0 rw-p a4b0 00:00 0 a4d0-a4df8000 rw-p a4d0 00:00 0 a4df8000-a4e0 ---p a4df8000 00:00 0 a4e0-a4ef1000 rw-p a4e0 00:00 0 a4ef1000-a4f0 ---p a4ef1000 00:00 0 a4f0-a4fff000 rw-p a4f0 00:00 0 a4fff000-a500 ---p a4fff000 00:00 0 a510-a51ff000 rw-p a510 00:00 0 a51ff000-a520 ---p a51ff000 00:00 0 a530-a53fc000 rw-p a530 00:00 0 a53fc000-a540 ---p a53fc000 00:00 0 a550-a56ff000 rw-p a550 00:00 0 a56ff000-a570 ---p a56ff000 00:00 0 a570-a57f8000 rw-p a570 00:00 0 a57f8000-a580 ---p a57f8000 00:00 0 a590-a59fb000 rw-p a590 00:00 0 a59fb000-a5a0 ---p a59fb000 00:00 0 a5b0-a5bf7000 rw-p a5b0 00:00 0 a5bf7000-a5c0 ---p a5bf7000 00:00 0 a5d0-a5df8000 rw-p a5d0 00:00 0 a5df8000-a5e0 ---p a5df8000 00:00 0 a5e0-a5efb000 rw-p a5e0 00:00 0 a5efb000-a5f0 ---p a5efb000 00:00 0 a5f0-a600 rw-p a5f0 00:00 0 a610-a620 rw-p a610 00:00 0 a630-a63fa000 rw-p a630 00:00 0 a63fa000-a640 ---p a63fa000 00:00 0
[osg-users] Loading movie
Hi . i m with a problem . i m doing this. osg::ref_ptrosg::ImageStream pImageStream; osg::Image* hudImage; hudImage = osgDB::readImageFile(tex_name); pImageStream = dynamic_castosg::ImageStream*(hudImage); when I do a play. if(pImageStream )pImageStream-play(); my program close :( what is happening ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Loading movie
Excuse-me I m going crazy. My version is OpenSceneGraph Library 2.7.7 OS Ubuntu 8.04 My program load the movies. I play the first but when I will play the second the program crash . This is what is happening ... *** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb7444a85] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0] /usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753] /usr/lib/libxine.so.1[0xb5aa54d8] === Memory map: 08048000-08071000 r-xp 08:12 6046911 /dados/workspace/desenv/OSG/Debug/OSG 08071000-08072000 rw-p 00028000 08:12 6046911 /dados/workspace/desenv/OSG/Debug/OSG 08072000-0fd3 rw-p 08072000 00:00 0 [heap] a1778000-a1779000 ---p a1778000 00:00 0 a1779000-a1f79000 rwxp a1779000 00:00 0 a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809 /dev/nvidia0 a20a5000-a22ff000 rw-p a20a5000 00:00 0 a22ff000-a230 ---p a22ff000 00:00 0 a230-a2b0 rwxp a230 00:00 0 a2b0-a2bd4000 rw-p a2b0 00:00 0 a2bd4000-a2c0 ---p a2bd4000 00:00 0 a2c0-a2c6c000 rw-p a2c0 00:00 0 a2c6c000-a2d0 ---p a2c6c000 00:00 0 a2d0-a2dfc000 rw-p a2d0 00:00 0 a2dfc000-a2e0 ---p a2dfc000 00:00 0 a2f0-a2ffe000 rw-p a2f0 00:00 0 a2ffe000-a300 ---p a2ffe000 00:00 0 a310-a31f7000 rw-p a310 00:00 0 a31f7000-a320 ---p a31f7000 00:00 0 a330-a33fc000 rw-p a330 00:00 0 a33fc000-a340 ---p a33fc000 00:00 0 a350-a35f9000 rw-p a350 00:00 0 a35f9000-a360 ---p a35f9000 00:00 0 a370-a37fc000 rw-p a370 00:00 0 a37fc000-a380 ---p a37fc000 00:00 0 a390-a39fe000 rw-p a390 00:00 0 a39fe000-a3a0 ---p a39fe000 00:00 0 a3b0-a3bff000 rw-p a3b0 00:00 0 a3bff000-a3c0 ---p a3bff000 00:00 0 a3d0-a3df9000 rw-p a3d0 00:00 0 a3df9000-a3e0 ---p a3df9000 00:00 0 a3f0-a3fed000 rw-p a3f0 00:00 0 a3fed000-a400 ---p a3fed000 00:00 0 a400-a40fb000 rw-p a400 00:00 0 a40fb000-a410 ---p a40fb000 00:00 0 a410-a41ff000 rw-p a410 00:00 0 a41ff000-a420 ---p a41ff000 00:00 0 a430-a440 rw-p a430 00:00 0 a450-a45fc000 rw-p a450 00:00 0 a45fc000-a460 ---p a45fc000 00:00 0 a470-a47fc000 rw-p a470 00:00 0 a47fc000-a480 ---p a47fc000 00:00 0 a490-a49f9000 rw-p a490 00:00 0 a49f9000-a4a0 ---p a49f9000 00:00 0 a4b0-a4c0 rw-p a4b0 00:00 0 a4d0-a4df8000 rw-p a4d0 00:00 0 a4df8000-a4e0 ---p a4df8000 00:00 0 a4e0-a4ef1000 rw-p a4e0 00:00 0 a4ef1000-a4f0 ---p a4ef1000 00:00 0 a4f0-a4fff000 rw-p a4f0 00:00 0 a4fff000-a500 ---p a4fff000 00:00 0 a510-a51ff000 rw-p a510 00:00 0 a51ff000-a520 ---p a51ff000 00:00 0 a530-a53fc000 rw-p a530 00:00 0 a53fc000-a540 ---p a53fc000 00:00 0 a550-a56ff000 rw-p a550 00:00 0 a56ff000-a570 ---p a56ff000 00:00 0 a570-a57f8000 rw-p a570 00:00 0 a57f8000-a580 ---p a57f8000 00:00 0 a590-a59fb000 rw-p a590 00:00 0 a59fb000-a5a0 ---p a59fb000 00:00 0 a5b0-a5bf7000 rw-p a5b0 00:00 0 a5bf7000-a5c0 ---p a5bf7000 00:00 0 a5d0-a5df8000 rw-p a5d0 00:00 0 a5df8000-a5e0 ---p a5df8000 00:00 0 a5e0-a5efb000 rw-p a5e0 00:00 0 a5efb000-a5f0 ---p a5efb000 00:00 0 a5f0-a600 rw-p a5f0 00:00 0 a610-a620 rw-p a610 00:00 0 a630-a63fa000 rw-p a630 00:00 0 a63fa000-a640 ---p a63fa000 00:00 0 a650-a65ff000 rw-p a650 00:00 0 a65ff000-a660 ---p a65ff000 00:00 0 a670-a67f9000 rw-p a670 00:00 0 a67f9000-a680 ---p a67f9000 00:00 0 a690-a69fd000 rw-p a690 00:00 0 a69fd000-a6a0 ---p a69fd000 00:00 0 a6b0-a6bee000 rw-p a6b0 00:00 0 a6bee000-a6c0 ---p a6bee000 00:00 0 a6d0-a6dff000 rw-p a6d0 00:00 0 a6dff000-a6e0 ---p a6dff000 00:00 0 a6f0-a6ff8000 rw-p a6f0 00:00 0 a6ff8000-a700 ---p a6ff8000 00:00 0 a710-a71fe000 rw-p a710 00:00 0 a71fe000-a720 ---p a71fe000 00:00 0 a7269000-a73f2000 rw-p a7269000 00:00 0 a73f2000-a740 ---p a73f2000 00:00 0 a7469000-a75fa000 rw-p a7469000 00:00 0 a75fa000-a760 ---p a75fa000 00:00 0 a7669000-a77fd000 rw-p a7669000 00:00 0 a77fd000-a780 ---p a77fd000 00:00 0 a7869000-a79f7000 rw-p a7869000 00:00 0 a79f7000-a7a0 ---p a79f7000 00:00 0 a7a69000-a7bff000 rw-p a7a69000 00:00 0 a7bff000-a7c0 ---p a7bff000 00:00 0 a7c69000-a7df3000 rw-p a7c69000 00:00 0 a7df3000-a7e0 ---p a7df3000 00:00 0 a7e69000-a800 rw-p a7e69000 00:00 0 a8069000-a81f8000 rw-p a8069000 00:00 0 a81f8000-a820 ---p a81f8000 00:00 0 a820-a8221000 rw-p a820 00:00 0 a8221000-a830 ---p a8221000 00:00 0 a830-a83fa000 rw-p a830 00:00 0 a83fa000-a840 ---p a83fa000 00:00 0 a840-a84e9000 rw-p a840 00:00 0 a84e9000-a850 ---p a84e9000 00:00 0 a850-a85f4000 rw-p a850 00:00 0 a85f4000-a860 ---p a85f4000 00:00 0
[osg-users] Set mouse position
Hi friends! I m doing the rotation camera controled by mouse testing how many pixels the mouse moved in x,y. after test i have to back the mouse position to 0,0 position to do the test again in the next step. I d want to know how to set the mouse position x,y. I m looking for some function like setMousePosition but I m not finding. Exist something like this ? Thank you and happy new year to us :) ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] 3D Animation questions
Hi all ! :D I have two questions about 3D animation on OSG. First: Is possible to read animation like vertex animation . I m doing only translation rotation and scale, but for example I want to do skin animation. Second: Is possible to control de frames of a 3D object animated ? For example, I want to play the animation only once and switch OFF my object . How do I know what is the current frame of animation to me take the control of what will happen ? Thank you ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG with SDL Keyboard
Hi Robert . I m using osg to check keys but i cant use both two keys. i m trying do the moves like Mario game where i can run and jump while running. But with osg i press to run next i press the jump key while running but when my Mario finish the jump I have to press run key again. with SDL id understand to run while I m pressing the key to run dont matter if other key is pressed together . I m using this code like osgkeyboard example: rViewer-addEventHandler( new KeyboardEventHandler() ); // in the top of my main.cpp I have this class. these keys are temporary keys :) class KeyboardEventHandler : public osgGA::GUIEventHandler { public: KeyboardEventHandler() {} virtual bool handle(const osgGA::GUIEventAdapter ea,osgGA::GUIActionAdapter) { switch(ea.getEventType()) { case(osgGA::GUIEventAdapter::KEYDOWN): { if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F5 ) { anda_esquerda=true; anda_direita=false; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F6 ) { anda_direita=true; anda_esquerda=false; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_Page_Up ) { if(( ceu-ind_col.at (0)==true)||(ceu-ind_col.at(1)==true)) anda_altura=true; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_Page_Down ) { posz-=2.2; } return true; } break; case(osgGA::GUIEventAdapter::KEYUP): { anda_direita=false; anda_esquerda=false; return true; }break; default: return false; } } On Sun, Dec 7, 2008 at 9:25 AM, Robert Osfield [EMAIL PROTECTED]wrote: HI Carlos, What is missing from the osgViewer supplied events that requires you to use SDL? Perhaps adding the functionality into osgViewer/osgGA would avoid the need for extra complexity. On the SDL front I've used for getting joystick events with an osgViewer based application, but this doesn't require any keyboard events - these all just come through the viewer like the OSG examples. Robert. On Sat, Dec 6, 2008 at 3:58 PM, Carlos Sanches [EMAIL PROTECTED] wrote: Hi all ! Please ! I m trying to use SDL to take keyboard events , but when my program runs is apearing two windows . one of my OSG program and other black of SDL . when I click in the black screen my OSG objects move in the other screen. I only want to use SDL to keyboard because has the response that I want . Is there some way to dont appear the black screen and my OSG window read my keyboard with SDL ?? I read this tutorial to do this until now but looks like that there is old functions http://www.cs.clemson.edu/~malloy/courses/3dgames-2007/tutor/web/controls/controls.htmlhttp://www.cs.clemson.edu/%7Emalloy/courses/3dgames-2007/tutor/web/controls/controls.html thank you ! ___ 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 -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG with SDL Keyboard
Excuse-me Robert I was wrong . My logic was wrong . God bless OSG :D I fixed it look : class KeyboardEventHandler : public osgGA::GUIEventHandler { public: KeyboardEventHandler() {} virtual bool handle(const osgGA::GUIEventAdapter ea,osgGA::GUIActionAdapter) { if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F5 ) { anda_esquerda=true; anda_direita=false; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F6 ) { anda_direita=true; anda_esquerda=false; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_Page_Up ) { if(( ceu-ind_col.at (0)==true)||(ceu-ind_col.at(1)==true)) anda_altura=true; } if ( ea.getEventType()==osgGA::GUIEventAdapter::KEYUP ) { if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F5 ) anda_esquerda=false; if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F6 ) anda_direita=false; } return true; } }; On Sun, Dec 7, 2008 at 7:54 PM, Carlos Sanches [EMAIL PROTECTED] wrote: Hi Robert . I m using osg to check keys but i cant use both two keys. i m trying do the moves like Mario game where i can run and jump while running. But with osg i press to run next i press the jump key while running but when my Mario finish the jump I have to press run key again. with SDL id understand to run while I m pressing the key to run dont matter if other key is pressed together . I m using this code like osgkeyboard example: rViewer-addEventHandler( new KeyboardEventHandler() ); // in the top of my main.cpp I have this class. these keys are temporary keys :) class KeyboardEventHandler : public osgGA::GUIEventHandler { public: KeyboardEventHandler() {} virtual bool handle(const osgGA::GUIEventAdapter ea,osgGA::GUIActionAdapter) { switch(ea.getEventType()) { case(osgGA::GUIEventAdapter::KEYDOWN): { if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F5 ) { anda_esquerda=true; anda_direita=false; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_F6 ) { anda_direita=true; anda_esquerda=false; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_Page_Up ) { if(( ceu- ind_col.at(0)==true)||(ceu-ind_col.at(1)==true)) anda_altura=true; } if ( ea.getKey()==osgGA::GUIEventAdapter::KEY_Page_Down ) { posz-=2.2; } return true; } break; case(osgGA::GUIEventAdapter::KEYUP): { anda_direita=false; anda_esquerda=false; return true; }break; default: return false; } } On Sun, Dec 7, 2008 at 9:25 AM, Robert Osfield [EMAIL PROTECTED]wrote: HI Carlos, What is missing from the osgViewer supplied events that requires you to use SDL? Perhaps adding the functionality into osgViewer/osgGA would avoid the need for extra complexity. On the SDL front I've used for getting joystick events with an osgViewer based application, but this doesn't require any keyboard events - these all just come through the viewer like the OSG examples. Robert. On Sat, Dec 6, 2008 at 3:58 PM, Carlos Sanches [EMAIL PROTECTED] wrote
[osg-users] OSG with SDL Keyboard
Hi all ! Please ! I m trying to use SDL to take keyboard events , but when my program runs is apearing two windows . one of my OSG program and other black of SDL . when I click in the black screen my OSG objects move in the other screen. I only want to use SDL to keyboard because has the response that I want . Is there some way to dont appear the black screen and my OSG window read my keyboard with SDL ?? I read this tutorial to do this until now but looks like that there is old functions http://www.cs.clemson.edu/~malloy/courses/3dgames-2007/tutor/web/controls/controls.html thank you ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Mouse Click
Hi all ! I m using the keboard in my aplications until now. I m trying to use the mouse but i cant capture the clicks. I m seeing one example but is using producer :( thank you ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Mouse Click
Ok i did it . thanks if ( osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON==ea.getButton()) { time (start); return true; } On Wed, Oct 29, 2008 at 9:41 AM, Jordi Torres [EMAIL PROTECTED]wrote: Hi Carlos, You can take a look to osgkeyboardmouse in osg examples. Regards. 2008/10/29 Carlos Sanches [EMAIL PROTECTED] Hi all ! I m using the keboard in my aplications until now. I m trying to use the mouse but i cant capture the clicks. I m seeing one example but is using producer :( thank you ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Jordi Torres Fabra Instituto de Automática e Informática Industrial http://www.ai2.upv.es ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Change particle color !
hey man I did it . look the example particle cor is the float that is variable of alpha to me , but can be r g or b and using the code in the principal loop: initial_color = osg::Vec4(R, G, B, cor); final_color = osg::Vec4(fR, fG, fB, 0.0); smokeParticle-setColorRange(osgParticle::rangev4(initial_color,final_color ) ); psa-setDefaultParticleTemplate(*smokeParticle); On Tue, Sep 16, 2008 at 1:31 PM, b boltze [EMAIL PROTECTED] wrote: Hi Mattias, On Monday 18 August 2008 22:42:04 Mattias Helsing wrote: On Mon, Aug 18, 2008 at 8:44 PM, Carlos Sanches [EMAIL PROTECTED] wrote: to do this I need to change the color of particles after your creation only when I press the key. yes it is possible. You need an EventHandler and a osg::Timer. Set the color in EventHandler::handle(osgGA::FRAME). There is probably 10 other ways to do this also. I have a similar problem and I fear I don't understand how this is supposed to work. Creating an EventHandler and a Timer is easy of course, but actually changing the particles' colors seems problematical to me: Since the _current_* (alpha, color, etc.) attributes are protected in Particle and there are no setter functions, I can not change these values directly. I can only change the ranges, using set*Range. If the particles have limited lifetime, I can setColorRange or setAlphaRange on them, so they will fade out. But since they have already lived a portion of their lifetime, they won't start at the beginning of the given interval, but jump right into it, to the value corresponding to the percentage of their lifetime they have already spent. For example: A particle has already lived 9 seconds out of 10. Alpha range before the change was 1 to 1, so the particles alpha was 1. Then I set the alpha to range from 1 to 0, and the particle will immediately take an alpha value of 1+(0-1)*(9/10) = 0.1, assuming linear interpolation. If, on the other hand, the particle has infinite lifetime, I can't change its color or alpha at all, because immortal particles retrieve their current values from the interpolators only once, at their first rendering pass ever. So changing the ranges has no effect on them. Did I miss something? Thanks for your help bastian ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] ODE Trimesh with OSG ?
I said terrain but I want to load a object from 3DMAX and do collision if trimesh in ODE. First ,I m trying to understand how to transform my object that I read like a .ive file in a osg::TriMesh . May you explain me ? On Mon, Aug 18, 2008 at 4:06 AM, Mattias Helsing [EMAIL PROTECTED]wrote: Hello Carlos! We use a TriangleRecorder (it's a NodeVisitor) and applies that to our terrain nodetree. It records vertices and triangles on all drawables. We then memcpy those into ode::dVector3[numVertices] (vertices) and int[3*numTriangles] (triangles). Then run dGeomTriMeshDataBuildSimple( and dCreateTriMesh unfortunately a cannot publish any code. I once had a plan to implement this better in my spare time but haven't got around to it yet. Yuo might watn to look at Delta3d since I know that they integrate ode with osg. I haven't looked at ode code in Delta3d myself but I'm sure it fine. Also: * the above simple description doesn't mention dynamic(paged) terrain so you may need to think about that. * Some of the terrains we have tried have been simplified, i.e. some trianles are very large, and ode seems to have problems with that. hope this helps Mattias On 8/18/08, Carlos Sanches [EMAIL PROTECTED] wrote: Hi! I m doing collisions using ODE with OSG and this is very cool, but , I want to do a deformed ground with some triangles in 3DSMAX for example. I know that I have to use trimesh but how do I have to load the object ground that ODE understand ?? Have anybody an example using trimesh ?? Thank you! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Change particle color !
I m doing a rain with particles and I want to press one key and the rain disapear. I m doing this with osgSwitch and is working very well , but , I 'd want that the rain disapear with something like a FADE OUT . to do this I need to change the color of particles after your creation only when I press the key. is this possible ?? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ODE Trimesh with OSG ?
Hi! I m doing collisions using ODE with OSG and this is very cool, but , I want to do a deformed ground with some triangles in 3DSMAX for example. I know that I have to use trimesh but how do I have to load the object ground that ODE understand ?? Have anybody an example using trimesh ?? Thank you! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to take a picture of my scene?
eee!! I did it ! I m doing videos with the code of osghelp page and ffmepg on linux . tomorrow I put the code here using an osg::Camera thank you guys ! no more tears :D ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to take a picture of my scene?
How do you use this bugle ?? Can you send me a example please :) On Fri, Jun 27, 2008 at 6:42 PM, Jeremy Moles [EMAIL PROTECTED] wrote: I made all of the osgWidget videos using Bugle; it's really the best thing I've found for this kind of thing. On Thu, 2008-06-26 at 14:09 -0400, Vican, Justin E. wrote: Hi Carlos, As Robert mentioned, there has been a lot of discussion about this topic recently. I posted a camera callback code update to the osgcompositeviewer example a few days ago (attached). It should do the trick for you. As far as stringing the frames together into a movie, in the past I have done this using FFMPEG. If you use an image naming scheme similar to the one in this code example, you should be able to reconstruct a movie in any format that you choose. I'm sure that there are numerous other tools that can accomplish this. If you're using something else, I'd be interested to hear what tools you've used, and how well they worked. Hope this helps, Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Thursday, June 26, 2008 1:14 PM To: OpenSceneGraph Users Subject: Re: [osg-users] How to take a picture of my scene? On Thu, Jun 26, 2008 at 5:52 PM, Carlos Sanches [EMAIL PROTECTED] wrote: I m doing this : Ximage-readPixels(100,100,640,480, GL_RGBA, GL_UNSIGNED_BYTE); osgDB::writeImageFile(*Ximage,teste.bmp); but this is creating a black image :( You are likely just reading pixels from the wrong thread. Where abouts to you call the readPixles? Have you look at the osgscreencapture example in the SVN version of the OSG for inspiration. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g ___ 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 -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Collision detection engines with OSG
Hi ! Anybody have some example of OSG with any collision engine (bullet, newton or ODE)?? Asimple example will be welcome . thanks ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to take a picture of my scene?
My code : osg::Image *Ximage; osg::Camera* cam = new osg::Camera; cam-setProjectionMatrixAsPerspective(20,1,20,100); cam-setViewport(0,0,640,180); cam-setClearColor(osg::Vec4(0.7,0.7,1,1)); osgViewer::Viewer viewer; viewer.setSceneData( root ); viewer.setCameraManipulator(new osgGA::TrackballManipulator); //viewer.setCamera(cam); viewer.addEventHandler( new myKeyboardEventHandler ); viewer.realize(); while( !viewer.done() ) { cam-setViewMatrixAsLookAt( osg::Vec3(posx,posy,posz), osg::Vec3(tposx,tposy,tposz), osg::Vec3(0,0,1) ); Ximage-readPixels(100,100,640,480, GL_RGBA, GL_UNSIGNED_BYTE); osgDB::writeImageFile(*Ximage,teste.bmp); viewer.frame(); } The image teste.bmp is black . I m trying the example osgScreenCapture but some errors is appearing . http://www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to take a picture of my scene?
Hi friends ! I 'd want to save the frames of my OSG scene in jpg or bmp or any other format. What function do this ? How do I do this ?? thank you ! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to take a picture of my scene?
No I want to do a movie with the frames generated . In linux . On Thu, Jun 26, 2008 at 12:08 PM, Robert Osfield [EMAIL PROTECTED] wrote: Hi Carlos, This has been discussed lots in the last month so have a look through the osg-users archives. Robert. On Thu, Jun 26, 2008 at 3:59 PM, Carlos Sanches [EMAIL PROTECTED] wrote: Hi friends ! I 'd want to save the frames of my OSG scene in jpg or bmp or any other format. What function do this ? How do I do this ?? thank you ! ___ 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 -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to take a picture of my scene?
I m doing this : Ximage-readPixels(100,100,640,480, GL_RGBA, GL_UNSIGNED_BYTE); osgDB::writeImageFile(*Ximage,teste.bmp); but this is creating a black image :( On Thu, Jun 26, 2008 at 12:08 PM, Robert Osfield [EMAIL PROTECTED] wrote: Hi Carlos, This has been discussed lots in the last month so have a look through the osg-users archives. Robert. On Thu, Jun 26, 2008 at 3:59 PM, Carlos Sanches [EMAIL PROTECTED] wrote: Hi friends ! I 'd want to save the frames of my OSG scene in jpg or bmp or any other format. What function do this ? How do I do this ?? thank you ! ___ 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 -- Carlos Sanches Analista de Sistemas e computação gráfica Tel: 55 11 3816 2888 Cel: 55 11 9650 7137 Somar Meteorologia www.somarmeteorologia.com.br ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] collada fetures in osg
Hello guys ! This is my first post and I m Brazilian then execuse me any errors in my english. I want to know what are the features that can I load with a collada file ? I generated some collada files with FXComposer 2 and RenderMonkey in windows but when I load these files with osgviewer on Linux only apear the mesh object without the effects :( I thought that the effects would be loaded to. Thank you! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org