Re: [osg-users] memory leak in osg::StateSet::merge() ?

2009-06-04 Thread Robert Osfield
Hi John, Since StateSet uses ref_ptr internally for all StateAttribute, and merge doesn't create anything on the heap - it just copies then it's pretty unlikely there is a memory leak. Far more likely is that the tool you are using for tracking memory leaks is faulty. Could you please explain

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Robert Osfield
Hi Melchior, Added the unmapped/modified key to the GUIEventAdapter is something we've discussed in the past. The unmodifed would have to be assigned in addition to the existing modified key, as just dropping the mapping would break exisiting applications, not doing the mapping would also

Re: [osg-users] master/slave camera question

2009-06-04 Thread Robert Osfield
HI Wyatt, Have a look at the osgdistortion example as it doesn't exactly what you are talking about. Robert. On Thu, Jun 4, 2009 at 12:36 AM, Wyatt Earp wyattbsearp1...@gmail.com wrote: I want to render my scene to a texture using an FBO, then I want to take that texture as input for another

Re: [osg-users] transparency problem

2009-06-04 Thread Robert Osfield
Hi Su Hu, On Thu, Jun 4, 2009 at 2:01 AM, su hu ttts...@gmail.com wrote: There are lots of transparent objects/nodes in my scene.  I need to place them in the depth sorted bin. How can I find out these transparent nodes quickly?  Thanks a lot. I'm afraid you don't provide enough context to

Re: [osg-users] How to apply LISPSM shadows to a scene with differentshaders - Part 3

2009-06-04 Thread Wojciech Lewandowski
Miguel, I am not sure whats the problem. Shadows on the ground look ok. So the matrices must be ok as well. All I can notice is improper self shadowing on soldier models. If this is the case then look at following thread:

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Melchior FRANZ
Maybe I should have described the patch a little more, even though it's rather short. Initialization -- Define an array _lastKey[] in which every physical key is mapped to a keySym. All entries are initialized to -1, which means that the key is not pressed. Array size is 256 on X11

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Melchior FRANZ
Hi, Added the unmapped/modified key to the GUIEventAdapter is something we've discussed in the past. That would allow applications to work around that OSG *bug*. But IMHO that's clearly a bug. The unmodifed would have to be assigned in addition to the existing modified key, as just

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Melchior FRANZ
Here's another illustration of what the patch does. The first part is what the added code in KeyPress does, the second part is what the code in KeyRelease does. press '3' (with autorepetition), press shift, release '3', release 'shift': key: 51, shift: 0, pressed: 1 key: 51, shift: 0,

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Robert Osfield
Hi Melchoir, Thanks for the extra explanations, this is really useful. I'm in two minds if I'd would classify this issue as a bug, and I'm in two minds about your suggested remedy. The code is it stands right now doesn't enforce a matching of presses and releases, it just the way it works.

[osg-users] Textures disappear when re-loading a previously closed scene?

2009-06-04 Thread Herreman, Christophe
Hello, When I close a scene and re-open it again without closing the application, all the textures have disappeared and only white rectangles are visible. An warning is logged by OSG: Warning: detected opengl error 'invalid value' after RenderBin::draw(,) All resources are freed when a

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Melchior FRANZ
* Robert Osfield -- Thursday 04 June 2009: I'm in two minds if I'd would classify this issue as a bug, and I'm in two minds about your suggested remedy. The code is it stands right now doesn't enforce a matching of presses and releases, it just the way it works. It's a bug if your assume

Re: [osg-users] [3rdparty] osgART install

2009-06-04 Thread Karl Butler
Yes I have installed ARToolKit and OSG already. What I need to know is how to use the file: osgART_2.0_RC3 It has no file extention and I am not sure how to use it with CMake as you suggested. Can you please elaborate on how to use CMake with it? I have tried doing it the same way as I

Re: [osg-users] Textures disappear when re-loading a previously closed scene?

2009-06-04 Thread Robert Osfield
Hi Christophe, You can't use setUnRefImageDataAfterApply(true) and expect textures to remain valid between open and closing and then reopening graphics contexts as the texture will have no imagery to reapply when required. Robert. On Thu, Jun 4, 2009 at 10:18 AM, Herreman, Christophe

Re: [osg-users] [3rdparty] osgART install

2009-06-04 Thread Karl Butler
Thanks internetscooter I'll check it out :) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13482#13482 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Robert Osfield
Hi Melchior, On Thu, Jun 4, 2009 at 10:43 AM, Melchior FRANZ melchior.fr...@gmail.com wrote: Making the physcial key number available in the event structure would allow us to fix our problem in FlightGear, though I think the bug is in OSG and should be fixed there. I don't think calling it

