[osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Li Zhenpeng
*I am a newbie on osg. My laptop's OS is ubuntu11.10 with AMD ATI HD6770. I've enabled 3D accellerate driver. I've compiled and installed osg3.01 successfully. Here is result: osglogo* Warning: Could not find plugin to read objects from file Images/land_shallow_topo_2048.jpg. Warning: Could not

Re: [osg-users] Change uniform array size

2012-11-13 Thread Robert Osfield
Hi Peterakos, How you would tackle the problem depends upon what your need are for changing the number of uniforms. In terms of OpenGL objects it's generally best to used fixed size objects so that you don't have to reallocate them. To change the size used by the shader one would simply pass in

Re: [osg-users] how to use several texture one time?

2012-11-13 Thread Robert Osfield
H Shawl, The OSG supports multi-texturing, simply assign each texture to its own texture unit. See the osgmultitexture example and osggeometry examples to see how to assign multiple textures and set up text coords. Robert. On 13 November 2012 07:38, wh_xiexing wh_xiex...@sina.com wrote: **

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Robert Osfield
Hi Li? Zhenpeng? Could you sign with the name you wished to be address as. Thanks. There looks to be two separate classes of problems - missing dependences (peg and freetype) and the X11 error. To solve the dependencies issues you'll need to pull in the dev packages, a list of the most common

[osg-users] Custom cursors and OSG used from .NET

2012-11-13 Thread Peter Bako
Hello! I am creating an osg scene, which is rendered to a .NET picture box on a windows forms scene. Code: void startInFormWinCpp(int wh){ //wh is a window handle HWND hwnd = (HWND)wh; baseViewer = new osgViewer::Viewer(); osg::ref_ptrosg::GraphicsContext::Traits traits = new

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Li Zhenpeng
hi robert, Thanks for your concern. For my sign name, I will change it to keep same between google+ and osg forums. It's convinient to us all. For your advice, I will load the dependencies and rebuild osg. Could you please give me some more advice about X11 error? It's confusing and hard to

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jordi Torres
Hi Li, Just a long shot... have you tried to set LD_PRELOAD to your libGL.so library. I have had similiar problems in the past with the old ATI drivers as well as the Mesa drivers. Something like export LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your environment variables with

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jan Ciger
On Tue, Nov 13, 2012 at 12:17 PM, Jordi Torres jtorresfa...@gmail.comwrote: Hi Li, Just a long shot... have you tried to set LD_PRELOAD to your libGL.so library. I have had similiar problems in the past with the old ATI drivers as well as the Mesa drivers. Something like export

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jordi Torres
Hi Jan, Yes, preloading an incorrect version of the library will only give you more problems, that's the reason why I said to check the environmet variables. BUT in older versions of Ubuntu and with Mesa drivers there was a bug with the DRI drivers not linking to the libGL library see [1] and

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread robotspace.biz
Hi Jordi, That's great. I believe you find the issue I encountered. Following is my check result. *env | grep -in libgl* 14:LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri:/usr/lib32/fglrx/dri That means no variable pointing to my libGL drivers. I checked /usr/lib directory and there is no libGL.so file.

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jordi Torres
Hi Li, Have you compiled OSG in 32 or 64 bit? Check if in /usr/lib/fglrx/dri or /usr/lib32/fglrx/dri do exists libGL depending on your target architecture. As Jan said a the output of glxinfo could give some light. libGL is supposed to be installed/replaced with your drivers. Cheers. 2012/11/13

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread robotspace.biz
Jordi Jan Thanks for your concerns. Your advice is very helpful. In fact my ubuntu is for 64bit target. I checked file attribute as follow: *file /usr/lib/fglrx/libGL.so* /usr/lib/fglrx/libGL.so: symbolic link to `libGL.so.1' *file /usr/lib/fglrx/libGL.so.1* /usr/lib/fglrx/libGL.so.1: symbolic

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jordi Torres
It seems like you have a bad installation of your fglrx drivers. Reinstall them. In the other hand I was asking about which was your OSG compilation target. I assume 64 bits. Hope it helps. 2012/11/13 robotspace.biz robotspace@gmail.com Jordi Jan Thanks for your concerns. Your advice is

Re: [osg-users] Review of osgQt changes.

2012-11-13 Thread Kristofer Tingdahl
Martin, all. That is indeed great news, but we would need to maintain Qt4 compatibility for a number of years ahead. It also confirms the idea of a base-class in osgQt::GraphicsWindowQt::WindowData that would be inherited by various implemtations, where one would be Qt4, one Qt5 and one with

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jan Ciger
Hello, On Tue, Nov 13, 2012 at 1:06 PM, robotspace.biz robotspace@gmail.comwrote: Hi Jordi, That's great. I believe you find the issue I encountered. Following is my check result. *env | grep -in libgl* 14:LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri:/usr/lib32/fglrx/dri That means no

Re: [osg-users] failed to create osg environment on ubuntu11.10

2012-11-13 Thread Jan Ciger
On Tue, Nov 13, 2012 at 1:38 PM, robotspace.biz robotspace@gmail.comwrote: for Jan's advice, I checked glxinfo and get errors: *glxinfo* name of display: :0 X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 155 (GLX)

[osg-users] How to remove or reduce shivering in soft shadow map?

2012-11-13 Thread michael kapelko
Hi. I'm using SoftShadowMap. I've tried to change jittering scale, but couldn't get rid of shivering/moving of shadow with it. Here's the video that depicts the shivering: https://dl.dropbox.com/u/12634473/ssmjittering.ogv Is there any way to remove that shivering, or at least reduce it? Thanks.

[osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Darren Graham
Hi, I am using osg to display just a simple cube using lines in 3D. This is fine if I use a solid line (no pattern). but I get an odd effect when I use linestipple to create a dashed line. When I move the camera around the dashes move up/down the length of the line. This looks wrong to me.

[osg-users] ffmpeg version to use ???

2012-11-13 Thread Carlos Sanches
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] ffmpeg version to use ???

2012-11-13 Thread Alberto Luaces
Carlos Sanches writes: Hello ! I d like to know what version of ffmpeg I have to use to compile osg 3.0.1  in linux ? Thanks Hi, OSG 3.0.1 and ffmpeg 0.8.4 work with this tiny patch: https://alioth.debian.org/scm/browser.php?group_id=100578 or you could just upgrade to the latest

Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Robert Osfield
Hi Darren, This will be a limitation with the implementation line stipple in OpenGL. I can't think of an easy solution to making sure the stipple is object space, the hard way would be to not use LineStipple but create the lines yourself and then use a 1D texture to create the stipple effect.

Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Darren Graham
create the lines yourself and then use a 1D texture to create the stipple effect are there any examples I can look at? Cheers, Darren -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51080#51080

[osg-users] Windows 8 x64

2012-11-13 Thread Martin Naylor
Hi all, Just to say I have tested OSG(SVN) under Windows 8 Pro(x64) and haven't noticed any problems. It's still technically Windows 7 apart from the 'Start' button going and is now the metro interface and you are no longer able to find anything, until you get used to it. It seems to work fine!

Re: [osg-users] osg::LineStipple - dashed lines unexpected behaviour

2012-11-13 Thread Robert Osfield
On 13 November 2012 16:04, Darren Graham darrenfgra...@hotmail.com wrote: create the lines yourself and then use a 1D texture to create the stipple effect are there any examples I can look at? Plenty, just search the OpenSceneGraph/examples for Texture1D. One obvious one will be