What is the best way to have multiple windows with different views of the same
scene graph? I took a look at the composite viewer example, but it has
different views of the same scene graph with a single window. So not quite what
I want.
Thanks.
Alex
Hi Alex,
The composite viewer can have multiple views of different scene graph on
different windows. Setup the Traits of each separated window and set it to
each view's camera, and setup your scenes with the View::setSceneData()
method.
Wang Rui
2012/2/17 Pecoraro, Alexander N
Hi Russell,
Have you tried:
viewer-done(true);
?
Robert.
On Mon, Oct 12, 2009 at 8:20 AM, Russell Morris russell.co...@gmail.com wrote:
Hey all,
I've been searching the forums this afternoon and can't seem to find the
answer to my question. I have a viewer setup with the following:
Hi Morris,
Did you try to close only viewer;
rViewer-getEventQueue()-keyPress(osgGA::GUIEventAdapter::KEY_Escape);
rViewer-getEventQueue()-keyRelease(osgGA::GUIEventAdapter::KEY_Escape);
Regards.
Ümit Uzun
2009/10/12 Russell Morris russell.co...@gmail.com
Hey all,
I've been
Yeah I did try that and it didn't work either. However, for some strange reason
if I call the closing routine once when the window is created, and then again
when I want it closed it works fine. Weird, I'm still trying to wrap my brain
around what is going on. Thanks for the response! Have a
Hey all,
I've been searching the forums this afternoon and can't seem to find the answer
to my question. I have a viewer setup with the following:
rViewer = new osgViewer::Viewer();
wm = new osgWidget::WindowManager(rViewer, width, height,
MASK_2D, osgWidget::WindowManager::PD_NONE);
Could be this
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-May/011011.html
your problem?
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
Have you tried forcing single threaded?
maybe see this thread.
Complete garbage in OSG / XP / multi monitor / multi threaded / NVidia
Don't know your setup, so I'm guessing.
jp
Serge Lages wrote:
Hi all,
I am currently using a osgViewer::viewer with slaves cameras (just like
the
Hi Mario
On 10/26/07, Mario Valle [EMAIL PROTECTED] wrote:
I had to make some addition to have it compiling under VS 7.1 (and my wx and
osg
libraries). But beside this, I noticed a strange thing:
load spaceship.osg (or fountain.osg) and you notice the motor plumes does not
animate. If
Hi again,
I check again the crash: in fact it comes from osgDB::readNodeFile(...) when
it's called the second time (so after a first View is created, added to the
main composite viewer, rendered correctly a few seconds, and then removed
from the composite viewer and destroyed...) : Would you have
Hi Emmanuel
I've just compiled your mod, and got the sample running.
Has someone already noticed that, if you remove the start page [you then
create the _auiNotebook the first time it is requested] and for example add
a Menu with an Open... command to load osg models, then each time you do
Hi !
thanks for testing Thibault, if it's working on your side, it's already a
good thing...
I compiled everything in multithreaded DLL, this should be ok... So, as you
suggest, maybe it's a good time to try VS 2005... :-)
Manu.
2007/10/29, Thibault Genessay [EMAIL PROTECTED]:
Hi Emmanuel
If I recall correctly, you can have as many CompositeViewers as you like/need.
Alberto
El Friday 26 October 2007 00:19:25 Emmanuel Roche escribió:
Still on the issue of multi-windows, I guess it's totally unsafe to use
multiple CompositeViewer at the same time, isn't it ?
For exemple doing
Yes Alberto, you're right, and I noticed this also, that's why my
GraphicsWindowWX class inherits from both wxGLCanvas and
osgViewer::GraphicsWindow as you can see in the files I joined... [this
solution comes from the osgviewerWX example].
And in addition to this you will notice that I'm not
Indeed, we are in a situation where the CompositeViewers don't share the
GraphicsWindows and everything happen in the same thread... yet, it's
currently not working for me:
as soon as I had a second tab only the last compositeviewer gets updated and
drawn, the others are frozen... :-(...
I keep
On 10/26/07, Alberto Luaces [EMAIL PROTECTED] wrote:
If I recall correctly, you can have as many CompositeViewers as you like/need.
If the different viewers don't share any GaphicsWindows then it should
be fine to have multiple Viewer/CompositeViewers.
However, If all the viewers run in
Okay, with this version joined, we have two tabs (not added dynamically,
sure, but it's a beginning...) with animation rendered correctly...
The only issue left is the mouse handling problem:
I added a trackballmanipulator on the view1 on each tab, assigned an
handling function to the
Hi Emmanuel
I have made a sample that demonstrate the integration of the OSG in
wxWidgets. It is a simple frame with a wxAUINotebook containing OSG
views. You can download source and binaries at
http://ips-dil.unil.ch/osg
Could you have a look at these and see if this suits your needs ?
I am
Great !!
Indeed using the return value of makeCurrent() is exactly what I was looking
for :-D...
I'm testing your application right now !
cheers,
Emmanuel.
2007/10/26, Thibault Genessay [EMAIL PROTECTED]:
Hi Emmanuel
I have made a sample that demonstrate the integration of the OSG in
Whaooo !
Thanks ! thanks ! thanks !...
That's exactly what I was looking for... it's really great ! :-)
just a small point : you're binary distribution is not working : at least
osg24-osgUtil.dll is missing for me :-)
I have osg25-*** on my computer Could someone tell me what this means
On 10/26/07, Emmanuel Roche [EMAIL PROTECTED] wrote:
just a small point : you're binary distribution is not working : at least
osg24-osgUtil.dll is missing for me :-)
I have osg25-*** on my computer Could someone tell me what this means by
the way ? why this prefix on the dll files ?
Okay :-) this seems fair enough :-)
2007/10/26, Robert Osfield [EMAIL PROTECTED]:
On 10/26/07, Emmanuel Roche [EMAIL PROTECTED] wrote:
just a small point : you're binary distribution is not working : at
least
osg24-osgUtil.dll is missing for me :-)
I have osg25-*** on my computer
Nice example, thanks!
I had to make some addition to have it compiling under VS 7.1 (and my wx and osg
libraries). But beside this, I noticed a strange thing:
load spaceship.osg (or fountain.osg) and you notice the motor plumes does not
animate. If
you make the model rotate, they start animate
Hello everyone!
I've got a simple question, but I can't find any practical solution:
In my application, I have to display a notebook with a 3D window on each
tab... and I want to be able to add/remove tabs dynamically... so, what can
I use to achieve this result ?
I'm usig wxWidgets + OSG 2.2.0
Hi,
why don´t you just call SetCurrent when the corresponding tab is shown?
You could process the *EVT_NOTEBOOK_PAGE_CHANGED event and then make the
corresponding wxGLCanvas that lies in the notebook current.
Regards,
Andreas
*
___
osg-users mailing
Hi Guys,
I don't have any recommendations, or time right now to dive into this
topic. I'd certainly like to see osgViewer be able to cope with this
type of usage, and its not one that its been coded for up to this
point. Might I suggest getting a tabbed WxWidget example together
than could be
Hi again guys !
I've just tested your solution Alberto, and indeed it's working and I can
see both pages with two View on each page :-)...
Yet I think there is still something I'm missing about the CompositeViewer
behavior : indeed, I set a trackballmanipulator for the view1 [
For those who would have some time to give a look at this, I'm joining the
code of a simple application designed to open a View in multiple tabs:
the user select an osg or ive file to open an then a new tab is created
using this file as scene Data.
There is a single CompositeViewer managed by
Whoups my zip file was blocked...:-( thus I'm joining the files one by
one
regards,
Manu.
2007/10/25, Emmanuel Roche [EMAIL PROTECTED]:
whoups... forgot the file of course;..
2007/10/25, Emmanuel Roche [EMAIL PROTECTED]:
For those who would have some time to give a look at this,
29 matches
Mail list logo