Re: [osg-users] Caching Nodes is not a threadsafe operation

2008-10-14 Thread Schmidt, Richard
Hi Robert, I am using osg 2.6.0 and you're right, osg::Node as well as osg::Stateset use getRefMutex for protecting the access to the parent list. However getRefMutex isn't used in the atomic refcounted case and osg::StateAttribute doesn't use a mutex at all for protecting the parents. The method

Re: [osg-users] FBO performance in osgprerender example

2008-10-14 Thread Alexander Löffler
Hi Robert, Robert Osfield wrote: If your frame rate drops when you zoom it suggests you are fill limited which shouldn't be related to the FBO/PixelBuffer/FrameBuffer choice for the RTT as it's res is fixed. Hight RT cost would make give the app less time to do this fill so perhaps the

Re: [osg-users] Problem with OpenThreads::Atomic whenbuildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-14 Thread Björn Blissing
Hi, On Friday 10 October 2008 17:27, Björn Blissing wrote: I have dug down on this problem during the day. The problem is that the code that checks if ATOMIC should use GCC BUILTIN fails. I have traced this failure to the combination of the XEON processor and GCC version. But

Re: [osg-users] crash in osgviewer on Linux

2008-10-14 Thread Robert Osfield
Hi Hartmut, I have driven four screens from two cards under linux without problems, but haven't recently tried this. I also didn't use Xrandr, and I'm not sure why you say this is needed as running four screens is possible with just straight configuration of xorg.conf. The stack trace you have

Re: [osg-users] crash in osgviewer on Linux

2008-10-14 Thread Robert Osfield
Hi Hartmut, On Tue, Oct 14, 2008 at 11:30 AM, Hartmut Seichter [EMAIL PROTECTED] wrote: Enabling vsync on all cards/screens worked and it runs ok now. Good to hear it works, but it's probably just a change in timing that is avoid the problem, rather than actually solving it. I traced the

Re: [osg-users] FBO performance in osgprerender example

2008-10-14 Thread Alexander Löffler
Hi Robert, Robert Osfield wrote: It might be that the Nvidia driver/hardware combination doesn't implement FBO well. Another possibility is that your GPU local memory is too small and the driver is having to swap things on/off the card. Do you have any other systems that you could try. I

Re: [osg-users] Soliciting osgWidget Advice (osgWidget::Frame)

2008-10-14 Thread Jean-Sébastien Guay
Hi Jeremy, I can see from a high-level how, if you rotate the entire texture 90 CW, you could use horizontal texture repeat to achieve the desired effect. This doesn't, unfortunately, give me any hints as to how to actually implement this in osgWidget. You could just rotate sections 3 and 4

[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] Re osg::getGlyphQuads

2008-10-14 Thread yang zhiyuan
Hi: I have solved the problem how to get one char's position inside a osgText::Text; The purpose is to move cursor when input text. Here is my code: updateCursorPos(const std::string string, int position) { osg::Vec3 cursor_position = m_inputText-getPosition(); //get the font

Re: [osg-users] Soliciting osgWidget Advice (osgWidget::Frame)

2008-10-14 Thread Jean-Sébastien Guay
Hi Jeremy, I can see from a high-level how, if you rotate the entire texture 90 CW, you could use horizontal texture repeat to achieve the desired effect. This doesn't, unfortunately, give me any hints as to how to actually implement this in osgWidget. You could just rotate sections 3 and 4

Re: [osg-users] dynamic LODs

2008-10-14 Thread Robert Osfield
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? The VirtualTerrainProject is based ontop of the OpenSceneGraph and adds a number of CLOD techniques. There are well described algorithms

Re: [osg-users] Soliciting osgWidget Advice (osgWidget::Frame)

2008-10-14 Thread Jeremy Moles
On Tue, 2008-10-14 at 09:30 -0400, Jean-Sébastien Guay wrote: Hi Jeremy, I can see from a high-level how, if you rotate the entire texture 90 CW, you could use horizontal texture repeat to achieve the desired effect. This doesn't, unfortunately, give me any hints as to how to actually

Re: [osg-users] Caching Nodes is not a threadsafe operation

2008-10-14 Thread Robert Osfield
Hi Richard, I have made some changes to Referenced, OpenThreads and the various addParent/removeParent codes to make sure that mutex is used to protect access to these methods even when atomic ref counting is enabled. The solution I opted for was to have a static

