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
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
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
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
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
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
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
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)
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
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
10 matches
Mail list logo