Re: [osg-users] Set fog in the canera StateSet

2009-06-04 Thread Cristina Paponi
Hi, Shayne My code is more or less like yours, but I'm not using the Composite viewer. I'm not sure why it doesn't work. Hi Wojtek Lewandowski Your solution worked for me too. Thank you both for your time! Cheers, Cristina -- Read this topic online here:

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Paul Speed
From my perspective, if I were writing a game control scheme, I'd want all downs and all ups with raw key codes. 'a' down, left-shift down, 'a' up, left-shift up. Just because application X is using the keys to type human words doesn't mean that application Y has any relationship between

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Mathias Fröhlich
Hi Melchior, On Thursday 04 June 2009, Melchior FRANZ wrote: [...] May be we need to track these up/down event pairs in *flightgear*. ... if an application needs these synthetic events, exactly this application should synthesize these events? You cannot expect that this special usage pattern

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Ralph Kern
hi, perhaps some input from the MS Windows event API: They differentiate between key press and release events (WM_KEYDOWN/WM_KEYUP) using virtual key codes and typed character events (WM_CHAR) which is the UTF-16 code of a typo generated because of some key press. The virtual key codes include

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Robert Osfield
HI Mathias, 2009/6/4 Mathias Fröhlich m.froehl...@science-computing.de: Hi Melchior, On Thursday 04 June 2009, Melchior FRANZ wrote: [...] May be we need to track these up/down event pairs in *flightgear*. ... if an application needs these synthetic events, exactly this application

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Melchior FRANZ
Hey, * Mathias Fröhlich -- Thursday 04 June 2009: May be we need to track these up/down event pairs in *flightgear*. We can't ATM, because we don't have the keycodes! That's why I started the thread in the first place! And my assumption was that it's better fixed once in OSG, than in every

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Robert Osfield
HI Ralf, Thanks for the info. Just to be clear on language and actions could you clarify the following. By virtual key codes do you mean the raw keycodes? I.e. whether you press 'a' or have shift pressed to get 'A' you still get 'a'?Or are the WM_CHAR the raw keycodes? W.r.t key

Re: [osg-users] transparent object sorting and back face culling

2009-06-04 Thread Jason Daly
su hu wrote: Hi All transparent nodes should be found out and set to TRANSPARENT_BIN one bye one. Nodes should be small enough. But there are lots of transparent nodes in scene. How to find out those transparent nodes quickly? Thanks for your help. I can't think of a reason why you'd need

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Ralph Kern
Hi Robert, here are the pointers to the MS docu: virtual key codes: http://msdn.microsoft.com/en-us/library/ms927178.aspx MS explanation for their term virtual key code: http://msdn.microsoft.com/en-us/library/ms927175.aspx Reference for WM_KEYDOWN (has also links to WM_KEYUP and WM_CHAR in

Re: [osg-users] [RFC] osgViewer: solution for omitted key release events

2009-06-04 Thread Robert Osfield
Hi Colin, On Thu, Jun 4, 2009 at 4:25 PM, Colin Steinberg colin.steinb...@googlemail.com wrote: Have you considered some kind of layered approach?  Maybe an immediate interface to the physical keycodes, sending events for every _key_ press and release.  Another layer could then use the

[osg-users] Is clearing the nodemasks on loaded data a bad practice?

2009-06-04 Thread brettwiesner
Hi, We use nodemasks in our scenegraph to do things like figure out what can be picked, what can be shadowed, etc. When we load data most of the time the nodes come in with masks of 0x. Occasionally we get an .ive or .osg file that has some other value set in the nodemask. We are

Re: [osg-users] Is clearing the nodemasks on loaded data a bad practice?

2009-06-04 Thread Tomlinson, Gordon
Generically speaking changing the nodes masks is fine its up to you and how your program is using them with-in the confines of how culling, rendering uses them etc. So no I would says it is not bad practice and is perfectly valid to do Gordon Product Manager 3d

Re: [osg-users] How to apply LISPSM shadows to a scene with differentshaders - Part 3

2009-06-04 Thread Michael Guerrero
Wojciech Lewandowski lewandow...@... writes: Miguel, I am not sure whats the problem. Shadows on the ground look ok. So the matrices must be ok as well. All I can notice is improper self shadowing on soldier models. If this is the case then look at following thread:

Re: [osg-users] Is clearing the nodemasks on loaded data a bad practice?

2009-06-04 Thread brettwiesner
Thanks! Tomlinson, Gordon wrote: Generically speaking changing the nodes masks is fine its up to you and how your program is using them with-in the confines of how culling, rendering uses them etc. So no I would says it is not bad practice and is perfectly valid to do Gordon Product Manager

