Hi All,
I'm sorry but there are several details related to this task.
One more problem. Just to summarize the code status. I implemented a track view
object as a view of a composite viewer. I set an osg::PositionAttitudeTransform
node as scene data of the view. I then read an obj of thetrack
Trajce Nikolov NICK wrote:
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
Thanks Nick,
but I think I have to copy/paste part of the
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 Nick,
I'm not sure the point is the type of node used. I try to explain in detail.
Basically I would like to use the same sub-scene that represents my moving
object both on the main 3D view and on the track map.
A moving object is insert in the scene of the main view. It can be scaled and
Hi Gianni,
so as I understand you you have one scene but you want to have a different
representationsof the objects from the main scene into the map scene. I
would do it with updateCallback. Let say you have a car that
MatrixTransfrom is moving in the main scene. And you want icon in the map
Trajce Nikolov NICK wrote:
Hi Gianni,
so as I understand you you have one scene but you want to have a different
representationsof the objects from the main scene into the map scene.
Yes Nick, that's correct. Thanks for the suggested implementation.
Gianni
--
Read this
Here I am again ...
Every moving object is something like this:
osg::PositionAttitudeTransform (for trasnformations wrt global)
osg::PositionAttitudeTransform (for scaling underlying graphics, not
transformations)
osg::Group (that contains real graphics)
As suggested, the track map is
Hi Gianni,
I never used PositionAttitudeTransform. Try MatrixTransform instead. You
can combine different transformation in the final Matrix. Something like:
osg::MatrixTransform* mxt = new osg::MatrixTransform;
mxt-setMatrix(osg::Matrix::scale(x,y,z)*osg::Matrix::translate(x,y,z))
Nick
On
Hi,
since my track objcts are now osgViewer::View, what should I do to clone a
View? I didn't found a clone method so I used the copy constructor but in this
way the camera manipulator is not copied. A camera manipulator itself doesn't
have a clone method and since a view can have a camera
Hi Gianni,
what do you mean by cloning a View? Clone the View structure or clone what
is in it displayed? If later you just share the scene across multiple
views, put the same node in setSceneData()
Nick
On Fri, Oct 25, 2013 at 10:08 AM, Gianni Ambrosio ga...@vi-grade.comwrote:
Hi,
since my
Moreover,
which is the real effect of using osg::CopyOp::DEEP_COPY_ALL operation in
osgViewer::View copy constructor?
Regards,
Gianni
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56971#56971
___
Trajce Nikolov NICK wrote:
Hi Gianni,
what do you mean by cloning a View? Clone the View structure or clone what is
in it displayed? If later you just share the scene across multiple views, put
the same node in setSceneData()
Hi Nick, I mean the view structure, since the manipulator of
Hi All,
just a couple of questions.
I would like drag the view just like I can do with osgWidgets.
At the moment I used an OrbitManipulator for each view but I really don't need
a manipulator for that view. But vithout a manipulator I can't see anything.
Thanks for your help,
Gianni
Hi Gianni,
On 25 October 2013 14:34, Gianni Ambrosio ga...@vi-grade.com wrote:
Hi All,
just a couple of questions.
I would like drag the view just like I can do with osgWidgets.
At the moment I used an OrbitManipulator for each view but I really don't
need a manipulator for that view.
Thanks Robert. How could I overlap the two views? Looking at osgcompositeviewer
example it seems they can overlay but one rectangle hides others while I need
the 2D teack background to be transparent.
Regards
Gianni
--
Read this topic online here:
Hi Gianni,
On 18 October 2013 08:44, Gianni Ambrosio ga...@vi-grade.com wrote:
Thanks Robert. How could I overlap the two views? Looking at
osgcompositeviewer example it seems they can overlay but one rectangle
hides others while I need the 2D teack background to be transparent.
Simply set
Hi Robert,
there's just one thing I don't like of this approach: the viewer is the driver.
In my application I have one scene and I attach the root node to the viewer at
startup. Then every model (xml) I load builds its own osg sub-graph and is
attached to the scene. So that code doesn't need
Hi Gianni,
On 18 October 2013 10:34, Gianni Ambrosio ga...@vi-grade.com wrote:
Hi Robert,
there's just one thing I don't like of this approach: the viewer is the
driver. In my application I have one scene and I attach the root node to
the viewer at startup. Then every model (xml) I load
Thank you again Robert!
If I undarstand correctly, then I have to create a composite viewer with a
proper view for a 2D track even if the user may not need it (i.e. 2D track
object not loaded). That would not be a real problem.
But on the other hand a user can load more then one 2D track object
HI Gianni,
On 18 October 2013 11:50, Gianni Ambrosio ga...@vi-grade.com wrote:
If I undarstand correctly, then I have to create a composite viewer with a
proper view for a 2D track even if the user may not need it (i.e. 2D track
object not loaded). That would not be a real problem.
But on
robertosfield wrote:
Another alternative would be to not use CompositeViewer but instead place the
osg::Camera for each 2D track into the main scene graph. The osghud example
shows how to do this with an in scene graph osg::Camera as well as the more
conventional and recommend routes of
Hi Gianni,
A CompositeViewer with two View's, potentially sharing the same window so
that one view overlays the other like a HUD is the way I would tackle the
tasks. The View's could share the same scene graph, or have their own
scene graph. If you wanted to share the scene graph but view
Trajce Nikolov NICK wrote:
Hi Gianni,
have a look at osgcompositeviewer example. You can add another view in the
corner (no need of osgWidget::Window). There is a class
osgViewer::CompositeViewer and osgViewer::View. The example demonstrated how
to have multiple views each with separate
Hi Gianni,
I'm not sure I've understood you fully, but maybe a HUD is enough to suit
your needs. Take a look to osgHUD example.
Cheers.
2013/10/16 Gianni Ambrosio ga...@vi-grade.com
Trajce Nikolov NICK wrote:
Hi Gianni,
have a look at osgcompositeviewer example. You can add another
I have solved this in the past with composite viewer. It's up to you what
you put in your views, like, the 2D view can have ortho and rendering
totaly different stuff then the 3D rendering complex graphics. Maybe try
what Jordi suggested with hud display
Nick
On Wed, Oct 16, 2013 at 2:48 PM,
Thanks Jordi and Nick for the replay.
I thought of a HUD but I didn't investigate if a hud can be dragged or resized.
If so then that's will be fine.
I'm attaching an image to show what I need. Just consider that the 2D track and
3D scene can be overlapped.
Hope this is clearer.
Regards
You can use HUD for this. It will work better with resizing then the
comosite viewer with views. In any case you will have a separate
osg::Camera that for the HUD case will render to texture and apply to
osg::Geometry. This is very simple task. Have a look at the hud sample,
osgprerender for
Thanks Nick,
I already implemented a HUD for 3D axes but whithout resizing and dragging.
Anyway thanks again for the hint.
Gianni
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56807#56807
___
Hi All,
I have a scene with moving objects (basically cars) in a 3D view and a fixed
object (i.e. the track). Now I need to show a simplified track (just the
centerline of the track, coming from a separate graphic file, if needed) in one
corner of the 3D viewer with runnig cars as simple
Hi Gianni,
have a look at osgcompositeviewer example. You can add another view in the
corner (no need of osgWidget::Window). There is a class
osgViewer::CompositeViewer and osgViewer::View. The example demonstrated
how to have multiple views each with separate renderings.
Nick
On Tue, Oct 15,
31 matches
Mail list logo