Re: [osg-users] How to detect rotating image

2012-02-27 Thread Robert Osfield
Hi Clement, On 27 February 2012 06:26, clement@csiro.au wrote:   I would like to know how to detect the image is rotating.  For example, we can use the mouse to rotate the image on viewer.  If we drag on the viewer, the image will automatically rotate.  Any event I can get the image is

Re: [osg-users] Read dae files with osg.

2012-02-27 Thread Kim Bale
You'll need to make sure that you have a dll called osgdb_dae.dll in your plugins folder and that your OSG binary can find it. Generally speaking this problem is caused because you haven't set up the environment variables correctly so OSG can't find it's plugins on the path. Hope that helps,

Re: [osg-users] How to detect rotating image

2012-02-27 Thread Robert Osfield
Hi Clement, The osgViewer::ViewerBase (base class for Viewer) has a FrameScheme hint for the run() method which enables ON_DEMAND or CONTINUOUS, ON_DEMAND is the approach you'd want. You'll be calling frame() yourself rather than run() so won't be able to utilize this feature, but you should be

Re: [osg-users] How to detect rotating image

2012-02-27 Thread Clement.Chu
Hi Robert, Thanks for your suggestion. I checked the source code viewerbase.cpp. There is attribute called _runFrameScheme, but the value is assigned by getenv(OSG_RUN_FRAME_SCHEME). Except to set the environment variable, any method I can assign the value to _runFrameScheme? Thanks.

Re: [osg-users] How to detect rotating image

2012-02-27 Thread Robert Osfield
On 27 February 2012 11:26, clement@csiro.au wrote: Hi Robert,  Thanks for your suggestion.  I checked the source code viewerbase.cpp.   There is attribute called _runFrameScheme, but the value is assigned by getenv(OSG_RUN_FRAME_SCHEME).  Except to set the environment variable, any

Re: [osg-users] request new frame manually

2012-02-27 Thread Andrey Ibe
Thank you, Robert! it worked well. for the record, the correct call is made on osg::View Code: _view-requestRedraw() I am puzzled how i could have missed the method in the sources :? Cheers, Andrey -- Read this topic online here:

Re: [osg-users] How to detect rotating image

2012-02-27 Thread Robert Osfield
Hi Clement, If you want to find out what is going on use a debugger. A modicum of self reliance is key element of being a successful programmer. You can't expect others to keep hand walking your through every little feature one by one. Robert. On 27 February 2012 13:11, clement@csiro.au

Re: [osg-users] How to detect rotating image

2012-02-27 Thread Tomlinson, Gordon
You could do a setenv(..), in you code on startup Gordon Tomlinson Chief Engineer(Remoteview) Overwatch An Operating Unit of Textron Systems __ -Original Message- From: osg-users-boun...@lists.openscenegraph.org

Re: [osg-users] How to detect rotating image

2012-02-27 Thread Clement.Chu
Hi Robert, Sorry for the mass email. I have debugged the program and I am sure ON_DEMAND is set to OSG_RUN_FRAME_SCHEME, but I can't see any different. The cpu usage is still used 25% on idle. Regards, Clement From:

Re: [osg-users] [osgCompute] Computation on a rendered texture quad

2012-02-27 Thread Jens Orthmann
Hi jcronje, The method applyAsRenderTarget() or mapAsRenderTarget() is automatically called when a GLMemoryTargetCallback is attached to a camera. Please see the osgRTTDemo-example. It is required in order to synchronize the memory spaces correctly. You need to be shure that a GL-Context is

Re: [osg-users] [ANN] OpenSceneGraph 3.0 Cookbook: ready for pre-order and code tests

2012-02-27 Thread Torben Dannhauer
Hi Rui, I'm looking forward to get your new book! I'll play with the online code repository these days and give you feedback! Best regards, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45798#45798

[osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Magnus Kessler
We recently discovered that osgSim::DOFTransform nodes were unexpectedly removed from the scene graph by the unconditional use of the osgUtil::Optimizer in osgconv. The DOFTransform nodes were marked by our modelling tool (Max with the osgmaxeporter plugin) as STATIC. Should the optimizer

[osg-users] GL_TRANSFORM_FEEDBACK_BUFFER_NV in OSG

2012-02-27 Thread Martin Großer
Hello, Is it possible to use GL_TRANSFORM_FEEDBACK_BUFFER_NV extension in osg? I would like write back my vertex position data into a new Vertex Buffer Object. Is there any example about this? Cheers Martin -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!

Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Robert Osfield
HI Magnus, If you make a Transform node as STATIC then you've told the scene graph that it will never change so will be fair game for the Optimizer. You have two choices if you don't want to have the Optimizer optimize it away: 1) Don't call the Optimizer with the FLATTEN_STATIC_TRANSFORM

Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Magnus Kessler
On Monday 27 Feb 2012 15:26:15 Robert Osfield wrote: HI Magnus, If you make a Transform node as STATIC then you've told the scene graph that it will never change so will be fair game for the Optimizer. You have two choices if you don't want to have the Optimizer optimize it away: 1)

Re: [osg-users] GL_TRANSFORM_FEEDBACK_BUFFER_NV in OSG

2012-02-27 Thread Paul Martz
Yes, it's possible, but there are no examples that I know of. You might try binding a buffer object in a Camera pre-draw callback, for an example of one strategy. -Paul On 2/27/2012 8:21 AM, Martin Großer wrote: Hello, Is it possible to use GL_TRANSFORM_FEEDBACK_BUFFER_NV extension in

[osg-users] Release built OSG libs with debug built app...

2012-02-27 Thread Shayne Tueller
All, I believe this issue has been addressed before but I can't find the previous discussion. Therefore I will ask again... Is there a way to get Release-built OSG libs to play nicely with an app that is built with Debug? Right now if I link with Release-built OSG libs, my app (built with

Re: [osg-users] Release built OSG libs with debug built app...

2012-02-27 Thread Chris Hanson
On Mon, Feb 27, 2012 at 11:34 AM, Shayne Tueller shayne.tuel...@hill.af.mil wrote: All, I believe this issue has been addressed before but I can't find the previous discussion. Therefore I will ask again... Is there a way to get Release-built OSG libs to play nicely with an app that is

Re: [osg-users] Release built OSG libs with debug built app...

2012-02-27 Thread Jason Daly
On 02/27/2012 02:12 PM, Chris Hanson wrote: On Mon, Feb 27, 2012 at 11:34 AM, Shayne Tueller shayne.tuel...@hill.af.mil mailto:shayne.tuel...@hill.af.mil wrote: All, I believe this issue has been addressed before but I can't find the previous discussion. Therefore I will ask

Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Jean-Sébastien Guay
Hi Magnus, But maybe this question is more to the authors of osgmaxexporter. Why does osgmaxexporter unconditionally set the data variance to STATIC? What are the use cases where one would model a STATIC DOFTransform? DOFTransforms are a relic of Multigen (Presagis) Creator, and in that

Re: [osg-users] Testing of OpenSceneGraph svn/trunk in prep for 3.1 dev release

2012-02-27 Thread Thomas Hogarth
Hi Robert I've had a few compile errors on IOS with everything configured for Float, nothing major. Fixes have been submitted. With fixes I successfully built with XCode 4.2.1 for IOS SDK 5.0, GLES2, run on IPad and IPhone. Also compiled with Apples newer LLVM compiler and everything seems to