[osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Yurii Monakov
Hi all! In my OSG application I need to continuously update small parts of 2D texture. So I use osg::Texture2D::SubloadCallback: class MyCallback : public osg::Texture2D::SubloadCallback { /* initialize texture */ void load(const Texture2D& texture,State& state) const

Re: [osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Mikhail I. Izmestev
01.04.2011 11:41, Yurii Monakov wrote: And everything works fine until the cleanup stage. In the code above I've allocated a Pixel Buffer Object. Where should I place it's deletion function (something like ext->glDeleteBuffers(1,&m_pbo))? Or I should generate/delete it on every subload call with

Re: [osg-users] G++ version problem

2011-04-01 Thread Robert Osfield
Hi Grahame, On Fri, Apr 1, 2011 at 4:20 AM, Grahame Bowland wrote: > Thanks very much, that was it! gcc-4.4.3 was failing the > _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS test, which succeeded for 4.5.2. > That changed the "Atomic" header file, which presumably changed the size > of a bunch of importan

Re: [osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Yurii Monakov
Hi Mikhail, Thank you for your answer. So I should inherit from osg::BufferObject class and implement compileObject() method? Yurii 2011/4/1 Mikhail I. Izmestev : > 01.04.2011 11:41, Yurii Monakov wrote: > >> And everything works fine until the cleanup stage. In the code above >> I've allocated

Re: [osg-users] Methods definition problem passing 2.8.3 -> 2.9.12

2011-04-01 Thread Dario Minieri
Hi, Thanks, this is usefull. Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38153#38153 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscen

Re: [osg-users] osgQt::QWidgetImage and Key/Mouse events

2011-04-01 Thread Aitor Ardanza
I put it again if the previous post goes unnoticed... Why using osgQt::QWebViewImage and osgWidget::Browser not me run this method? Code: osg::ref_ptr image = new osgQt::QWebViewImage(); image->getQWebView()->setUrl(QString(url.c_str())); image->getQWebView()->settings()->setAttribute(QWebSetting

Re: [osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Mikhail I. Izmestev
On 04/01/11 12:02, Yurii Monakov wrote: > Hi Mikhail, > > Thank you for your answer. So I should inherit from osg::BufferObject > class and implement compileObject() method? > I think in your case you can try to use osg::PixelDataBufferObject as it is. Mikhail. _

[osg-users] Fast VectorArray inizialization.

2011-04-01 Thread Giulio De Vecchi
Hi all, I have some code like this: float coordinates[] ... ... an external source fill the previous array ... ... osg::ref_ptr vertices = new osg::Vec3Array(); for (int i = 0; i < 3 * numPoints; i += 3) { float x = coordinates[i]; float y = coordinates[i+1]; float z = coor

Re: [osg-users] SubloadCallback and PBO cleanup

2011-04-01 Thread Yurii Monakov
Thank you! Yurii. 2011/4/1 Mikhail I. Izmestev : > On 04/01/11 12:02, Yurii Monakov wrote: >> Hi Mikhail, >> >> Thank you for your answer. So I should inherit from osg::BufferObject >> class and implement compileObject() method? >> > > I think in your case you can try to use osg::PixelDataBufferO

Re: [osg-users] Fast VectorArray inizialization.

2011-04-01 Thread Robert Osfield
Hi Giulio, All osg::Vec*Array() are subclassed from the std::vector<> so you have all the usual std::vector<> methods available. For examples of different ways of initialization the array see the osggeometry example. Robert. On Fri, Apr 1, 2011 at 9:57 AM, Giulio De Vecchi wrote: > Hi all, > I

Re: [osg-users] Fast VectorArray inizialization.

2011-04-01 Thread Peter Hrenka
Hi Giulio, Am 01.04.2011 10:57, schrieb Giulio De Vecchi: > Hi all, > I have some code like this: > > float coordinates[] > ... > ... an external source fill the previous array ... > ... > osg::ref_ptr vertices = new osg::Vec3Array(); > for (int i = 0; i < 3 * numPoints; i += 3) > { > floa

Re: [osg-users] G++ version problem

2011-04-01 Thread Alberto Luaces
Robert Osfield writes: > Hi Grahame, > > On Fri, Apr 1, 2011 at 4:20 AM, Grahame Bowland > wrote: >> Thanks very much, that was it! gcc-4.4.3 was failing the >> _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS test, which succeeded for 4.5.2. >> That changed the "Atomic" header file, which presumably changed

Re: [osg-users] Fast VectorArray inizialization.

2011-04-01 Thread Giulio De Vecchi
Thanks a lot! This is exactly what I was looking for. Best regards. Giulio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38162#38162 ___ osg-users mailing list osg-users@lists.openscenegraph.org htt

Re: [osg-users] Using Vertex Attributes

2011-04-01 Thread Fred Smith
Things seem to be working today, although I need to double check everything to make sure I'm not dreaming. glUseProgram errors only happen on ATI hardware with Catalyst 11.2 drivers - I haven't tried 11.3 yet. My nvidia setup seems fine. As for the GL context version, source code modification i

Re: [osg-users] Y up to Z up

2011-04-01 Thread Jason Daly
On 04/01/2011 08:36 AM, Aitor Ardanza wrote: Sorry but I need to disconnect with this issue until Monday... I haven't gotten ​​the animations work well, even putting "Y up" or with the formula R' = M * R * Minv... On Monday I will try to summarize all my tests with pictures and videos ... I

Re: [osg-users] fbx animation

2011-04-01 Thread Josue Hernandez
thank you so much for this, but now i have a problem: how I can get the library osgDB/XmlParser? another custion: the argument of AnimationSplitter is my .fbx or is something else? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38166#38166 _

[osg-users] [build] Build Issues Trunk 2.9.12 and GL3

2011-04-01 Thread Peter Wrobrl
Hi, there are Build Issues with the current Trunk and the GL3 Option osgText does not build due to glPushAttrib / glPopAttrib in Text::renderWithDelayedDepthWrites. osgSim OverlayNode Serializer uses Deprecated glTexEnv GL_DECAL Enum. Fix for Text::renderWithDelayedDepthWrites: void Text::

Re: [osg-users] [build] Build Issues Trunk 2.9.12 and GL3

2011-04-01 Thread Peter Wrobrl
Hi, hm ... current Trunk Version is 2.9.9 after it was 2.9.11 already ??? My mistake with the topic ... ? Cheers, Peter -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38168#38168 ___ osg-users maili

Re: [osg-users] Compiling iOS / iPhone - FreeType build

2011-04-01 Thread Ryan Atkins
Thanks Tom. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38169#38169 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegra

[osg-users] Way off topic: Osborne PC 30th birthday

2011-04-01 Thread Paul Martz
http://www.wired.com/gadgetlab/2011/04/portable-pc-osborne/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+wired%2Findex+%28Wired%3A+Index+3+%28Top+Stories+2%29%29&utm_content=Google+Feedfetcher -- -Paul Martz Skew Matrix Software http://www.skew-matrix.com/

[osg-users] IOS and XCode 4

2011-04-01 Thread Thomas Hogarth
Hi all Just wanted to share my experiences of IOS with XCode 4.0, I guess some of this will be XCode 4.0 in General I rather foolishly upgraded my IPod to IOS 4.3, when I next tried to launch my app on it I was told XCode couldn't use the device anymore. After downloading the 4.3 GB XCode 4.0