Re: [osg-users] Update scene while moving window

2008-02-14 Thread Frank Bergmann
Actually, depending on the version of windows that you are running it might
also be a windows setting that prevents the window to be redrawn while
moving. Have a look at (under XP): 

 

Control Panel\System Properties\Advanced\Visual Effects …Settings\Visual
Effects

 

In that checked listbox, look for an entry saying “Show window contents
while dragging”. With that enabled I see the scene updated while dragging
the window … 

 

Cheers

Frank

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jw
Sent: Thursday, February 14, 2008 9:42 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Update scene while moving window

 

Hi,

you are right, i'm running on Windows platform. 
Right now i'm converting my application from osgProducer::Viewer to
osg::CompositeViewer.
Using osgProducer::Viewer it was possible to move the window without any
problems. 
The scene was updated in contrast to osg::CompositeViewer (OSG 2.2).

But what is the difference between these two viewers?

Thanks in anticipation
J-W


Jean-Sébastien Guay wrote: 

Hello André,
 
  

There might be a way to avoid this by using a separate thread for message
dispatching in the GraphicsWindowWin32 class, but that remains to be
explored.


 
And in fact, I imagine that's what video players like Windows Media 
Player do, since you can move the window while video is playing and it 
will not pause.
 
Not suggesting anything be done about it, just adding a point to consider...
 
J-S
  

 


-- 
This message has been scanned for viruses and 
dangerous content by   MailScanner, and is 
believed to be clean. 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG KML I/O

2008-01-21 Thread Frank Bergmann
> 
> What do you mean by KML content i/o for OSG?
> 
> Kernel Mailing List is the only acronym I can think of for KML...
> 

Most likely the google earth format is meant by this: 

http://code.google.com/apis/kml/documentation/

might be interesting to see ... 

cheers
Frank

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Tutorials

2007-08-22 Thread Frank Bergmann
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Paul Martz
> 
> Eric Wing has put a few very informative videos on the OSG wiki
> regarding
> installing/using OSG on a Mac:
> http://www.openscenegraph.org/index.php?page=Tutorials.MacOSXTips
> 

Alas, all the videos on that page seem to point to broken links. Any chance
of making them work again?

Thanks
Frank


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ...framing only visible objects

2007-07-31 Thread Frank Bergmann

Hello Allessandro,

you could try the following,

- load all object into a boundingbox of the same size, centered at  
the origin

- during load you assign a different node mask to each element,
- use the default camera

- now whenever you want to look at a different object, you just set  
the nodemask ... which will result in only that object being visible


best
frank


On Jul 31, 2007, at 9:59 AM, alessandro terenzi wrote:


Thanks.

...my problem is that if the scene consists of many objects, and  
some of them are hidden, the default camera is set to look to  
everything anyway, I mean that the camera looks at the whole scene  
comprising hidden objects too.


...instead, I'd like to re-adjust the camera not only from the  
position point of view (actually, it is ok to look at the origin),  
but also with respect to other parameters in order to adjust the  
view only on visible objects ...in particular, my application is a  
kind of presentation of 3d objects, so just one object per time is  
visible and is positioned in the origin, so actually I don't need  
to look elsewhere, but I just need to adjust the camera's 'zoom' in  
order to frame just the currently visible object... can you suggest  
a way to achive this adjustment?... which parameters should I modify?


...by the way, each object has its own size that can differs a lot  
with other objects, that is the problem with the default camera  
settings, because it zoomes out to view everything...


Thanks. Best regards.
Alessandro

On 7/31/07, Peter Gebauer <[EMAIL PROTECTED]> wrote:
Hello!

The "spacebar event" is simply setting the camera to the camera
manipulator's home position. It does not modify your scenegraph,  
although it
might appear that way. The home position is either calculated  
(default) or
set using an eye and center coordinate along with the definition of  
up.


See osgGA::MatrixManipulator and osgViewer::Viewer for more info.

/Peter

On 2007-07-31 (Tue) 17:08, alessandro terenzi wrote:
> Hello,
> using osgViewer, I see that pressing the spacebar the view is  
restored in
> order tor frame all the objects in the scene... I also noticed  
that it
> adjusts the camera in order to consider also objects that are not  
visible...
> how can I change this behaviour in order to frame just visible  
objects?
> Where can I have a look in osg code to understand how the  
'spacebar' event

> is handled?
>
> Thank you. Best regards.
> Alessandro

> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users- 
openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users- 
openscenegraph.org



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users- 
openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org