[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 find plugin to read objects from file fonts/arial.ttf.
Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
BadRequest (invalid request code or no such operation)
Major opcode: 155
Minor opcode: 19
Error code: 1
Request serial: 13
Current serial: 13
  ResourceID: 23
Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
BadRequest (invalid request code or no such operation)
Major opcode: 155
Minor opcode: 19
Error code: 1
Request serial: 14
Current serial: 14
  ResourceID: 23
Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

*osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0
BadRequest (invalid request code or no such operation)
Major opcode: 155
Minor opcode: 19
Error code: 1

*osgviewer OpenSceneGraph-Data-3.0.0/example.osg *
Old osgAnimation file format update your data file
Old osgAnimation file format update your data file
Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230
BadRequest (invalid request code or no such operation)
Major opcode: 155
Minor opcode: 19
Error code: 1
Request serial: 13
Current serial: 13
  ResourceID: 23
*
What's wrong with me?*
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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  second uniform to control how man
samples are used.

Robert.

On 12 November 2012 19:36, Peterakos hay...@gmail.com wrote:

 Hello.

 Is there any way to change uniform array size ?

 What i do now is:

 const int num_of_samples = 64;
 uniform vec3 sample_kernel[num_of_samples];

 Can i have num_of_samples as uniform ?

 If not, is it a good idea to have sample_kernel's size as 512 or 1024
 and iterate only num_of_samples  ?

 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


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:

 **

 i have a mesh and want to project several photo on the mesh .   code is
 here:

  osg::Switch *layer = new osg::Switch;
 osg::Geode* leaf = 0;
 if (!hasTexture){
 leaf = createLeaf(points, numOfVert, tris,header.np);
 layer-addChild(leaf);
 }else{
 osg::Group *group = new osg::Group;
 for (unsigned int gr = 0; gr  header.ngr; gr++){
 /*for every group , load the different texture*/
 osg::Texture2D* texture = 0L;
 osg::ref_ptrosg::Image image;
 if(osgDB::isAbsolutePath(groups[gr].texmap)){
 image = osgDB::readImageFile(std::string(groups[gr].texmap));
 }else{
 std::string absoluteFile = osgDB::getFilePath(fileName)
 + std::string(/)
 + std::string(groups[gr].texmap);
 image = osgDB::readImageFile(absoluteFile);
 }
 texture = new osg::Texture2D;
 texture-setImage( image.get() );
 if (texture-getImage()!=0L){
 group-getOrCreateStateSet()-setTextureAttributeAndModes(gr,texture );
 //set texture units

 group-getOrCreateStateSet()-setTextureAttribute(gr, new 
 osg::TexEnv(osg::TexEnv::DECAL));
 }
 /*create group leaf*/

 leaf = createLeaf(points, tris_t, groups[gr].poly_begin, groups[gr].poly_end, 
 gr);
 group-addChild(leaf);
 }
 layer-addChild(group);
 }

 the problem is that just one texture unit works .
 in case :
  for (unsigned int gr = 0; gr  header.ngr; gr++){  unit 0
 works
  for (unsigned int gr = 1; gr  2; gr++){
 unit 1 works


 then , how can i show the whole mesh with texture?


 thanks in advance
 --
 Shawl

 ___
 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


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 dependencies is listed on the page below (you may
need to adjust a little for variations between versions of Ubunutu):


http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

Once you have the dependencies you'll need to rebuild the OSG, to force it
to check again for the dependencies remove the
OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

The X11 error is something I can't help with.  I've used similar AMD
hardware before and haven't had problems under Kubuntu.

Robert.


On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.com wrote:

 *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 find plugin to read objects from file fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 14
 Current serial: 14
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

 *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
 Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1

 *osgviewer OpenSceneGraph-Data-3.0.0/example.osg *
 Old osgAnimation file format update your data file
 Old osgAnimation file format update your data file
 Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 *
 What's wrong with me?*

 ___
 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] 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 
osg::GraphicsContext::Traits();

traits-inheritedWindowData = new osgViewer::GraphicsWindowWin32::WindowData( 
hwnd );
traits-setInheritedWindowPixelFormat = true;
traits-supportsResize = true;

RECT rect;
::GetWindowRect( hwnd, rect );

traits-x = 0;
traits-y = 0;
traits-width = rect.right - rect.left;
traits-height = rect.bottom - rect.top;
traits-windowDecoration = false;
traits-doubleBuffer = true;
traits-sharedContext = 0;


osg::ref_ptrosg::GraphicsContext graphicsContext = 
osg::GraphicsContext::createGraphicsContext( traits.get() );
baseViewer-getCamera()-setGraphicsContext( graphicsContext.get() );
baseViewer-getCamera()-setViewport( new osg::Viewport( 0, 0, traits-width, 
traits-height ) );
baseViewer-getCamera()-setProjectionMatrixAsPerspective(30.0f, 
static_castdouble(traits-width)/static_castdouble(traits-height), 1.0f, 
1.0f);
baseViewer-setCameraManipulator(new osgGA::TrackballManipulator()); 
camera=baseViewer-getCamera();
camera-setClearColor(osg::Vec4(0.7f, 0.7f, 0.7f, 1.0f));
osg::ref_ptrosg::Group rootViewGroup= new osg::Group();
rootViewGroup-addChild(rootGroup);
baseViewer-setSceneData( rootViewGroup.get() );
_beginthread(renderStatic, 0, (void*)this);
}




I want to use some custom cursors depending from what am I doing. But on these 
objects, there are no functions to set the cursor (only if I would get a 
osgViewer::GraphicsWindowWin32). So I tried to change the cursor in .NET, this 
works only sometimes (on mouseDown I change the cursor - this is OK, on mouse 
up I change it again, but the default arrow is shown istead of my custom 
cursor).
I also tried to set traits-useCursor = false; but then the cursor 
disappeared (after mouseUp).

So the question is -  how can I disable the overriding of the cursor in osg? OR 
how can I use a custom cursor - in OSG, when I use a HWND from .NET to render 
the scene? Has anyone experience with this?

Thank you for your answers!

Cheers,
Peter[/code]

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51062#51062





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 conquer.
It's necesary for me to create linux environment for osg because I have
other projects such as Android and Minix on my laptop.

On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield robert.osfi...@gmail.comwrote:

 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 dependencies is listed on the page below (you may
 need to adjust a little for variations between versions of Ubunutu):


 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

 Once you have the dependencies you'll need to rebuild the OSG, to force it
 to check again for the dependencies remove the
 OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

 The X11 error is something I can't help with.  I've used similar AMD
 hardware before and haven't had problems under Kubuntu.

 Robert.


 On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.com wrote:

 *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 find plugin to read objects from file
 fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 14
 Current serial: 14
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

 *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
 Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1

 *osgviewer OpenSceneGraph-Data-3.0.0/example.osg *
 Old osgAnimation file format update your data file
 Old osgAnimation file format update your data file
 Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 *
 What's wrong with me?*

 ___
 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


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 the command 'env' to see if there exist any
variable pointing to your libGL drivers.

Cheers.

2012/11/13 Li Zhenpeng robotspace@gmail.com

 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 conquer.
 It's necesary for me to create linux environment for osg because I have
 other projects such as Android and Minix on my laptop.


 On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield 
 robert.osfi...@gmail.comwrote:

 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 dependencies is listed on the page below (you may
 need to adjust a little for variations between versions of Ubunutu):


 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

 Once you have the dependencies you'll need to rebuild the OSG, to force
 it to check again for the dependencies remove the
 OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

 The X11 error is something I can't help with.  I've used similar AMD
 hardware before and haven't had problems under Kubuntu.

 Robert.


 On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.com wrote:

 *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 find plugin to read objects from file
 fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 14
 Current serial: 14
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

 *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
 Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1

 *osgviewer OpenSceneGraph-Data-3.0.0/example.osg *
 Old osgAnimation file format update your data file
 Old osgAnimation file format update your data file
 Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 *
 What's wrong with me?*

 ___
 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




-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
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


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
 LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your
 environment variables with the command 'env' to see if there exist any
 variable pointing to your libGL drivers.



That shouldn't be needed, unless the Ubuntu installation is badly broken.
In fact, preloading an incorrect version of the library will only give you
more problems (e.g. you may lose hw acceleration or even crash X).

Run glxinfo and check whether proper driver is enabled - it should be in
the 'renderer' string, including whether hw acceleration is on or not. The
error above looks like an incorrectly installed graphic driver. I don't
know what Ubuntu ships, but you need the AMD 'fglrx' driver, including the
matching kernel module for OSG to work properly. Make sure to install it
correctly and actually restart the machine after building/installing the
kernel module.

The X11 error means that the application is trying to do something that
isn't supported by the driver.

Regards,

Jan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 [2]. I have
experienced the same error on ATI cards. Anyway I agree that it seems like
a bad driver installation.

Cheers.

[2]http://www.xfree86.org/current/DRI11.html
[3]
http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg01152.html

2012/11/13 Jan Ciger jan.ci...@gmail.com



 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
 LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your
 environment variables with the command 'env' to see if there exist any
 variable pointing to your libGL drivers.



 That shouldn't be needed, unless the Ubuntu installation is badly broken.
 In fact, preloading an incorrect version of the library will only give you
 more problems (e.g. you may lose hw acceleration or even crash X).

 Run glxinfo and check whether proper driver is enabled - it should be in
 the 'renderer' string, including whether hw acceleration is on or not. The
 error above looks like an incorrectly installed graphic driver. I don't
 know what Ubuntu ships, but you need the AMD 'fglrx' driver, including the
 matching kernel module for OSG to work properly. Make sure to install it
 correctly and actually restart the machine after building/installing the
 kernel module.

 The X11 error means that the application is trying to do something that
 isn't supported by the driver.

 Regards,

 Jan

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
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


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.

Is your OS is ubuntu too? Is ligGL.so is a link file or a real lib file?

Here is my search command: sudo apt-cache search libgl. It is hard to
select correct library from more than twenty libraries to install.

BTW, libGL is an runtime lib? Should I re-configure-compile-install osg
after I set LD_PRELOAD?

On Tue, Nov 13, 2012 at 7: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
 LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your
 environment variables with the command 'env' to see if there exist any
 variable pointing to your libGL drivers.

 Cheers.

 2012/11/13 Li Zhenpeng robotspace@gmail.com

 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 conquer.
 It's necesary for me to create linux environment for osg because I have
 other projects such as Android and Minix on my laptop.


 On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield robert.osfi...@gmail.com
  wrote:

 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 dependencies is listed on the page
 below (you may need to adjust a little for variations between versions of
 Ubunutu):


 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

 Once you have the dependencies you'll need to rebuild the OSG, to force
 it to check again for the dependencies remove the
 OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

 The X11 error is something I can't help with.  I've used similar AMD
 hardware before and haven't had problems under Kubuntu.

 Robert.


 On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.com wrote:

 *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 find plugin to read objects from file
 fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 14
 Current serial: 14
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

 *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
 Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1

 *osgviewer OpenSceneGraph-Data-3.0.0/example.osg *
 Old osgAnimation file format update your data file
 Old osgAnimation file format update your data file
 Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 *
 What's wrong with me?*

 ___
 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




 --
 Jordi Torres Fabra

 gvSIG 3D blog
 http://gvsig3d.blogspot.com
 Instituto de Automática e Informática Industrial
 http://www.ai2.upv.es

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 

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 robotspace.biz robotspace@gmail.com

 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.

 Is your OS is ubuntu too? Is ligGL.so is a link file or a real lib file?

 Here is my search command: sudo apt-cache search libgl. It is hard to
 select correct library from more than twenty libraries to install.

 BTW, libGL is an runtime lib? Should I re-configure-compile-install osg
 after I set LD_PRELOAD?


 On Tue, Nov 13, 2012 at 7: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
 LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your
 environment variables with the command 'env' to see if there exist any
 variable pointing to your libGL drivers.

 Cheers.

 2012/11/13 Li Zhenpeng robotspace@gmail.com

 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 conquer.
 It's necesary for me to create linux environment for osg because I have
 other projects such as Android and Minix on my laptop.


 On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield 
 robert.osfi...@gmail.com wrote:

 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 dependencies is listed on the page
 below (you may need to adjust a little for variations between versions of
 Ubunutu):


 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

 Once you have the dependencies you'll need to rebuild the OSG, to force
 it to check again for the dependencies remove the
 OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

 The X11 error is something I can't help with.  I've used similar AMD
 hardware before and haven't had problems under Kubuntu.

 Robert.


 On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.comwrote:

 *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 find plugin to read objects from file
 fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 14
 Current serial: 14
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

 *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
 Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1

 *osgviewer OpenSceneGraph-Data-3.0.0/example.osg *
 Old osgAnimation file format update your data file
 Old osgAnimation file format update your data file
 Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 *
 What's wrong with me?*

 ___
 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
 

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 link to `libGL.so.1.2'
*file /usr/lib/fglrx/libGL.so.1.2*
/usr/lib/fglrx/libGL.so.1.2: ELF 64-bit LSB shared object, x86-64, version
1 (SYSV), dynamically linked, stripped

It seems that libGL.so is OK. I set LD_PRELOAD to * */usr/lib/fglrx/libGL.so
and BadRequest error exist also.

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)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  12
  Current serial number in output stream:  12

Yes, I come close root cause. But what is it?


On Tue, Nov 13, 2012 at 8:16 PM, Jordi Torres jtorresfa...@gmail.comwrote:

 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 robotspace.biz robotspace@gmail.com

 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.

 Is your OS is ubuntu too? Is ligGL.so is a link file or a real lib file?

 Here is my search command: sudo apt-cache search libgl. It is hard to
 select correct library from more than twenty libraries to install.

 BTW, libGL is an runtime lib? Should I re-configure-compile-install osg
 after I set LD_PRELOAD?


 On Tue, Nov 13, 2012 at 7: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
 LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your
 environment variables with the command 'env' to see if there exist any
 variable pointing to your libGL drivers.

 Cheers.

 2012/11/13 Li Zhenpeng robotspace@gmail.com

 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 conquer.
 It's necesary for me to create linux environment for osg because I have
 other projects such as Android and Minix on my laptop.


 On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield 
 robert.osfi...@gmail.com wrote:

 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 dependencies is listed on the page
 below (you may need to adjust a little for variations between versions of
 Ubunutu):


 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

 Once you have the dependencies you'll need to rebuild the OSG, to
 force it to check again for the dependencies remove the
 OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

 The X11 error is something I can't help with.  I've used similar AMD
 hardware before and haven't had problems under Kubuntu.

 Robert.


 On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.comwrote:

 *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 find plugin to read objects from file
 fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 14
 Current serial: 14
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0

 *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg*
 Got an X11ErrorHandling call 

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 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 link to `libGL.so.1.2'
 *file /usr/lib/fglrx/libGL.so.1.2*
 /usr/lib/fglrx/libGL.so.1.2: ELF 64-bit LSB shared object, x86-64, version
 1 (SYSV), dynamically linked, stripped

 It seems that libGL.so is OK. I set LD_PRELOAD to * */usr/lib/fglrx/libGL.so
 and BadRequest error exist also.

 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)
   Minor opcode of failed request:  19 (X_GLXQueryServerString)
   Serial number of failed request:  12
   Current serial number in output stream:  12

 Yes, I come close root cause. But what is it?



 On Tue, Nov 13, 2012 at 8:16 PM, Jordi Torres jtorresfa...@gmail.comwrote:

 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 robotspace.biz robotspace@gmail.com

 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.

 Is your OS is ubuntu too? Is ligGL.so is a link file or a real lib file?

 Here is my search command: sudo apt-cache search libgl. It is hard to
 select correct library from more than twenty libraries to install.

 BTW, libGL is an runtime lib? Should I re-configure-compile-install osg
 after I set LD_PRELOAD?


 On Tue, Nov 13, 2012 at 7: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
 LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your
 environment variables with the command 'env' to see if there exist any
 variable pointing to your libGL drivers.

 Cheers.

 2012/11/13 Li Zhenpeng robotspace@gmail.com

 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 conquer.
 It's necesary for me to create linux environment for osg because I
 have other projects such as Android and Minix on my laptop.


 On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield 
 robert.osfi...@gmail.com wrote:

 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 dependencies is listed on the page
 below (you may need to adjust a little for variations between versions of
 Ubunutu):


 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies

 Once you have the dependencies you'll need to rebuild the OSG, to
 force it to check again for the dependencies remove the
 OpenSceneGraph/CmakeCache.txt and then re-run the ./configure.

 The X11 error is something I can't help with.  I've used similar AMD
 hardware before and haven't had problems under Kubuntu.

 Robert.


 On 13 November 2012 08:32, Li Zhenpeng robotspace@gmail.comwrote:

 *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 find plugin to read objects from file
 fonts/arial.ttf.
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 Major opcode: 155
 Minor opcode: 19
 Error code: 1
 Request serial: 13
 Current serial: 13
   ResourceID: 23
 Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890
 BadRequest (invalid request code or no such operation)
 

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 something else.

