Re: [osg-users] Shadow Volumes integration

2013-02-01 Thread Robert Osfield
Hi Johan and JS, My inclination would be towards using a nested namespace as suggest by J-S, this will avoid wider namespace pollution with generic names, but still allow the implementation to use the short hand and end up with more readable code. Another twist on this is to use the class as a

Re: [osg-users] [osgPlugins] : Cannot compile DDS plugin GL_HALF_FLOAT not defined in this scope

2013-02-01 Thread Robert Osfield
Hi Christian, On 1 February 2013 07:31, Christian Schulte christian.schu...@onera.fr wrote: my nightly build worked fine on RedHat 5.3(64bits) but also on CentOS 6.3(64bits), WinXP(32bits)¨and Win7(64bits). Thanks again for your quick answer and solution. By the way did you think about how to

Re: [osg-users] [osgPlugins] : Cannot compile DDS plugin GL_HALF_FLOAT not defined in this scope

2013-02-01 Thread Christian Schulte
Hi Robert, I agree with you that there is no other way than testing. Maybe we could make an platform dependent include of math.h instead of cmath for the platforms you think there is a risk (like IRIX) on the trunk and ask the community to test it. Christian Le 01/02/2013 10:13, Robert

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jan Ciger
On Fri, Feb 1, 2013 at 8:24 AM, Koduri Lakshmi ankiredd...@gmail.comwrote: If I added -lffmpeg to LOCAL_LDLIBS in Android.mk file then I am getting the following error. Code: cannot find -lffmpeg Can you please help how to link ffmpeg plugin for Andorid. Maybe dumb question, but do you

Re: [osg-users] Fedora 18 with nVidia driver: OSG crashes session

2013-02-01 Thread Jan Ciger
On Fri, Feb 1, 2013 at 1:38 AM, Ulrich Hertlein u.hertl...@sandbox.dewrote: I agree with Robert, this doesn't look OSG-specific. Have you tried running 'glxinfo' and 'glxgears' to check if OpenGL support is available? Yes, run glxinfo and check whether you are actually running Nvidia/ATI

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
Hi Koduri as Jan said you have to add the generated ffmpeg static libs, I have in my Android.mk: $(OSG_SDK)/obj/local/armeabi-v7a/libavformat.a \ $(OSG_SDK)/obj/local/armeabi-v7a/libavcodec.a \ $(OSG_SDK)/obj/local/armeabi-v7a/libavdevice.a \ $(OSG_SDK)/obj/local/armeabi-v7a/libswscale.a \

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Koduri Lakshmi
Hi Jordi Torres and Jan Ciger, Thank you very much for the reply. I downloaded ffmpeg1.0 from FFmpeg site. Now compiled statically to generate .a files. I generated /armeabi-v7a/libavformat.a /armeabi-v7a/libavcodec.a /armeabi-v7a/libavdevice.a /armeabi-v7a/libswscale.a

Re: [osg-users] Fedora 18 with nVidia driver: OSG crashes session

2013-02-01 Thread Stuart Mentzer
Hi, To clarify, problem is already solved with the fix to xorg.conf I posted. glxinfo and glxgears were not running correctly and now they are. Yes, I am running nvidia drivers properly and all was well under F17 as I stated. This is a bug in F18 that should get fixed eventually. Thanks all,

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
Hi Koduri, You can create a Quad and then add the image stream, something like that: osg::ref_ptrosg::Image image = osgDB::readImageFile( /sdcard/videodemo256256.avi.ffmpeg ); osg::ImageStream* imageStream = dynamic_castosg::ImageStream*( image.get() ); if ( imageStream ) {

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Koduri Lakshmi
Hi Jordi Torres, Thank you very much for the help. I did that in .cpp file as follows Code: img = osgDB::readImageFile(filename); videoStream[idx] = dynamic_castosg::ImageStream*(img); if (videoStream[idx].valid()) { LOG( Got movie);

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
You should investigate further about what are failing in your compilation and fix it, as I don't have your computer in front of me I can't say much more. Sorry. 2013/2/1 Koduri Lakshmi ankiredd...@gmail.com Hi Jordi Torres, Thank you very much for the help. I did that in .cpp file as

[osg-users] Compiling Stateset for Node Move

2013-02-01 Thread Cary, Karl A.
I need to move some nodes around in my structure that inherit various parts of their statesets from it's parent nodes. Is there an easy way to compile it's stateset for moving it around? I will give a very dumbed down example of what I am trying to do: Grp 1

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Koduri Lakshmi
Hi Jordi Torres, When I use jpeg plugin, I did the following things 1) USE_OSGPLUGIN(jpeg) in .h file 2) Added -ljpeg to LOCAL_LDLIBS in Android.mk file 3) Added -losgdb_jpeg \ to LOCAL_LDFLAGS in Android.mk file. Similarly I need to do for ffmpeg plugin also. I added -lffmpeg to LOCAL_LDLIBS

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
I said you in a previous mail, and Jan too. You need to add to your TARGET_LDLIBS in the Android.mk of your application the libraries generated when building the ffmpeg. NO ffmpeg.a library is created so calling to -lffmpeg is an error and try to link with it too.

