[osg-users] Qt (4.x) and QGraphicsScene

2013-11-04 Thread Sebastian Messerschmidt
Hi folks, I know this has been issued before, but I need some example to do the following: 1. Let the viewer render to an offscreen-target. 2. Use the Qt Graphicsscene to display the rendered scene as background image. 3. Let Qt render the other items in the graphicsview. Can someone give

Re: [osg-users] Drawing lines using OpenGL ES 2.0

2013-11-04 Thread John Moore
I found a solution which involves computing the barycentric coordinates. However it seems that is not working properly. To compute the barycentric coordinates I need to associate to the vertices of the triangles a coordinate among (1,0,0) (0,1,0) (0,0,1) for doing that I use the following

Re: [osg-users] Track map on a 3D view

2013-11-04 Thread Gianni Ambrosio
Hi All, to disable mouse intaraction I used: view-getCamera()-setAllowEventFocus(false); Does it make sense? Is there a better way? In case this another option I have to set manually in my track map object copy constructor since a clone method is not available for a view. Moreover, I set a

Re: [osg-users] Track map on a 3D view

2013-11-04 Thread Trajce Nikolov NICK
Hi Gianni, since you dont need manipulator for the map view you can only set the viewmatrix. Something like view-getCamera()-setViewMatrixAsLookAt() and you make a top down view Nick On Mon, Nov 4, 2013 at 3:24 PM, Gianni Ambrosio ga...@vi-grade.com wrote: Hi All, to disable mouse

[osg-users] How to detect scene changes?

2013-11-04 Thread Ale Maro
Hi, I am trying to find a way to detect any changes of the scene graph automatically? I would like to implement an undo/redo mechanism and also I would like to know when my scene changes and needs to be saved. For example I would like a callback is called when a manipulator changes a

Re: [osg-users] How to detect scene changes?

2013-11-04 Thread Peter Amstutz
Hi Ale, There is no such capability built-in. You need to build your own layer on top to manage changes to the scene graph. You should write your own manipulator (or modify an existing one) to route changes through your change management layer, rather than having it change the underlying

Re: [osg-users] How to detect scene changes?

2013-11-04 Thread Ale Maro
Hi Peter, thanks for the reply. At the moment the only part I have not separated from osg layer are transformations so I will need to modify manipulators. Cheers, Ale -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57065#57065

Re: [osg-users] CompositeViewer regression between OSG 3.1.4 and 3.2

2013-11-04 Thread Glenn Waldron
Here is a minimal program that demonstrates the issue. OSG 3.2: the mouse scroll wheel works in the inset view; all other mouse events pass through to the underlying view. OSG 3.1.4: works as expected. #include osgViewer/CompositeViewer #include osgDB/ReadFile int main(int argc, char** argv)

Re: [osg-users] Grayscale texture

2013-11-04 Thread Boon Wah
Hi, I notice that glCompressedTexImage2D takes the longest time during texture loading. Can I understand what does this function actually does? I thought the texture decompression is handled by GPU, and loading to GPU actually should be significantly fast. In my testing, uncompress

[osg-users] again_question about black-out(BO) of airport runway(light control)

2013-11-04 Thread Kim JongBum
Hi, guys i m trying to develop flight simulation with osg. as i attached the picture, i used 3DViewer program to load the .ive airport map. and you can see the black-out(BO) of airport runway and the properties of light point. so my question is is it possible and how to control the