[osg-users] Database pager questions

2009-06-04 Thread brettwiesner
Hi, Just validating some assumptions about the database pager... 1) Is paging in single threaded mode blocking? If OSG is in single threaded mode, will the pager load data and stop rendering or will it load in another thread anyway? 2) If OSG is running in multithreaded mode will the pager

[osg-users] build errors with 2.8.1

2009-06-04 Thread John Kelso
Hi again, As a stab in the dark to try and fix my memory leak I decided to try using the latest OSG release. After downloading 2.8.1 and typing cmake, I got this error: The end of a CMakeLists file was reached with an IF statement that was not closed properly. Within the directory:

Re: [osg-users] master/slave camera question

2009-06-04 Thread Wyatt Earp
Ok. Thanks. Not sure I understand the concept of cameras and master/slave stuff as well as I should... I searched the forum and mailing list archives, but didn't come up with anything yet, but then again, searching on something like camera master slave produces tons of hits. Any documentation

Re: [osg-users] Database pager questions

2009-06-04 Thread Ralf Stokholm
Hi Brett 12) As far as I know the database pager is multithreaded regardless if osg is running multi or single threaded. Osg threading is related to threading of the cull and draw traversals. 3) How does the pager decide when to page something in? My understanding is that this is based on the

Re: [osg-users] build errors with 2.8.1

2009-06-04 Thread Ulrich Hertlein
Hi John, On 4/6/09 7:24 PM, John Kelso wrote: After downloading 2.8.1 and typing cmake, I got this error: The end of a CMakeLists file was reached with an IF statement that was not closed properly. Within the directory:

Re: [osg-users] Possible primitiveIndex inconsistency in osgUtil::LineSegmentIntersector

2009-06-04 Thread Andrew Cunningham
In my field of finite elements, mixtures of QUADS and TRIS are the rule , not the exception. Anyway, the workaround is for me to always use a PolyTope intersector, even if it is only 1 pixel square... -- Read this topic online here:

Re: [osg-users] build errors with 2.8.1

2009-06-04 Thread Paul Melis
Ulrich Hertlein wrote: Hi John, On 4/6/09 7:24 PM, John Kelso wrote: After downloading 2.8.1 and typing cmake, I got this error: The end of a CMakeLists file was reached with an IF statement that was not closed properly. Within the directory:

Re: [osg-users] Database pager questions

2009-06-04 Thread brettwiesner
Thanks! Ralf Stokholm wrote: Hi Brett 12) As far as I know the database pager is multithreaded regardless if osg is running multi or single threaded. Osg threading is related to threading of the cull and draw traversals. 3) How does the pager decide when to page something in? My

Re: [osg-users] get the x-axis angle of a rotation

2009-06-04 Thread Christian Sam
Hi james, regarding your last post, did you mean that you also tried to extract angles from a rotation with the website's matrixToEuler or a similar approach, but you encountered problems that were depended on your current camera-orientation? i think the same happened to me: i wanted to get

Re: [osg-users] Database pager questions

2009-06-04 Thread Paul Martz
Hi Brett -- The SingleThreaded threading model is one of osgViewer's threading models and is completely internal to osgViewer. It does not affect the osgDB library. The DatabasePager's threading is orthogonal to osgViewer's threading models used for rendering. Paul Martz Skew Matrix Software LLC

Re: [osg-users] VRML testing call

2009-06-04 Thread Seppo
Hi, Might be simple one but I am not getting into it.. I get the following errors (and many more but I guess these few lines describe the problem enough) when building Plugins vrml: 1Compiling... 1ReaderWriterVRML2.cpp 1C:\ohj\openvrml-0.17.12\src\libopenvrml\openvrml/basetypes.h(38) : error

Re: [osg-users] How to apply LISPSM shadows to a scene with differentshaders - Part 3

2009-06-04 Thread Wojciech Lewandowski
Try this: http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg26683.html Wojtek -- From: Michael Guerrero mjgue...@nps.edu Sent: Thursday, June 04, 2009 6:22 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users]How to

Re: [osg-users] build errors with 2.8.1

2009-06-04 Thread Paul Melis
Paul Melis wrote: Paul Melis wrote: John Kelso wrote: Hi, cmake 2.4-patch 8, that came with CentOS release 5.3. Our systems have been upgraded since my last OSG build, so I'll see if there's any relationship. If I get stuck I'll mail again. Should I see if our system guy

Re: [osg-users] build errors with 2.8.1

