[osg-users] how to catch openGL errors

2010-11-02 Thread Tomas Hnilica
Hi, What is the best way to catch openGL errors? My scenegraph uses osg::PagedLOD nodes and in some cases it happens that GPU goes out-of-memory and I can see this message on std::cout. I would like to catch this error and adjust PagedLOD settings to have less nodes in the scene. My idea is

Re: [osg-users] PagedLOD - too many nodes

2010-10-23 Thread Tomas Hnilica
Hi Robert, However, I think this is probably just a hack around what it essentially an issue of poor load balancing in the paged database you have built. In essence what you are trying to do when using LOD/PagedLOD's is to keep the load on the whole computer to a level that the system

[osg-users] PagedLOD - too many nodes

2010-10-22 Thread Tomas Hnilica
Hi, I am using osg::PagedLOD nodes in my project for large models visualization. The model is splitted into several parts (like octree) and multiresolution tree is made - same as VPB uses: Code: Group PagedLOD child 0 - local tile geometry at low resolution child 1 - external

Re: [osg-users] valgrind, memory leak debugging

2010-05-05 Thread Tomas Hnilica
Hi Laurens, Hi Jason, thank you very much, the osg::ref_ptr on osgDB::readNodeFile helped! In almost all OSG examples reading node from the file is done without ref_ptr, that is why I did it too. After using ref_ptr many of the leaks detected are gone. Jason, you are right, I had to

[osg-users] valgrind, memory leak debugging

2010-05-02 Thread Tomas Hnilica
) - The linux code is OSG 2.8.0, I tested the same with 2.9.7 as well. Thank you very much for any comments and help in advance, Tomas Hnilica bool generateSimplifiedNodes( MyObject* node) { /* node is a object representing

Re: [osg-users] setProjectionMatrix and FOV

2009-04-02 Thread Tomas Hnilica
] On Behalf Of Tomas Hnilica Sent: Friday, March 27, 2009 5:19 AM To: OpenSceneGraph Users Subject: [osg-users] setProjectionMatrix and FOV Hello osg users, I am trying to set the camera perspective projection to 'near' orthogonal. I achieve desired projection by setting the FOV to some low number (1.0

[osg-users] setProjectionMatrix and FOV

2009-03-27 Thread Tomas Hnilica
Hello osg users, I am trying to set the camera perspective projection to 'near' orthogonal. I achieve desired projection by setting the FOV to some low number (1.0). When the projection matrix is changed in this way, the scene is 'zoomed-in'. This means, that MatrixManipulator::home does also

Re: [osg-users] dynamic LODs

2008-10-15 Thread Tomas Hnilica
::readNodeFile(fileName); does it mean that the input file must fit into the memory to process it? Many thanks, Tomas Robert Osfield napsal(a): Hi Tomas, On Tue, Oct 14, 2008 at 2:07 PM, Tomas Hnilica [EMAIL PROTECTED] wrote: does anyone know about dynamic Level Of Details implementation in OSG

[osg-users] dynamic LODs

2008-10-14 Thread Tomas Hnilica
Hello all OSG users, does anyone know about dynamic Level Of Details implementation in OSG? There are well described algorithms like several types of Hoppe's Progressive Meshes or Garland's Quadric Error Metrics. I am wondering if no one made an OSG implementation (or is there some major

[osg-users] Billboard and osgText

2008-08-01 Thread Tomas Hnilica
Hello OSG users, I am making an Compass (x,y,z axis arrows) node to show current rotation of the scene (model). Arrows are OK, but i have problem to set osgText into Billboard node (to show label on each axis). I cannot see the text, but it's processed, because the bounding box of the scene is

[osg-users] ScalarBar vertical

2008-07-10 Thread Tomas Hnilica
Hello all, does anyone use the osgSim::ScalarBar with vertical display in HUD? I would like to show the scalarbar vertically on the left screen side. In the example osgscalarbar there are two ways of ScalarBar displaying, HUD one does not show when changed to VERTICAL, the other one does not

[osg-users] getColorIndices usage

2008-07-02 Thread Tomas Hnilica
Hello all OSG users, does anyone know how to use the Geometry::getColorIndices() method? I do not know how to work with the returned IndexArray - how to access and change the values. My situation: Geometry uses generally one color and sometimes it's necessary to draw some primitiveSets by

Re: [osg-users] getColorIndices usage

2008-07-02 Thread Tomas Hnilica
as using . It far far more efficient to repeat colours to get the effect than to use per array indices, it might be more data you are managing but it used OpenGL fast paths. Robert. On Wed, Jul 2, 2008 at 8:20 AM, Tomas Hnilica [EMAIL PROTECTED] wrote: Hello all OSG users, does anyone know how

Re: [osg-users] QT issue

2008-03-20 Thread Tomas Hnilica
:-) Robert. On Thu, Mar 20, 2008 at 11:07 AM, Tomas Hnilica [EMAIL PROTECTED] wrote: Hello all OSG users, I found few issues by intergration OSG(2.2.0) with QT (4.3.3) : The ViewerQT class from OSG-2.2.0 works well in the osqviewerQT.cpp example. But when I add it to existing QT window, I

Re: [osg-users] osgViewer + Fox Toolkit example

2007-09-07 Thread Tomas Hnilica
Hi Markus, the code works great. The frame update through OSG methods is much faster than using FOX's FXGLCanvas::makeCurrent(), no idea why. I also tried to use one common FXGLVisual for all GraphicsWindowFOX's, like in FOX's glviewer example. Works fine, initialization is much faster of

Re: [osg-users] osgViewer + Fox Toolkit example

2007-09-06 Thread Tomas Hnilica
Hello Marcus, could you please describe your test of multiple viewer windows? When I add another FOX_OSG_MDIView to the MDICllient, both scenes are drawn to the newly created window and the first one is not actualised, mouse actions are token from both windows correctly. (I think this would be