[osg-users] getting errors in creating First OSG program

2013-02-01 Thread om prakash Paliwal
i am a beggineer ... and i stuck at very begining . i created my first OSG program in ubuntu i get this error message ... Scanning dependencies of target MyProject [100%] Building CXX object CMakeFiles/MyProject.dir/test.cpp.o /home/heart-hacker/osgproject/program-2/test.cpp:1:23: fatal error:

Re: [osg-users] Fedora 18 with nVidia driver: OSG crashes session

2013-02-01 Thread Jan Ciger
On Fri, Feb 1, 2013 at 12:27 PM, Stuart Mentzer osgfo...@tevs.eu wrote: Hi, To clarify, problem is already solved with the fix to xorg.conf I posted. glxinfo and glxgears were not running correctly and now they are. Yes, I am running nvidia drivers properly and all was well under F17 as I

Re: [osg-users] Shadow Volumes integration

2013-02-01 Thread PCJohn
Hi Robert and J-S, thanks for suggestions. The namespace trick seems interesting. I will try to lead our code in this direction. John On Friday 01 of February 2013 09:05:47 Robert Osfield wrote: Hi Johan and JS, My inclination would be towards using a nested namespace as suggest by J-S, this

Re: [osg-users] Fedora 18 with nVidia driver: OSG crashes session

2013-02-01 Thread Jeremy Moles
On 01/31/2013 04:30 PM, Stuart Mentzer wrote: Hi Robert, You were right: the problem was broader than OSG. The fix was to modify /etc/X11/xorg.conf so that these 2 lines were in the Files section: Code: Section Files ModulePath /usr/lib64/nvidia/xorg ModulePath

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread David Longest
Koduri, When I use jpeg plugin, I did the following things 1) USE_OSGPLUGIN(jpeg) in .h file 2) Added -ljpeg to LOCAL_LDLIBS in Android.mk file 3) Added -losgdb_jpeg \ to LOCAL_LDFLAGS in Android.mk file. Similarly I need to do for ffmpeg plugin also. I added -lffmpeg to LOCAL_LDLIBS

[osg-users] PagedLOD and coordinates transform

2013-02-01 Thread Olivier Tournaire
Hi all, I have a question regarding PagedLOD. I use as input a hierarchy of files. The vertices in the geometries are in a local reference system, and, for some reason, in need to transform them to a projected coordinate system : Lambert 93. I have a transformation which works fine. However,

Re: [osg-users] [osgPlugins] Plugin vrml

2013-02-01 Thread Jan Ciger
On 01/31/2013 10:20 PM, lucie lemonnier wrote: I compiled openvrml-0.17.12 with visual studio 2008 without problem. When I try to compile openvrml-0.17.12 with visual studio 2010, I have this error in compilation several times : typename cannot be used outside a template declaration Does that

Re: [osg-users] Fedora 18 with nVidia driver: OSG crashes session

2013-02-01 Thread Stuart Mentzer
Thanks for all the input. The Files section with those 2 lines already appears in /etc/X11/xorg.conf.d/00-nvidia.conf but for some reason isn't getting picked up in F18. I am not sure there is a benefit to copying that to /usr/share/X11/xorg.conf.d/ as well. I am no expert on how the nvidia

Re: [osg-users] getting errors in creating First OSG program

2013-02-01 Thread Michael W. Hall
Sounds like you may have missed an include file in your test.cpp file, or you have included something that it does not know about. If your program is short you may want to paste it into a reply and then people could maybe determine the problem. Michael On Fri, 2013-r2-01 at 19:10 +0530, om

Re: [osg-users] Retrieve Wold matrix while animating

2013-02-01 Thread Peterakos
Hello. I try to obtain the world matrices using getWorldMatrices. The graph is : Group Group MatrixTransform The object uses the following matrix as Matrix Transform: 1 0 0 0 0 1 0 0 0 0 1 2.5 0 0 0 1 But i still get 3 identity matrices. When i add the object in scene, its

Re: [osg-users] getting errors in creating First OSG program

2013-02-01 Thread om prakash Paliwal
one more problem i have ... when i complile/build using cmake and then use make i get an error .. i have to modify the code genereted by cmake to get is corrected .. why so ... the error that is genereted are pasted below is there any problem with installation ..

[osg-users] OpenSceneGraph, om prakash Paliwal has invited you to open a Gmail account

2013-02-01 Thread om prakash Paliwal
I've been using Gmail and thought you might like to try it out. Here's an invitation to create an account. You're Invited to Gmail! om prakash Paliwal has invited you to open a Gmail account. Gmail is Google's free email service, built on the idea that email can be intuitive, efficient, and