2009-06-04 Thread Paul Melis
John Kelso wrote: Hi, cmake 2.4-patch 8, that came with CentOS release 5.3. Our systems have been upgraded since my last OSG build, so I'll see if there's any relationship. If I get stuck I'll mail again. Should I see if our system guy can install a newer cmake? One thing cmake 2.6 has

Re: [osg-users] get the x-axis angle of a rotation

2009-06-04 Thread James Killian
regarding your last post, did you mean that you also tried to extract angles from a rotation with the website's matrixToEuler or a similar approach, but you encountered problems that were depended on your current camera-orientation? It was quat to Euler

Re: [osg-users] Image pointer in the Intersected node is NULL

2009-06-04 Thread Cristina Paponi
Hi Robert, I just converted my flt file to an osg, and I started to have the same problem as before. My image pointer is NULL. If I load the flt file the image pointer is OK, if I load the osg file the image pointer is NULL. Any idea why? I used osgconv to convert the file. Thank you! Cheers,

Re: [osg-users] Image pointer in the Intersected node is NULL

2009-06-04 Thread Cristina Paponi
Hi, I guess I figure it out. The osgconv runs the optimizer, so I set the OSG_OPTIMIZER environment variable to OFF and now it works. Thank you! Cheers, Cristina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13530#13530

Re: [osg-users] get the x-axis angle of a rotation

2009-06-04 Thread Christian Sam
Hi james, thanks for the quick reply, now everything is clear. Best regards, Christian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13531#13531 ___ osg-users mailing list

Re: [osg-users] Destruction order for static objects

2009-06-04 Thread Fredrik Orderud
I've just discovered a potential solution for the initialization order for static objects. You can use the depends_on-pattern to let your classes inherit their dependencies. http://www.entropygames.net/index.php?option=com_contentview=articleid=52 I don't know the OSG code enough in detail to

Re: [osg-users] Can I change the plugin directory structure?

2009-06-04 Thread Jean-Sébastien Guay
Hi Rick, I even gave you a batch file that would do some of that automatically, and it's easy to supplement that with a couple more commands that will do it all automatically (see below). You did? Maybe I missed it. Could you please send it again? This does not look nearly as hard as I

Re: [osg-users] Can I change the plugin directory structure?

2009-06-04 Thread Jean-Sébastien Guay
Hi James, In short... I do not want to challenge the current workflow of either paradigms, but rather describe how both are well-defined, and maybe there are others out there who would like to see how we are doing it, when/if we offer a submission. Thanks for explaining where you're coming

Re: [osg-users] Can I change the plugin directory structure?

2009-06-04 Thread James Killian
There is one direction that I am tempted to pursue... my initial post was that we cannot run OSG using the plugin folder structure as is. When I saw your initial post I manually copied over to the directory structure you said where the plugin folder is in the same path as the bin. The problem

Re: [osg-users] Rendering image to memory

2009-06-04 Thread Michael Guerrero
Vinay Shah vinay.s...@... writes: Hi, I would like to render an image to a scene that is later used for image processing. I am hoping to have the image in memory as an 24 bit RBG image. Is this possible without drawing it to the screen and taking a screen shot? Can I render

[osg-users] Examples and multiple monitors on Mac OS X

2009-06-04 Thread Brent Gulanowski
Hi, The examples are fullscreen. Strangely, they span multiple monitors, instead of simply using the primary monitor. Perhaps there are some launch arguments I need. Running from Xcode causes problems, like missing resources, for example with the osgforest.app: Code: Creating

Re: [osg-users] [3rdparty] osgART install

2009-06-04 Thread Karl Butler
I am working in windows is this a problem? Could someone please post the osgART 2.0 zip I don't think I have the right file. It doesn't have a CMakeLists.txt or anything - just a file without any exstension named: osgART_2.0_RC3 That is all :( -- Read this topic online here:

Re: [osg-users] [3rdparty] osgART install

2009-06-04 Thread Karl Butler
Never mind I just realised the file within the zip that has no extension can be unpacked again. Would help if this file had an extension to avoid confussion and wasted time! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13546#13546

[osg-users] Simulating glass shattering effect

2009-06-04 Thread Cheng Guan
Hi, I'm looking into simulating glass shattering effect e.g. http://blog.wolfire.com/2009/05/detailed-physics-effects/, any advices? Thank you! Cheers, Tim -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13548#13548

[osg-users] [VirtualPlanetBuilder]How to apply side texture to the escarpment?

2009-06-04 Thread wind
Hi, I have two groups of terrain data with geotiff format. One has common vertical orthographic projected elevation data and image, while the other is a part of the first group, and with a higher resolution, furthermore, its elevation data and image are gradient orthographic projected data