Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Paul Melis
Robert Osfield wrote: Hi Paul, On Wed, May 14, 2008 at 8:21 AM, Paul Melis [EMAIL PROTECTED] wrote: I didn't manage to find out what is going on. The only different between osgthirdpersonview (not working) and osgcompositeviewer (working) is that the former uses separate windows to render

Re: [osg-users] osgShadow, node traversal, and node mask

2008-05-15 Thread Ben Discoe
Gordon, thanks, that clears up the first part, a default Camera mask of 0x explains why any non-zero node mask is rendered. I fear that also means, in the second question below, that the CastsShadow bit _does_ need to be set for every parent along the nodepath. Otherwise, a visitor

Re: [osg-users] osgthirdpersonview example: anyone e lse with an ATIhaving problems?

2008-05-15 Thread Alberto Luaces
El Jueves 15 Mayo 2008ES 09:04:50 Paul Melis escribió: The osgwindows example is also not working without troubles. Sometimes it runs with no problems, but mostly it locks up in a similar way as osgthirdpersonview. I attached with gdb after a lockup and the stack traces for the different

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Paul Melis
Alberto Luaces wrote: El Jueves 15 Mayo 2008ES 09:04:50 Paul Melis escribió: The osgwindows example is also not working without troubles. Sometimes it runs with no problems, but mostly it locks up in a similar way as osgthirdpersonview. I attached with gdb after a lockup and the stack

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Alberto Luaces
El Jueves 15 Mayo 2008ES 09:56:36 Paul Melis escribió: Paul, what compiler are you using?   gcc 4.1.2, I believe (pretty sure it's one from the 4.1 series). Why, are there known defects regarding threading? Oh, I'm sorry. Somehow I thought you were using some Windows gcc version. Now I

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Paul Melis
Alberto Luaces wrote: El Jueves 15 Mayo 2008ES 09:56:36 Paul Melis escribió: Paul, what compiler are you using? gcc 4.1.2, I believe (pretty sure it's one from the 4.1 series). Why, are there known defects regarding threading? Oh, I'm sorry. Somehow I thought you were using

Re: [osg-users] osgShadow, node traversal, and node mask

2008-05-15 Thread Wojciech Lewandowski
Hi Ben, I fear that also means, in the second question below, that the CastsShadow bit _does_ need to be set for every parent along the nodepath. Otherwise, a visitor recursive descent of the scene graph will quit as soon as it encounters any node, like a Group or LOD, that does not have the

Re: [osg-users] GeoTIFF dem coordinate system?

2008-05-15 Thread Robert Osfield
Hi Linh, On Wed, May 14, 2008 at 8:20 PM, Linh Phan [EMAIL PROTECTED] wrote: In VPB there isn't any support for substituting a custom value for NoDataValue elements, this could be added though. That would be great if you can added to VPB. Please let me know when you have it in so I can

Re: [osg-users] Rendering to a image file (taking a screenshot)

2008-05-15 Thread Robert Osfield
Hi J-S, On Wed, May 14, 2008 at 8:27 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: I'll do it, I'll do it! :-) ;-) (seriously, it's one of the things I have to do in the next few days for our own software, and I was planning on making it generic enough to factor out) A few questions

Re: [osg-users] OSG-QT4 integration

2008-05-15 Thread Robert Osfield
Hi Venugopol, I only have knowledge of the core OSG's osgviewerQT example, so can't answer anything about Gazhihan's example. What problems do you have? What platform are you working on? Robert. On Thu, May 15, 2008 at 4:14 AM, venugopal gudimetla [EMAIL PROTECTED] wrote: Hi, I am a

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Alberto Luaces
El Jueves 15 Mayo 2008ES 11:00:41 Vincent Bourdier escribió: Hi all, After a look on the net and in the archive, I think nobody did it before, but I prefer ask to earn time : I need to do something like a stack or a list of actions to apply on the scenegraph (FIFO stack if possible). I've a

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
Hi Alberto I just need to control when I flush the stack, to synchonise with the threads. A Callback would flush the stack (and so modify the graph) at the same time of the callbacks which traverse the graph... It is dangerous. I would stop the threads, flush my stack, and notify the threads to

[osg-users] Hang on cooperativeWait in atexit

2008-05-15 Thread Anders Backman
Long time no see :-) Using Osg 2.2.0. WinXP, VisualStudio 2008. I have a slight problem that I cant seem to get around. We have a thread with a few OpenThread::Block, and in the destructor of the thread we call block.release(). The thing is that the thread is still running when scope of main

[osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
Hi all, After a look on the net and in the archive, I think nobody did it before, but I prefer ask to earn time : I need to do something like a stack or a list of actions to apply on the scenegraph (FIFO stack if possible). I've a thread which will create the actions to make, and I need to do

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Robert Osfield
HI Paul, On Thu, May 15, 2008 at 8:56 AM, Paul Melis [EMAIL PROTECTED] wrote: gcc 4.1.2, I believe (pretty sure it's one from the 4.1 series). Why, are there known defects regarding threading? I'm using gcc-4.1.3 under Kubuntu with NVidia drivers, and certainly don't see any threading

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
Hi Robert, You said then you'll need to place a barrier in frame loop to half the frame loop thread I'm not sure to understand how I can do it, and what do you mean by half the frame loop ?? Moreover, I need a stack, that will be re-used for an other way, so I think I'll keep this idea. I

Re: [osg-users] EventHandler

2008-05-15 Thread Alberto Luaces
El Jueves 15 Mayo 2008ES 11:07:35 Miriam D'Elia escribió: Hi, what is the function equivalent of osgViewer addEventHandler () for osgProducer? You just add it (with push_back()) to the list returned by osgViewer::getEventHandlers(). ___ osg-users

Re: [osg-users] reg:material properties

2008-05-15 Thread Robert Osfield
On Thu, May 15, 2008 at 11:05 AM, [EMAIL PROTECTED] wrote: how do we give emmisive property to an object in osg...in opengl it can be done via material properties is there something similar to that in osg. glMaterial - osg::Material ___ osg-users

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Robert Osfield
Hi Vincent, How much threading have you done before, i.e. how confident are you about using threads, blocks and barriers? I asks this as I doubt no how much to assume. Robert. On Thu, May 15, 2008 at 11:25 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi Robert, You said then you'll need to

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Zoltán
Robert Osfield wrote on Thursday 15 May 2008: On Thu, May 15, 2008 at 10:59 AM, Zoltán [EMAIL PROTECTED] wrote: osgwindows works, see attached screenshot (It's quite funny to see the same cow turn in 2 different windows, if that is what it's supposed to do). This type of set up is used

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
I'm not very familiar with threads, and no more with OpenThreads... but I learn quickly if I understand. But if I need to spend a week to understant and set it, I'd better make my stack I think... Vincent 2008/5/15 Robert Osfield [EMAIL PROTECTED]: Hi Vincent, How much threading have you

Re: [osg-users] Hang on cooperativeWait in atexit

2008-05-15 Thread Robert Osfield
Hi Anders, When managing threads one has to be very careful about destruction order. The key is to make sure the the threads are stopped before any objects they are operating on are deleted. Since you are off in your own code that isn't much specifically that I and others can do to help.

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Robert Osfield
Hi Zoltan, On Thu, May 15, 2008 at 10:59 AM, Zoltán [EMAIL PROTECTED] wrote: osgwindows works, see attached screenshot (It's quite funny to see the same cow turn in 2 different windows, if that is what it's supposed to do). osgwindows is written to allow you to move the windows about, whilst

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Zoltán
Paul Melis wrote on Thursday 15 May 2008: osgwindows works, see attached screenshot (It's quite funny to see the same cow turn in 2 different windows, if that is what it's supposed to do). So you get no lockups of the example where it doesn't redraw anymore? Interesting. I can even have

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-15 Thread Robert Osfield
On Thu, May 15, 2008 at 11:28 AM, Zoltán [EMAIL PROTECTED] wrote: I'm writing a flight simulator, and one of the things I have been thinking about is, one day, having multiple screens to have a larger FOV. So yes, this is a very interresting feature. Not sure yet how much overhead that brings.

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Robert Osfield
Hi Vincent, The OSG designed around the model of single threaded update, multi-thread cull-draw. If you have others threads beyond the main frame loop thread that is want to do updates then you'll need to place a barrier in frame loop to half the frame loop thread while you operations run, then

[osg-users] VPB: Call to GDALRasterBand::RasterIO returns wrong no data values for gtopo30

2008-05-15 Thread John Vidar Larring
Hi, Problem Summary: The calls to GDALRasterBand::RasterIO() in vpd::SourceData::getInterpolatedValue() and vpd::SourceData::readHeightField() returns no-data-values as 55537 instead of the correct - for gtopo30 data. VPB: revision 911 OSG: revision 8321 GDAL version 1.5.1 The

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Robert Osfield
On Thu, May 15, 2008 at 11:43 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: I'm not very familiar with threads, and no more with OpenThreads... but I learn quickly if I understand. But if I need to spend a week to understant and set it, I'd better make my stack I think... Have a read through

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
Thanks for your help, I'll try to look at it in details. Regards, Vincent. 2008/5/15 Robert Osfield [EMAIL PROTECTED]: On Thu, May 15, 2008 at 11:43 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: I'm not very familiar with threads, and no more with OpenThreads... but I learn quickly if

[osg-users] Problem loading textures

2008-05-15 Thread Tobias.Bellmann
Hi all, I am working on a simulator visualisation using OSG. This visualisation has some minor bugs producing an exception when loading a TEXTURED .obj File OUTSIDE the osgviewer's field of view. My problem seems to be a matter of thread-safety, because with osgviewer's threading model set to

Re: [osg-users] Building the SVG plugin

2008-05-15 Thread Philip Lowman
On Tue, May 13, 2008 at 11:11 AM, Paul Martz [EMAIL PROTECTED] wrote: Hi Paul, As JS, Ulrich and Philip has mentioned at present the dependency checking code relies upon pkg-config, which isn't standard under Windows. For Windows we'll need write our won FindCario and FindRSVG.cmake

Re: [osg-users] How to document osgShadow?

2008-05-15 Thread Wojciech Lewandowski
Adrian, Example osgshadow --pssm -1 | -2 | -3 works (i see shadows moving correctly) on Windows XP, NVidia GeForce 7800 GTX. Cheers, Wojtek - Original Message - From: Adrian Egli OpenSceneGraph (3D) To: [EMAIL PROTECTED] ; OpenSceneGraph Users Sent: Thursday, May 15, 2008

Re: [osg-users] VPB: Call to GDALRasterBand::RasterIO returns wrong no data values for gtopo30

2008-05-15 Thread Robert Osfield
Hi John, This sounds like a GDAL bug. Would it be possible for you to provide links to the problematic data. I'd guess the GDAL team might like to look at it as well. Robert. Robert. On Thu, May 15, 2008 at 12:22 PM, John Vidar Larring [EMAIL PROTECTED] wrote: Hi, Problem Summary: The

Re: [osg-users] VPB: Call to GDALRasterBand::RasterIO returns wrong no data values for gtopo30

2008-05-15 Thread John Vidar Larring
Hi Robert, This sounds like a GDAL bug. Would it be possible for you to provide links to the problematic data. As far as I know this is just the standard GTOPO30 data from USGS. The DEM files can be downloaded from: http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html I'd guess

Re: [osg-users] OSG-QT4 Integration

2008-05-15 Thread venugopal gudimetla
Hi, Could anyone please help me? I tried examples on the OSG website and link example but nothing semms to work. I am on Ubuntu Linux. Could anyone please direct me/email me a working example to integrate QT4 with OSG? please help. I just started using OSG.

Re: [osg-users] OSG-QT4 Integration

2008-05-15 Thread Robert Osfield
Hi Venugopal, I have already replied to you on this topic asking specifically what problems you are having with the osgviewerQT example. I run Kubuntu 7.10 and am able to compile and run the osgviewerQT example without problems. Howewever, I and no one else can do anything to help you unless

Re: [osg-users] pagedLOD question

2008-05-15 Thread Brett Wiesner
Yes, that should do work. If you already have the LowRes LODs loaded, you could also do: osg::pagedLOD* pagedLod0 = new osg::pagedLOD; pagedLod0-addChild(pagedLod0LowResChild); pagedLod0-setFilename(1, pagedLod3Child0Filename); group-addChild(pagedLod0); Thanks Bryan. That method

Re: [osg-users] Hang on cooperativeWait in atexit

2008-05-15 Thread Anders Backman
Ok, it looks like the thread sort of dies when we leave the scope of main. When I get to the atexit() callback, The only thread left is Main Thread (running main()). All other threads are not running any more (according to VisualStudio and Task Manager). However, querying the threads for

Re: [osg-users] How to document osgShadow?

2008-05-15 Thread Jean-Sébastien Guay
Hello Adrian, Nice video, I suppose the different shadow colors are to show where the split occurs? please test this latest PSSM implementation (ATI, NVidia,..) Which latest PSSM implementation? The one in OSG as of right now? On my GeForce 8800 GTX, OSG from SVN (after 2.5.0) osgshadow

Re: [osg-users] How to document osgShadow?

2008-05-15 Thread Jean-Sébastien Guay
Hi Adrian, Example osgshadow --pssm -1 | -2 | -3 works (i see shadows moving correctly) on Windows XP, NVidia GeForce 7800 GTX. I just tested again with the other scenes. -1 : Not sure what I'm supposed to see, I just see a big grey plane that changes shades of grey. I don't see any shadow

Re: [osg-users] Rendering to a image file (taking a screenshot)

2008-05-15 Thread Jean-Sébastien Guay
Hello Robert, Ideally it'd be configurable - so you can capture particular camera's, through to all cameras. There is also the aspect of capturing the window contents rather than just individual cameras. OK, interesting. I'll think about this and try some possible solutions. The filename

[osg-users] VPB: texture banding at all tile levels

2008-05-15 Thread John Vidar Larring
Hi, VPB: revision 911 OSG: revision 8323 The following command line is used to create a simple globe (all DEM files from gtopo30 are used): ./osgdemd -d in/gtopo30/E020N40.DEM [...snip...] -d in/gtopo30/W180S60.DEM --bluemarble-east -t in/bluemarble/land_shallow_topo_east.tif

Re: [osg-users] fedora spec files

2008-05-15 Thread Eric Sokolowsky
Timo Penndorf wrote: Hello, i want to create rpm packages of osg for fedora. Are there spec files? I had a spec file for OSG 1.2, but it's woefully out of date. I intend to update it for OSG 2.4 at some point but I have to get my application working with 2.4 first. If you want to start

Re: [osg-users] VPB: texture banding at all tile levels

2008-05-15 Thread Robert Osfield
Hi John, This is a new one for me, never seen banding reported before. Could you try running a release build of osgdem to see if the problem persists. Also try out the database on other computers with different hardware as there is chance that you are seeing a OpenGL driver problem. Robert.

Re: [osg-users] OSG-QT4 Integration

2008-05-15 Thread Gordon Tomlinson
Venugopal, You might also have a read of this http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Thursday, May 15, 2008 8:46 AM To: OpenSceneGraph Users Subject: Re: [osg-users]

Re: [osg-users] pagedLOD question

2008-05-15 Thread Thrall, Bryan
Brett Wiesner wrote on Thursday, May 15, 2008 7:57 AM: My next question, is how does the pagedLOD node know when page in/ page out its child node? In my code I was only setting filenames, not min, max ranges... osg::pagedLOD* pagedLod0 = new osg::pagedLOD; pagedLod0-setFilename(0,

Re: [osg-users] Building the SVG plugin

2008-05-15 Thread Jason Daly
Philip Lowman wrote: Can GTK and rsvg/cairo be built under Visual Studio? They can (I've done it), but it takes a bit of work. The Visual Studio modes of compiling aren't well-maintained by some of the libraries. The trickiest one was fontconfig (a dependency of rsvg). --J

Re: [osg-users] How to document osgShadow?

2008-05-15 Thread Jean-Sébastien Guay
Hi again, I tested code which Adrian attached in his email. Ah, silly me, I hadn't seen the attachment. I'll retest in a few minutes. Sorry about that. J-S -- __ Jean-Sebastien Guay[EMAIL

Re: [osg-users] How to document osgShadow?

2008-05-15 Thread Jean-Sébastien Guay
Hi Wojtek, Adrian, I retested with --screen 0 and indeed osgshadow --pssm -1 | -2 | -3 --screen 0 does not flicker. Interesting isn't it ? I don't know much about PSSM implementation but it must be view dependent somehow. So if its not carefully prepared for multi view use some resources

Re: [osg-users] VPB: texture banding at all tile levels

2008-05-15 Thread ümit uzun
Hi Robert; I have try to create the earth database like John's; osgdem --bluemarble-west -t land_shallow_topo_west.tif --bluemarble-east -t land_shallow_topo_east.tif --geocentric -o earth/earth.ive --so build.source osgdem -s build.source -d E020N90.DEM -d /E020N40.DEM -v 1.4 -l 6 And the

[osg-users] osgdem/vpb ignore alpha channel

2008-05-15 Thread Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW
I have several hundred images I'm using in my terrain generation. Each image contains 4 bands of data, 3 are the standard RGB, but the 4th is another visual band. Osgdem/VPB is using the 4th band as an alpha channel, which is causing some visual artifacts. Is there an undocumented command line

Re: [osg-users] osgShadow, node traversal, and node mask

2008-05-15 Thread Alejandro Segovia
Hello, I'm having a problem somewhat related to node masks and shadows. I'm using the ShadowTexture technique on a Software project I'm working on, and I've set the CastsShadowTraversalMask to 0x1, the ReceivesShadowTraversalMask to 0x2, and have set the node masks for my nodes to be 0x3

Re: [osg-users] VPB: texture banding at all tile levels

2008-05-15 Thread Mike Weiblen
You're not on ATI hardware by any chance? -- mew On Thu, May 15, 2008 at 8:30 AM, John Vidar Larring [EMAIL PROTECTED] wrote: Hi, VPB: revision 911 OSG: revision 8323 The following command line is used to create a simple globe (all DEM files from gtopo30 are used): ./osgdemd -d

Re: [osg-users] Uniform value getting overwritten in shader.

2008-05-15 Thread Mike Weiblen
Does the glsl_simple.osg example datafile work for you? It demonstrates one shader w/ different values for the Color1 uniform. -- mew On Thu, May 15, 2008 at 2:01 PM, Dorosky, Christopher G [EMAIL PROTECTED] wrote: Hello, I am having problems with a uniform value getting trumped in a

[osg-users] osgViewer instead of osgProducer::Viewer

2008-05-15 Thread Eric Sokolowsky
I'm porting my application from OSG 1.2 using osgProducer::Viewer to OSG svn. Most of the port was straightforward, though I'm encountering some strangeness. My questions: 1. Is there a page on the wiki that covers porting OSG 1.2 to current OSG? I'd like to add some of my notes to that page

Re: [osg-users] How to document osgShadow?

2008-05-15 Thread Jim Brooks
I could submit modifications to the osgshadow source code with appropriate comment paragraphs explaining how to use each class. Sprinkling comments in the example code would help a lot. ___ osg-users mailing list osg-users@lists.openscenegraph.org