Re: [osg-users] Sharing Vertex Arrays between Geometry Nodes

2008-10-14 Thread Paul Martz
osg::Geometry* geom0 = new osg::Geometry; osg::Geometry* geom1 = new osg::Geometry; osg::Vec3Array* verts = osg::Vec3Array; geom0-setVertexArray( verts ); geom1-setVertexArray( verts ); Hope that helps. -Paul _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aitor

Re: [osg-users] Sharing Vertex Arrays between Geometry Nodes

2008-10-14 Thread Aitor Arrieta
Hi Paul Thanks a lot for your reply, but unfortunately I think that my question is not as simple as you think. Sorry because it was my fault as I did not explain myself correctly. The problem is that I must have a single vertex arrays for many different geometries but each geometry uses only a

Re: [osg-users] Sharing Vertex Arrays between Geometry Nodes

2008-10-14 Thread Aitor Arrieta
Hi Paul Thanks again for your prompt reply and sorry for my stupid message. As I have said before, I am completely a beginner in this osg world I will try to apply your code and see what happens. Regards, Aitor - Mensaje original De: Paul Martz [EMAIL PROTECTED] Para:

[osg-users] Compile errors in current SVN

2008-10-14 Thread Jean-Sébastien Guay
Hi Robert, First in the new osgrobot example: 27..\..\..\examples\osgrobot\osgrobot.cpp(154) : error C2065: 'M_PIl' : undeclared identifier 27..\..\..\examples\osgrobot\osgrobot.cpp(253) : error C2065: 'M_PI_2' : undeclared identifier Probably use osg::PI etc? Second in osgdb_ive:

Re: [osg-users] Compile errors in current SVN

2008-10-14 Thread Robert Osfield
Hi J-S, On Tue, Oct 14, 2008 at 4:40 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: 27..\..\..\examples\osgrobot\osgrobot.cpp(154) : error C2065: 'M_PIl' : undeclared identifier 27..\..\..\examples\osgrobot\osgrobot.cpp(253) : error C2065: 'M_PI_2' : undeclared identifier Probably use

[osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-14 Thread Ralph R. Peters
Hi Robert, I get an email digest and so I have been responding directly with thunderbird. What should I put in the subject line so that I maintain the thread? Is what I put above sufficient? Please tell me what to do! Yes, my last post was really long!!! :-[ I was trying to provide as

Re: [osg-users] Compile errors in current SVN

2008-10-14 Thread Robert Osfield
Hi J-S, On Tue, Oct 14, 2008 at 5:41 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: And secondly the ZLIB_INCLUDE_DIRS doesn't seem to be pointing to the correct place, or... that INCLDUE_DIRECTORIES isn't working here. The error is that it should be ZLIB_INCLUDE_DIR (without the 'S').

[osg-users] RE : Re: PDF rendering inside OSG

2008-10-14 Thread Franclin Foping
Hi, I suggest you look at PDF3D (www.pdf3d.co.uk), which is a module that allow you to easily export your scene to a PDF file. I recently wrote a module that also allow to dump an OSG based scene graph to a PDF file. I am sure whether they have already published it. For more information,

Re: [osg-users] Compile errors in current SVN

2008-10-14 Thread Jean-Sébastien Guay
Hi Robert, OK, converted across to osg::PI and osg::PI_2 and checked into SVN. Ok thanks. Which does have the INCLUDE_DIRECTORIES directive in there as well, so a couple of things seem to be in play, first that CMake itself believes that your have Zlib installed, is this correct? Yes,

Re: [osg-users] PDF rendering inside OSG

2008-10-14 Thread Jeremy Moles
On Sat, 2008-10-11 at 22:30 +0200, alessandro terenzi wrote: I would like to read pdf documents, process them in some way, and finally render them inside my osg application. How can I do it in osg? I can add this power to osgCairo if you want; would take about an hour. Thank you. Best

Re: [osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-14 Thread Robert Osfield
HI Ralf, On Tue, Oct 14, 2008 at 6:21 PM, Ralph R. Peters [EMAIL PROTECTED] wrote: Hi Robert, I get an email digest and so I have been responding directly with thunderbird. What should I put in the subject line so that I maintain the thread? Is what I put above sufficient? Please tell me

[osg-users] default font not loaded by osgViewer::StatsHandler

2008-10-14 Thread sicong he
Hi, all, I'm now using osgViewer::StatsHandler to measure my scene, the program runs OK under windows system. But under my Ubuntu 8.04 the the console output the following message: *Warning: font file fonts/arial.ttf not found. *And the stats font is very very small. I just think it load another

Re: [osg-users] Caching Nodes is not a threadsafe operation

2008-10-14 Thread Robert Osfield
Hi Richard, This morning I awoke with the thought that the new atomic ref counting code most likely has broken the thread safe addParent()/removeParent(). To fix this we'll need to reintroduce another mutex for this task, either one per Object/Referenced or perhaps a shared one. Mutex's are

[osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-14 Thread Ralph R. Peters
Hi, I spent some time talking to jakub who runs the gcc forum and he disagrees with you. A digest follows of our exchanges and a link to the entire thread. A related problem may be that the test for pthread_setaffinity_np fails in CMake. See my second post from yesterday. Ralph

Re: [osg-users] Using osgUtil::RenderStage for selective lighting

2008-10-14 Thread Robert Osfield
Hi Daniel, This topic is a surprisingly complex one as you're finding out. I think a couple of areas will need to be worked on to get a good final result. First the rendering back end will have to tweaked so that objects are binned on light grouping they are associated with - this is where

Re: [osg-users] PDF rendering inside OSG

2008-10-14 Thread Gerwin de Haan
Jeremy, if you have an hour to spare, that would be great! After I replied to Alessandro to give osgCairo a try I did so myself. Works like a charm, but the loading of both svg and pdfs is not directly supported by cairo itself, is it? For svg, I recall to have played around with a seperate svg

Re: [osg-users] PDF rendering inside OSG

2008-10-14 Thread Jeremy Moles
On Tue, 2008-10-14 at 21:59 +0200, Gerwin de Haan wrote: Jeremy, if you have an hour to spare, that would be great! After I replied to Alessandro to give osgCairo a try I did so myself. Works like a charm, but the loading of both svg and pdfs is not directly supported by cairo itself, is it?

Re: [osg-users] PDF rendering inside OSG

2008-10-14 Thread Jeremy Moles
On Tue, 2008-10-14 at 21:59 +0200, Gerwin de Haan wrote: Jeremy, if you have an hour to spare, that would be great! After I replied to Alessandro to give osgCairo a try I did so myself. Works like a charm, but the loading of both svg and pdfs is not directly supported by cairo itself, is it?

Re: [osg-users] FBO performance in osgprerender example

2008-10-14 Thread Robert Osfield
Hi Alex, It might be that the Nvidia driver/hardware combination doesn't implement FBO well. Another possibility is that your GPU local memory is too small and the driver is having to swap things on/off the card. Do you have any other systems that you could try. Robert. On Tue, Oct 14, 2008

Re: [osg-users] dynamic LODs

2008-10-14 Thread Tomlinson, Gordon
Hi We have used a Dynamic CLOD implementation in the past and it work quite well on constrained datasets but at processing cost and does not scale to larger datasets or dense data sets such as LIDAR based. We are in the process of moving away from a dynamic clod implementation to an a more

Re: [osg-users] crash in osgviewer on Linux

2008-10-14 Thread Hartmut Seichter
Enabling vsync on all cards/screens worked and it runs ok now. I traced the segfault down to the statshandler code or better say the the things it uses. Problem is that valgrind slows down the machine as much so that the race condition does not get triggered. Maybe I wasn't clear xrandr is

Re: [osg-users] Multiple Contexts in QT Applications

2008-10-14 Thread Lukas Diduch
Hello Robert, after digging deeper into the interna of GraphicsWindowX11.cpp i've found a pretty simple hack to use OSG (natively) in QT with CompositeViewer in multithreded mode. Natively means with a graphics context created by OSG. The hack is basically tweaking QOSGWidget from the examples

Re: [osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-14 Thread Robert Osfield
HI Ralf, Could you please keep your posts on the same thread so it makes it possible for others to follow, there are a great many posts that get posted on osg-users and unless you keep to the thread basically it becomes unmanageable for us to follow things. And when you say Hi... and he

Re: [osg-users] Problem with OpenThreads::Atomic whenbuildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-14 Thread Robert Osfield
Hi Björn, This is a long shot, but might be worth asking/trying. When you updating to the atomic ref/count version of the OSG did you remove the previous OpenSceneGraph/CMakeCache.txt? Robert. ___ osg-users mailing list

Re: [osg-users] Problem with OpenThreads::Atomic whenbuildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-14 Thread Mathias Fröhlich
Hi, On Tuesday 14 October 2008 09:44, Björn Blissing wrote: The problem is that since the CMAKE script CheckAtomicOps.cmake, that checks if _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS are available, fails we will never get to the line: #if defined(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS)

Re: [osg-users] Sharing Vertex Arrays between Geometry Nodes

2008-10-14 Thread Paul Martz
The code I posted will work for the use case you describe. Indices are part of the PrimitiveSet; assign a different PrimitiveSet (with different indices) to each Geometry and they will index into the same vertex array. -Paul _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [osg-users] PDF rendering inside OSG

2008-10-14 Thread Jeremy Moles
On Tue, 2008-10-14 at 16:07 -0400, Jeremy Moles wrote: On Tue, 2008-10-14 at 21:59 +0200, Gerwin de Haan wrote: Jeremy, if you have an hour to spare, that would be great! After I replied to Alessandro to give osgCairo a try I did so myself. Works like a charm, but the loading of both svg

Re: [osg-users] default font not loaded by osgViewer::StatsHandler

2008-10-14 Thread Robert Osfield
Hi HeSiciong, On Tue, Oct 14, 2008 at 12:51 PM, sicong he [EMAIL PROTECTED] wrote: Hi, all, I'm now using osgViewer::StatsHandler to measure my scene, the program runs OK under windows system. But under my Ubuntu 8.04 the the console output the following message: Warning: font file

Re: [osg-users] Problem with OpenThreads::Atomicwhenbuildingapplication with OSG 2.6.0 on SUSE 10.2

2008-10-14 Thread Björn Blissing
-Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Robert Osfield Skickat: den 14 oktober 2008 12:57 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Problem with OpenThreads::Atomicwhenbuildingapplication with OSG 2.6.0 on SUSE 10.2 Hi Björn,

[osg-users] Reporting Builds

2008-10-14 Thread Mathieu MARACHE
Hi all, Robert accepted last month a submission enabling reporting of builds to a public dashboard. This submission lacked a public announcement due to poor documentation. This new feature (BUILD_DASHBOARD_REPORTS option defaulted to OFF) will permit to some people willing to share some build

[osg-users] How to Map a image on osg::Cylinder?

2008-10-14 Thread YangXiao
Hi: Everyone How to Map a image on osg::Cylinder? Best regards. YangXiao. - 雅虎邮箱,您的终生邮箱!___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] 回复: How to Map a image o n osg::Cylinder?

2008-10-14 Thread YangXiao
sorry i find a example osgshape have this function,But how to exclude Cylinder top and bottom plane when map image on it? Thanks . YangXiao. YangXiao [EMAIL PROTECTED] 写道: Hi: Everyone How to Map a image on osg::Cylinder? Best regards. YangXiao.

Re: [osg-users] default font not loaded by osgViewer::StatsHandler

2008-10-14 Thread sicong he
Thank you Robert, it works now! 2008/10/14 Robert Osfield [EMAIL PROTECTED] Hi HeSiciong, On Tue, Oct 14, 2008 at 12:51 PM, sicong he [EMAIL PROTECTED] wrote: Hi, all, I'm now using osgViewer::StatsHandler to measure my scene, the program runs OK under windows system. But under my

[osg-users] 回复: 回复: How to Map a image on osg::Cylinder?

2008-10-14 Thread YangXiao
Sorry . I have solved this problem! YangXiao [EMAIL PROTECTED] 写道:sorry i find a example osgshape have this function,But how to exclude Cylinder top and bottom plane when map image on it? Thanks . YangXiao. YangXiao [EMAIL PROTECTED] 写道: Hi: Everyone How to Map a image on

[osg-users] Advanced Particles

2008-10-14 Thread Roman Grigoriev
Hi guys! I've tested osg particle system and have question how to make independent from emitter particles. I explain the situation. If I have static emitter all works fine - gravity and friction operator but when emitter moves or rotates all movement is relative from emitter but I think that