[osg-users] [osgPlugins] Plugin vrml

2013-01-31 Thread lucie lemonnier
Hello, I compiled OpenSceneGraph-3.0.1 with the vrml plugin with Visual Studio 2010. I compiled openvrml-0.18.9 with boost_1_47. When I try to load a vrml model (osgviewer.exe object.wrl), I have this error : FindFileInPath() : trying

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

2013-01-31 Thread Stuart Mentzer
Hi Robert, No luck: Both osgviewer and my (debug build) app bring down the session even running under gdb. Running my app in its non-GUI mode that brings up a stand-alone OSG window doesn't kill the session. Instead I get: Code: Error: Not able to create requested visual. GraphicsWindow

[osg-users] Shadow Volumes integration

2013-01-31 Thread PCJohn
Hi, me and my coleague have developed number of Shadow Volume shadow algorithms and we would like to contribute them one day to OSG. To mention the reason for Shadow Volumes: They are often used in CAD, etc. as they work in screen space, thus they do not suffer with aliasing/resolution

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

2013-01-31 Thread Robert Osfield
Hi Stuart, The GraphicsWindow warnings shout out that GLX is not set up correctly. This really doesn't look like an OSG specific issue so I'd recommend checking Fedora support forums for bug reports/advice how to fix things. Good luck, Robert. On 31 January 2013 09:45, Stuart Mentzer

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

2013-01-31 Thread Jan Ciger
On Thu, Jan 31, 2013 at 9:56 AM, lucie lemonnier lucielemonn...@hotmail.frwrote: Hello, I compiled OpenSceneGraph-3.0.1 with the vrml plugin with Visual Studio 2010. I compiled openvrml-0.18.9 with boost_1_47. When I try to load a vrml model (osgviewer.exe object.wrl), I have this error :

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

2013-01-31 Thread Christian Schulte
Hi, I just tried to recompile on a RedHat Enterprise 5.3 with gcc 4.7.2 the OSG trunk. The compilation fails on ReaderWriterDDS.cpp on a error : 'GL_HALF_FLOAT' not declared in this scope. I use Mesa 6.5.1, it's the last release recognized by yum on RedHat (I know it's quite old... :-( ). In

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

2013-01-31 Thread Robert Osfield
Hi Christian, I have had a look through the OSG code base and there is mix of GL_HALF_FLOAT, GL_HALF_FLOAT_NV and GL_HALF_FLOAT_ARB thanks to various submissions at different times. This obviously isn't ideal so I've replaced all the L_HALF_FLOAT_NV and GL_HALF_FLOAT_ARB usage with GL_HALF_FLOAT

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

2013-01-31 Thread lucie lemonnier
Hi, I have all the dependancies dll that I need in my path. I think that a openvrml.dll has a bug because I tested the sdl-viewer.exe in the openvrml visual studio project and it crashes. Does someone compile OpenVrml with Visual Studio 2010 without problem?With which version of OpenVrml?

[osg-users] How to acquire the screen coordinates of a 3D object?

2013-01-31 Thread Fan ZHANG
Hi all, I want to know how to acquire the screen coordinates of a 3D object? posi is a Vec3 containing the coordinates information in WCS. Then I tried: osgViewer::Viewer viewer; osg::Camera* cam = viewer.getCamera(); osg::Matrix viewMatrix = cam-getViewMatrix(); posi =

Re: [osg-users] How to acquire the screen coordinates of a 3D object?

2013-01-31 Thread Shayne Tueller
If you're new to the OSG, it is really helpful to look at the examples and also search the OSG forums for the problems you're looking for. Many of the questions most new folks ask, have already been addressed and answered in the forum. Hopefully the link below will help you...

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

2013-01-31 Thread Jan Ciger
On Thu, Jan 31, 2013 at 5:53 PM, lucie lemonnier lucielemonn...@hotmail.frwrote: Hi, I have all the dependancies dll that I need in my path. I think that a openvrml.dll has a bug because I tested the sdl-viewer.exe in the openvrml visual studio project and it crashes. Does someone compile

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

2013-01-31 Thread lucie lemonnier
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 tell you something? I will try to get some

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

2013-01-31 Thread Stuart Mentzer
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 /usr/lib64/xorg/modules EndSection This comes from

Re: [osg-users] Shadow Volumes integration

2013-01-31 Thread Jean-Sébastien Guay
Hi John, One suggestion, you could use nested namespaces, and then abbreviate locally so it's easier to read. For example: namespace osgShadow { namespace ShadowVolume { class Occluder { ... } } } // then in some .cpp file where you need to use it: namespace osgsv =

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

2013-01-31 Thread Ulrich Hertlein
Hi Stuart, On 31/01/13 20:45, Stuart Mentzer wrote: Hi Robert, No luck: Both osgviewer and my (debug build) app bring down the session even running under gdb. Running my app in its non-GUI mode that brings up a stand-alone OSG window doesn't kill the session. Instead I get: Code:

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

2013-01-31 Thread Koduri Lakshmi
Hi Jordi Torres, I build ffmpeg1.0 with OSG3.0.1 for Android (for armv7-a) device. When build example I am getting the errors like undefined reference to `av_log_set_callback. I Added USE_OSGPLUGIN(ffmpeg) to .h file and added ldflag as -losgdb_ffmpeg to Android.mk file. Here are the full

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

2013-01-31 Thread Christian Schulte
Hi Robert, 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 correct the math.h problem (regarding the round function, see discussion