[osg-users] Integration with WPF

2013-03-13 Thread Knacktus
Hi there, what is the recommended method for integrating OSG in a WPF application? The OSG viewer will be accessed from a high level API only. A context menu on top of the viewer needs to be available. Resizing of the viewer and overlay of other WPF controls (e.g. dialogs) need to work robustly. S

Re: [osg-users] OSG Render Thread in Qt: Access to scene data from main app thread

2013-03-13 Thread Aitor Ardanza
Hi all, I still have problems with this. I modify the code of cookbook like this: Code: class RenderThread : public QThread { public: RenderThread() : QThread(), viewerPtr(0), _done(false) { } virtual ~RenderThread() { if (viewerPtr)

[osg-users] OSG could not find plugin to read objects from .osg file

2013-03-13 Thread Adri CS
Hi, I've compiled OSG 3.0.1 in Windows 7 64 bits in both release and debug mode with the MingW compiler. When running a little app I have written to test the installation, I got no display at all and a warning message in debug mode: *Warning: Could not find plugin to read objects from file "cow.

[osg-users] Problem with fullscreen hiding dialog window

2013-03-13 Thread David Sellin
Hi, I run my osg program in fullscreen mode by setting traits width height to the same as desktop, x and y position to 0 and disabling window decoration. This prevents my windows file input dialog to show (it opens behind the osg window and I need to alt+tab to it). It shows at top level when r

Re: [osg-users] Problem with fullscreen hiding dialog window

2013-03-13 Thread Trajce Nikolov NICK
There should be a flag for your Dialog to set it "always on top" or something like this Nick On Wed, Mar 13, 2013 at 11:19 AM, David Sellin wrote: > Hi, > > I run my osg program in fullscreen mode by setting traits width height to > the same as desktop, x and y position to 0 and disabling window

Re: [osg-users] Struggling trying to convert geometry coordinates in PagedLOD

2013-03-13 Thread Robert Osfield
Hi Oliver, On 13 March 2013 07:54, Olivier Tournaire wrote: > No one on this? I suspect you lost a lot of readers with the volume of your post, please remember that all members of the community are busy working and only have a little time to read and keep up with posts and write replies. Try di

Re: [osg-users] Struggling trying to convert geometry coordinates in PagedLOD

2013-03-13 Thread Olivier Tournaire
Hi Robert, So, I will try to summarize my post, without any code :) With my first post, I tried to be as complete as possible to clearly describe the issue, with all the related code. Sorry for this. Thus, I am trying to convert geometry coordinates of Drawables contained in Geodes. My Geodes are

Re: [osg-users] Problem with fullscreen hiding dialog window

2013-03-13 Thread David Sellin
It doesn't seem to be a flag for that, not that I can see. But I don't have any experince of the windows api. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53080#53080 ___ osg-users mailing list osg

Re: [osg-users] Problem with fullscreen hiding dialog window

2013-03-13 Thread Trajce Nikolov NICK
What do you use for your Dialog code? Can you pass the code snippet of the dialog creation? On Wed, Mar 13, 2013 at 3:17 PM, David Sellin wrote: > It doesn't seem to be a flag for that, not that I can see. But I don't > have any experince of the windows api. > > -- > Read this top

[osg-users] Light lobes

2013-03-13 Thread Trajce Nikolov NICK
Hi Community, I have done this before but it seams I forgot all of it now :-). Here is the story: I have GLSL code for pixel based lighting and my LightSource is attached to a matrixtrasnform which has updatecallback to update the position and orientation based on the camera view matrix (the ps

Re: [osg-users] Struggling trying to convert geometry coordinates in PagedLOD

2013-03-13 Thread Robert Osfield
Hi Olivier, I principle what you are doing sounds reasonable. The only odd bit in the description is that your data is already in OSG form before you transform it into local coords, to me this seems like a missed opportunity - as osg::Geometry stores coords with Vec3Array by default so will be us

Re: [osg-users] Problem with fullscreen hiding dialog window

2013-03-13 Thread David Sellin
Here's the code which is basically the same as in the link in my initial post, slightly modified. Code: // Indices of file types #define INDEX_COLLADA 1 #define INDEX_OPENSCENEGRAPH 2 #define INDEX_KEYHOLEMARKUPLANGUAGE 3 #define INDEX_ALLFILES 4 #define FILE_TYPE_MODELS 1 #define FILE_TYPE_I

Re: [osg-users] Problem with fullscreen hiding dialog window

2013-03-13 Thread Trajce Nikolov NICK
Something like this somewhere on your code http://www.codeguru.com/cpp/w-d/dislog/article.php/c1857/Making-a-Window-Always-On-Top.htm Look for HWND_TOPMOST in MSDN On Wed, Mar 13, 2013 at 3:45 PM, David Sellin wrote: > Here's the code which is basically the same as in the link in my initial > p

Re: [osg-users] Light lobes

2013-03-13 Thread Trajce Nikolov NICK
nevermind. I looked up in the archove (years ago :-) ...) and I find it. Ping me if you came across similar problem. I will provide hints Nick p.s. How useful is this list !!! On Wed, Mar 13, 2013 at 3:44 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > Hi Community, > > I have

Re: [osg-users] Light lobes

2013-03-13 Thread Trajce Nikolov NICK
just for the record. with some code samples including light lobes combination with shadow map (thanks to wojtek) https://groups.google.com/forum/?fromgroups=#!topic/osg-users/M_sGi1Ayj68 Nick On Wed, Mar 13, 2013 at 4:49 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > nevermin

[osg-users] [forum] Rendering backface like front face

2013-03-13 Thread Florian Kolbe
Hi, sorry if this may be too obvious. I was wondering if there is some kind of backface mode where backfaces are rendered like the front face? We have a model here that "looks" normal in Rhino and SimLab Composer because they seem to be able to render that way ("backface like front face") - s

[osg-users] [osgViewer] ON_DEMAND frame updates

2013-03-13 Thread Judson Weissert
Hello, I have been working on switching over to ON_DEMAND frame updates while using osgViewer::Viewer and I encountered the following problems (all of these issues are specific to ON_DEMAND frame updates): 1. Some of the event handlers such as osgViewer::HelpHandler, and osgViewer::ScreenCap

Re: [osg-users] [forum] Rendering backface like front face

2013-03-13 Thread Paul Martz
Did you try turning on 2-sided lighting? On Wed, Mar 13, 2013 at 11:47 AM, Florian Kolbe wrote: > Hi, > >sorry if this may be too obvious. I was wondering if there is some kind > of backface mode where backfaces are rendered like the front face? > We have a model here that "looks" normal in

Re: [osg-users] Struggling trying to convert geometry coordinates in PagedLOD

2013-03-13 Thread Olivier Tournaire
Hi Robert, Thank you for your reply. Regarding the precision issue, I take care to do all computation in double (which works because original coordinates are in local reference frame), and, once transformed, I can safely use float without loss of precision. As VPB and osgEarth, the MatrixTransfo

Re: [osg-users] [osgViewer] ON_DEMAND frame updates

2013-03-13 Thread Judson Weissert
After some additional research, I have learned that the behavior is different when the threading model is set to SingleThreaded. After setting the threading model to SingleThreaded, issues #1 and 2# are effectively gone (I still have to call requestRedraw() for #1). I can only speculate that th

[osg-users] Android Bug

2013-03-13 Thread Jorge Izquierdo Ciges
I think we have missed a bug along the way. Yesterday a was checking the original examples and have gone totally awry crashing when Android is loading the library itself. This happens with all versions from r8a to r8d with the current thrunk. 3.0.1 instead it's still usable. Also, the latests devel