As there has been few comments on my last e-mail, I will go ahead and make
an updated proposal. I'll keep you posted.

Cheers,


Kristofer

-- 
Kristofer Tingdahl, Ph. D.
CEO
dGB Earth Sciences
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 variable pointing to my libGL drivers. I checked /usr/lib
 directory and there is no libGL.so file.


There isn't supposed to be a variable pointing to the drivers. The
LD_PRELOAD is a non-standard hack.
The fglrx driver libraries are under /usr/lib/fglrx I think and the actual
libGL.so.x.x is probably in one of the sub-directories. Look also in
/usr/lib/X11.


 Is your OS is ubuntu too? Is ligGL.so is a link file or a real lib file?


There should be actually both. The versioned libGL.so.x.x and non-versioned
symlinks libGL.so pointing to the versioned one.



 Here is my search command: sudo apt-cache search libgl. It is hard to
 select correct library from more than twenty libraries to install.

 BTW, libGL is an runtime lib? Should I re-configure-compile-install osg
 after I set LD_PRELOAD?


OSG wouldn't compile correctly if you didn't have the libraries installed.
However, do make sure that you don't have a messed up installation, linking
OSG to e.g. the libGL from Mesa (software driver). That wouldn't work right.

Please make sure to follow these instructions and install the driver
properly:
https://help.ubuntu.com/community/BinaryDriverHowto/ATI

The part 2. Installation via the Ubuntu repositories should be sufficient.

Regards,

Jan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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)
   Minor opcode of failed request:  19 (X_GLXQueryServerString)
   Serial number of failed request:  12
   Current serial number in output stream:  12

 Yes, I come close root cause. But what is it?


That means you have incorrectly configured X11. Either the OpenGL support
(glx) is not loaded at all or you have it incorrectly installed and it
fails to load due to some driver/library problem - the log files in
/var/log/ should be able to tell you exactly what is wrong.

Please, reinstall the drivers using the instructions in my other e-mail and
that should fix it.

Jan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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.  I would like the 
dashes to not move along the lines as the camera is rotated.  Is this possible?

Thank you!

Cheers,
Darren

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51075#51075





___
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 ???

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 development version of OSG,
where it is already applied.

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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.

Robert.




On 13 November 2012 14:00, Darren Graham darrenfgra...@hotmail.com wrote:

 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.  I
 would like the dashes to not move along the lines as the camera is rotated.
  Is this possible?

 Thank you!

 Cheers,
 Darren

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=51075#51075





 ___
 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


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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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!

Regards

Martin 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 osgtexture1D.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org