Re: [osg-users] 2.8 planned date?

2008-12-13 Thread Frederic Bouvier
Hi Robert, Robert Osfield a écrit : Hi Tim, Forgot to asks. Which openscenegraph components will the next release of FlightGear rely on? The bit I'm particular curious about is what OSG packages you'll need, I presume it'll be libopenscenegraph for runtime, and libopenscenegraph-dev for

Re: [osg-users] 2.8 planned date?

2008-12-13 Thread Frederic Bouvier
pulled in. Under Windows do you plan to roll OpenSceneGraph/OpenThreads and dependencies directly into your installer? Robert. On Sat, Dec 13, 2008 at 10:42 AM, Frederic Bouvier wrote: Hi Robert, Robert Osfield a écrit : Hi Tim, Forgot to asks. Which openscenegraph components

Re: [osg-users] Precipitation effect coming too fast, and hiding on some areas

2008-12-13 Thread Frederic Bouvier
Jumping into the thread, Robert Osfield a écrit : Second question It also rains inside my car. I tried adding a node mask for that, but it didn't seem to work. Is it possible not to make it rain inside the cars (which are on a separete osg::Group)? PrecipitationEffect doesn't have an

Re: [osg-users] 2.8 planned date?

2008-12-13 Thread Frederic Bouvier
Robert Osfield a écrit : Hi FlightGear-er's, On Fri, Dec 12, 2008 at 6:46 PM, Robert Osfield robert.osfi...@gmail.com wrote: What time frame are you working to? No answer, but it's important for me to have an idea. If you are pushing out a release this weekend then there is no

Re: [osg-users] Precipitation effect coming too fast, and hiding on some areas

2008-12-14 Thread Frederic Bouvier
Hi Robert, Robert Osfield a écrit : Hi Fred, On Sat, Dec 13, 2008 at 4:02 PM, Frederic Bouvier fredlis...@free.fr wrote: The same problem affect FlightGear too : it rains into the cockpit. Would it be possible to kill a particle when it comes under a certain distance from the viewer

Re: [osg-users] OpenSceneGraph-2.7.8 dev release tagged

2008-12-20 Thread Frederic Bouvier
Hi Robert, Robert Osfield a écrit : ps. FlightGear contributors... you guys have gone quite over the last two days, no doubt busy with other pressing work... any chance of an update? Is FG going for a release today? Is 2.7.8 sufficient for your purposes? Do you need a 2.8 branch? The

Re: [osg-users] OpenSceneGraph-2.7.8 dev release tagged

2008-12-20 Thread Frederic Bouvier
Robert Osfield a écrit : Hi Fred, On Sat, Dec 20, 2008 at 8:32 AM, Frederic Bouvier wrote: The release is still schedule for later today. There will be 2.7.8 in the binary release. But as flightgear has a huge display bug when compiled with OSG versions older than 2.7.3, we can predict

[osg-users] CMake error with 2.7.8

2008-12-20 Thread Frederic Bouvier
Hi Robert, I have a problem trying to build 2.7.8 on Linux (Debian etch). CMake (2.4.5) complains that FindPkgConfig ( .cmake ? ) is not found. It is referenced in src/osgViewer/CMakeLists.txt -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery http://fgsd.sourceforge.net/

Re: [osg-users] OpenSceneGraph-2.7.8 dev release tagged

2008-12-20 Thread Frederic Bouvier
Hi Robert, Robert Osfield a écrit : Hi Fred, On Sat, Dec 20, 2008 at 11:06 AM, Frederic Bouvier fredlis...@free.fr wrote: There shouldn't be a long period before 1.9.1 ( this one is flagged 1.9.0 ). Usually, we don't produce binary release for Linux. So the distro maintainers may want

Re: [osg-users] CMake error with 2.7.8

2008-12-20 Thread Frederic Bouvier
Robert Osfield a écrit : Hi Fred, On Sat, Dec 20, 2008 at 1:57 PM, Frederic Bouvier fredlis...@free.fr wrote: Thank you. Here is another one, in main CMakeLists.txt:25 IF had incorrect arguments : POLICY CMP0008 ( Unknown arguments specified ) I checked if there is a newer than 2.4.5

Re: [osg-users] Disabling VSYNC

2009-01-15 Thread Frederic Bouvier
Hi Robert, as far as I can see, only GraphicsWindowCarbon makes use of it (vsync) -Fred - Robert Osfield a écrit : HI Xam, When setting up the GraphicsWindow you pass in a GraphicsContext::Traits object, this has a field vsync that defaults to true. The other route would be to use

Re: [osg-users] OpenThreads in OSG...

2009-01-18 Thread Frederic Bouvier
James Moliere a écrit : Hello, I'm looking at documentation for OpenThreads and am wondering if OpenThreads is anticipated library of the future in OSG? When trying to download the latest version of OpenThreads, I get an error... cvs -d

Re: [osg-users] LWO loading problem

2009-02-07 Thread Frederic Bouvier
Frederic Bouvier a écrit : Csaba Halász a écrit : On Fri, Feb 6, 2009 at 1:18 PM, Robert Osfield robert.osfi...@gmail.com wrote: Could you please try out the svn/trunk or OSG-2.8 branch to double check that the lwo plugin is now behaving itself. Hi Robert

Re: [osg-users] LWO loading problem

2009-02-08 Thread Frederic Bouvier
Robert Osfield a écrit : On Sat, Feb 7, 2009 at 6:10 PM, Frederic Bouvier wrote: I disabled optimisations in the release mode ( /Od ) and the model shows up as expected. This code beats the compiler :-( Is this another VS compiler bug then? Maybe. Someone reported success

Re: [osg-users] setCursor problem

2009-04-27 Thread Frederic Bouvier
Hi Romain, if you followed the thread I initiated on osg-submissions list, you'd realize that the current code can only show the left arrow. So in other words, don't change your code, and apply the patches I submitted. I am sure Robert will take care of this soon. Regards, -Fred - Romain

Re: [osg-users] Rendering a series of nodes in precise order...

2009-05-11 Thread Frederic Bouvier
Hi, - Nathan Monteleone a écrit : Mathias Fröhlich wrote: Well, as far as I understand, and as far as I have my own applications for such kind of scenes. You will need an own render bin number for each object if every object just depends on the previous object to be rendered before.

[osg-users] Warning: TangentSpaceGenerator: unknown primitive mode 9

2010-03-19 Thread Frederic Bouvier
Hi, it looks like TangentSpaceGenerator doesn't support POLYGON (mode 9), and outputs this warning. Is there a possibility that the tangent could be computed for polygons ? Thank you, -Fred ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Support for glFramebufferTextureEXT ?

2010-05-19 Thread Frederic Bouvier
Hi, I would like to use the glFramebufferTextureEXT function introduced in the EXT_geometry_shader4 extension. My need is to control the layer of the 3D texture target with the gl_Layer variable present in geometry shaders. For the moment, I hacked the FrameBufferObject sources to replace the

Re: [osg-users] Support for glFramebufferTextureEXT ?

2010-05-20 Thread Frederic Bouvier
Hi Robert, - Robert Osfield a écrit : HI Fred, I would like to use the glFramebufferTextureEXT function introduced in the EXT_geometry_shader4 extension. My need is to control the layer of the 3D texture target with the gl_Layer variable present in geometry shaders. For the moment, I

Re: [osg-users] Footprint of a drawable on screen.

2010-06-02 Thread Frederic Bouvier
Fred, Are you aware of RangeMode PIXEL_SIZE_ON_SCREEN in osg::LOD ? it's not using the position on screen, but it is efficiently calculating the diameter of the bounding sphere in pixels on screen, and switches lod level on that basis. Laurens. On 6/1/2010 6:34 PM, Frederic Bouvier wrote

Re: [osg-users] ping pong fbo geometry problem

2010-06-03 Thread Frederic Bouvier
Hi Julien, aren't you supposed to attach a texture to the framebuffer ? I don't see a call to glFramebufferTexture2D or something equivalent in your code. In OSG term, it's the Camera::attach method that should be called. -Fred - Julien Valentin julienvalenti...@gmail.com a écrit :

Re: [osg-users] Read texels from texture in GPU memory

2010-06-09 Thread Frederic Bouvier
Hi Martin, you can look at the osgprerender example when use_image is set. You attach an image to the camera and read the image data in a postdraw callback -Fred - Martin Aasen a écrit : Hi all! I am currently rendering to a texture by attaching it to a camera as

Re: [osg-users] Read texels from texture in GPU memory

2010-06-09 Thread Frederic Bouvier
As far as I can tell, glGetTexImage retrieve the whole texture data. If you want to read a subset of that, you'll have to read the framebuffer object with glReadBuffer/glReadPixels as suggested by Gordon. -Fred - Martin Aasen martin-ferstad.aa...@ffi.no a écrit : Hi, Thanks for the

Re: [osg-users] Weekend adventure

2010-06-14 Thread Frederic Bouvier
Hi Robert, - Robert Osfield a écrit : As for the area, if you can come to Scotland be sure to visit the north west coast, the 3 hours drive there was stunning all the way and the final destination topped it all. Sure the weather can be stormy sometimes, but that's what you get when the

Re: [osg-users] Headtracking

2010-07-22 Thread Frederic Bouvier
Hi, Maybe you already have a Matrix/Camera Manipulator that override your update callback ? -Fred - Thomas Klemmer klem...@uni-weimar.de a écrit : Hi folks I'm sitting here trying to set up a head tracking... I got an api that spits out a viewmatrix for the camera and now I have to

Re: [osg-users] Unresolved externals while building Plugins gif/jpeg/png/etc

2010-08-05 Thread Frederic Bouvier
- Kris Dale a écrit : ReaderWriterPNG.obj : error LNK2019: unresolved external symbol png_get_io_ptr referenced in function void __cdecl png_read_istream(struct png_struct_def *,unsigned char *,unsigned __int64) (?png_read_istream@@YAXPEAUpng_struct_def@@pea...@z) I fixed that by

Re: [osg-users] Render to 3D image...

2010-08-06 Thread Frederic Bouvier
- Emmanuel Roche a écrit : Just let me know if you need some code to have a better idea of what I'm doing (but almost everything is written in Lua). If you have OSG 2.9.8, there is a new possible value for the face parameter : osg::Camera::FACE_CONTROLLED_BY_GEOMETRY_SHADER To render to

Re: [osg-users] Render to 3D image...

2010-08-06 Thread Frederic Bouvier
- Emmanuel Roche roche.emman...@gmail.com a écrit : Hey, thanks for the info Frederic! Actually, the atmospheric scattering effect you're pointing me at is what I've been trying to integrate into OSG for a few days now and the reason why I ask those questions :-) So have a look here

Re: [osg-users] Visual Studio 2010 and iostream

2010-08-06 Thread Frederic Bouvier
Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen uploaded some 3rd party binaries built with Visual Studio 2010. (Thanks!) He noted problems with iostream. I still have iostream problems when linking in OSG into my application in specific places under Visual Studio

Re: [osg-users] Visual Studio 2010 and iostream

2010-08-06 Thread Frederic Bouvier
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 13:44 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen

Re: [osg-users] Visual Studio 2010 and iostream

2010-08-06 Thread Frederic Bouvier
back). I might have a go at building flightgear later, let you know how it goes or doesn’t! Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August

Re: [osg-users] Transfer osgViewer stream wirelessly to a remote monitor

2010-08-06 Thread Frederic Bouvier
I used: view-setUpViewOnSingleScreen(1); //for views 1,2,3 with graphics context gc view-setUpViewOnSingleScreen(2); //for view 4 with graphics context gc2 In my dual screen setup, screens are numbered 0 and 1, not 1 and 2 HTH -Fred ___ osg-users

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-06 Thread Frederic Bouvier
Hi, I discovered recently that it is a bounding box that is first calculated for drawables. Then the bounding sphere of nodes is the bounding sphere of the bounding boxes. -Fred - paul graham a écrit : Hi, I've modified the osg billboard example and am examining the pixel size computed

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-07 Thread Frederic Bouvier
- paul graham a écrit : Thanks Frederic - as you say, for the case of a square, you'd expect the bounding sphere diameter to contain the bounding box - ie. in this case the square itself. Only if your geometry is axis-aligned, but I supposed it is in your case. -Fred

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-07 Thread Frederic Bouvier
- paul graham a écrit : Thanks Frederic - as you say, for the case of a square, you'd expect the bounding sphere diameter to contain the bounding box - ie. in this case the square itself. Only if your geometry is axis-aligned, but I supposed it is in your case. I did a small

Re: [osg-users] Visual Studio 2010 and iostream

2010-08-09 Thread Frederic Bouvier
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: Saturday, 7 August 2010 12:16 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone

Re: [osg-users] Visual Studio 2010 and iostream

2010-08-09 Thread Frederic Bouvier
. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 17:16 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone with CMake

Re: [osg-users] [3rdparty] specify particular mimap level image

2010-08-13 Thread Frederic Bouvier
Hi Alice, - Alice Yin a écrit : Hi, I am rewriting my code into OSG. One function I want to use is to specify each level of the mipmap image by myself, just as glTexImage2D(GL_TEXTURE_2D, level, GL_RGB, cols, rows, 0, GL_RGB, GL_FLOAT, Data) does. Is there a function in OSG like

Re: [osg-users] parameters

2010-08-16 Thread Frederic Bouvier
- Robert Osfield a écrit : Hi Ricky, On Tue, Aug 10, 2010 at 6:34 PM, Ricky Flintoff rickyflint...@gmail.com wrote: So there is no way I can capture focal length effects in OSG using the Prespective projection matrix? By focal length effects do you mean depth of field? One can

Re: [osg-users] osgBullet Build unsuccessful

2010-08-16 Thread Frederic Bouvier
Hi, often you can see in depends that some registered dll are loaded dynamically. This shouldn't cause any arm because the error is usually catched. What you should do to really find your problem is to start your test application inside depends and do a profiling. You can do that by loading

Re: [osg-users] transparent texture and linear filtering issue

2010-09-05 Thread Frederic Bouvier
Hi, - Vivien Delage vdel...@gmail.com a écrit : Hi, I have an issue with rendering transparent textures and activating linear filtering on them. I am using TRANSPARENT_BIN with DepthSortedBin. My textures are not semi transparent, they only have parts with either alpha 1 or with

Re: [osg-users] vsync false doesn't change frame rate

2010-09-05 Thread Frederic Bouvier
Le 05/09/2010 19:06, Tomas Starka a écrit : Thanks, but as I've wrote earlier: Driver change isn't an option. I believe, that OSG have some clean way to do this. I just can't figure it out. I don't think OSG is able to override driver settings. You have to switch it off in the user settings

Re: [osg-users] Why I can not call discardAllDeletedGLObejcts function

2010-09-12 Thread Frederic Bouvier
- Licheng Zhang zlc19...@163.com a écrit : Hi, I encountered the same problem in http://forum.openscenegraph.org/viewtopic.php?t=4527 according to robertosfield's suggestion. In terms of manually forcing the discard of all the GL handles you can do a scene-releaseGLObjects() and

Re: [osg-users] Preparing for OpenSceneGraph-2.9.9 developer release, please test :-)

2010-09-18 Thread Frederic Bouvier
There is still a bad flicker when, in osgViewer, I drag with the mouse in one screen, stop the drag, and restart in the other screen. No flicker as long as drags occur in the same screen. -Fred - Martin Naylor a écrit : Mmmm, I think I may have found the problem! Download the latest

Re: [osg-users] Please help, linking errors with OpenSceneGraph

2010-09-25 Thread Frederic Bouvier
Hi Renesis, - Jean-Sébastien Guay a écrit : Hi Renesis, [...] but now when the program runs I get this runtime error: Code: Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, which indicates a bug in test.exe or any of the DLLs it

Re: [osg-users] Multiple camera 'layers'

2010-09-30 Thread Frederic Bouvier
Hi, - Jean-Sébastien Guay a écrit : Hello Mike, I would like to create a 2D background (can this be done using the main camera? If so how?) I would then like to have other multiple cameras each rendering their own 3D sub scene with a transparent background (how does each camera have

Re: [osg-users] Lighting shader problem

2010-09-30 Thread Frederic Bouvier
if(!aniModel-getAvatar()-getOrCreateStateSet()-getUniform(eyePosition)-setElement(0,osg::Vec3(eye._v[0],eye._v[1],eye._v[2]))) why not : if(!aniModel-getAvatar()-getOrCreateStateSet()-getUniform(eyePosition)-set(eye)) ? -Fred ___

Re: [osg-users] Render to texture

2010-10-01 Thread Frederic Bouvier
Hi, An advanced way to do that is to combine layered rendering with a geometry shader and geometry instancing to generate the slices. OSG SVN has support to let the geometry shader choose the right layer via the gl_Layer variable. -Fred - Mahendra G.R mahen...@mahendragr.com a écrit :

Re: [osg-users] Save texture changes via fragment shader

2010-10-06 Thread Frederic Bouvier
// load texture as an image imgTexture = osgDB::readImageFile(model/BAKE_OVERRIDE.jpg); // if the image is successfully loaded if (imgTexture) { imgTexture-allocateImage(3500, 3500, 1, GL_RGBA, GL_UNSIGNED_BYTE); Why are you reallocating space for an image loaded from file ?

Re: [osg-users] Stencil buffer and FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT

2010-10-12 Thread Frederic Bouvier
Hi Fred, - Fred Smith a écrit : The following works fine: camera-attach(osg::Camera::PACKED_DEPTH_STENCIL_BUFFER, GL_DEPTH_STENCIL_EXT); Why doesn't it work if I create a texture? I need to create a texture and an image, as I want to retrieve stencil buffer data after frame() has

Re: [osg-users] Stencil buffer and FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT

2010-10-12 Thread Frederic Bouvier
Maybe : textureDepthStencil-setInternalFormat( GL_DEPTH_STENCIL_EXT ); ... camera-attach(osg::Camera::PACKED_DEPTH_STENCIL_BUFFER, textureDepthStencil); Could work. As the depth and stencil buffer are packed, so should the texture. (re)read

Re: [osg-users] OT: VS2010 LNK2005 problem related to ostringstream

2010-10-20 Thread Frederic Bouvier
Hi Sukender, Add /FORCE:MULTIPLE to your link options -Fred - Sukender a écrit : Hi all, Any update on this side? I've got the same issue (I use fstream in my project which depends on osgDB, under VC2010 x64). Or is there a way to temporarily workaround this in OSG with an ugly

Re: [osg-users] Multitexture Issue in GLSL Fragment Shader

2010-10-21 Thread Frederic Bouvier
Hi Peter, try stateSet - addUniform( new osg::Uniform( stTexture , 0 ) ) ; instead; Regards, -Fred - Peter Wrobrl particlepe...@gmx.de a écrit : Hi, yes, it should use texture 0, but how do I specify this ? The 1 in this code line : stateSet - addUniform( new osg::Uniform(

Re: [osg-users] [OT] I18N libraries

2010-10-25 Thread Frederic Bouvier
Hi Sukender, I never tried them, but I know there are some interesting stuff here : http://ftp.acc.umu.se/pub/gnome/binaries/win64/dependencies/ Regards, -Fred - Sukender a écrit : Hi all, I was using gettext-intl to handle translated strings in my apps, but now I'm compiling 64 bits

Re: [osg-users] Generate mipmaps from arbitrary image

2010-11-04 Thread Frederic Bouvier
Hi Robert, I recently implemented a shader technique in FlightGear that needed to compute the mipmaps levels with the min operator on the alpha channel instead of the classical average that is usually used. For that technique, I computed the mipmaps on the CPU. If you design a new function

Re: [osg-users] Blending two textures manualy

2010-11-16 Thread Frederic Bouvier
- Aitor Ardanza a écrit : Ulrich Hertlein wrote: I believe your pixel address calculation is wrong; try this instead: // i==row/y, j==column/x unsigned char* pixel = texture-getImage(0)-data() + ((i * tex_width) + j) * 4; *(pixel+0) = r; *(pixel+1) = g; *(pixel+2) = b;

Re: [osg-users] Using Geometry Shaders in OSG 2.9.9

2010-11-26 Thread Frederic Bouvier
Hi Joel, layout (traingle_strip, max_vertices = 3) out; I doubt this valid GLSL. Try layout (triangle_strip, max_vertices = 3) out; instead ;-) Regards, -Fred - Joel Graff pair_o_gra...@comcast.net a écrit : Hi, I've been developing an app in OpenSceneGraph to help me learn

Re: [osg-users] How to render the OSG scene to an image file?

2010-11-26 Thread Frederic Bouvier
Hi Igor, did you search in the example folder ? I am sure that more than one use a pbuffer. More use framebuffer objects. You can have a look to osgscreencapture Regards, -Fred - Igor Galochkin isee...@yandex.com a écrit : I am still stuck. Guys, any suggestions? My colleague tried to

Re: [osg-users] ModelView and projection matrices in cull callback different from camera's view and projection matrices

2010-12-02 Thread Frederic Bouvier
Hi Fred, - Fred Smith a écrit : Hi, In a drawable cull callback, I have found that State::getModelViewMatrix() and State::getProjectionMatrix() are different from the matrices returned by Camera::getViewMatrix() and Camera::getProjectionMatrix(). I actually can't perform world to

Re: [osg-users] Length unit

2010-12-02 Thread Frederic Bouvier
Hi Axel, - Axel Spirtaat a écrit : Hi Torben, thanks for your answer. I imagined it, but when i loaded the cow model in my scene, the model was bigger than my room (that is, 8x5x3), so I've had this doubt :-) So the right question is : In what unit is the cow ? and the room ? -Fred

Re: [osg-users] Render to texture 3D

2010-12-20 Thread Frederic Bouvier
Hi Julien, It's me that submitted this change at http://www.mail-archive.com/osg-submissions@lists.openscenegraph.org/msg05568.html It's hard to tell what's going wrong without the full code of your camera setup. In http://www.opengl.org/registry/specs/ARB/geometry_shader4.txt error 0x8da8

Re: [osg-users] Render to texture 3D

2010-12-21 Thread Frederic Bouvier
initialize RenderBuffer with GL_DEPTH_COMPONENT24_SGIX, but with GL_RGBA Could it be a problem with it? Strange because it dont bother the only one slice version... Could it be because I use CORE 330 shaders? Please help Frederic Bouvier wrote: Hi Julien, It's me that submitted

Re: [osg-users] BIND_PER_PRIMITIVE broken?

2011-01-10 Thread Frederic Bouvier
Hi Sukender, Actually, OpenGL can do this binding (even if it's slow), so why not supporting it if it's not that difficult? Should we name it differently? it is my understanding that OpenGL can only do BIND_PER_VERTEX natively. There is no such thing as a face normal or color. There is only

Re: [osg-users] Need Help ! How to get Camera Position inside shaders

2011-01-13 Thread Frederic Bouvier
Hi Laith, OSG defines the osg_ViewMatrixInverse uniform. You have to add uniform mat4 osg_ViewMatrixInverse; in your shader to use it and find the camera location in world coordinates. Otherwise, there is the gl_ModelViewMatrixInverse uniform if you want to transform the camera position from

Re: [osg-users] ref_ptr rules

2011-03-17 Thread Frederic Bouvier
Using ref_ptr everywhere is a good way to be exception safe because you know the pointer will be deleted even it it wasn't added to another OSG object. There is a possible pitfall if you want to return a ref_ptr in a function that returns a pointer, because the object will be deleted before the

Re: [osg-users] osgDB ifstream / ofstream conflict

2011-04-29 Thread Frederic Bouvier
Hi, yes, adding /FORCE:MULTIPLE to the linker command line was the only workaround I found Regards, -Fred - Brad Christiansen a écrit : Hi, This seems to be the same / related to an issue raised some time ago with VS2010. When I build VirtualPlanetBuilder with VS2010 I

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Frederic Bouvier
Hi Robert Thorsten, I simply merged r12395 in my 2.9.14 branch and got this : http://frbouvi.free.fr/flightsim/fgfs-txf-fonts.jpg oversized font! Regards, -Fred - Robert Osfield a écrit : Hi Thorsten, I have tracked down the problem to the txf plugin not setting the width and

Re: [osg-users] wrong calculation of bounding box

2011-11-11 Thread Frederic Bouvier
Hi John, De: John Doves evage...@gmail.com Wrong calculation a bounding box of model which contains biped or bones. I'm used this code to calculate bounding box: Code: model = (osg::Geode*) osgDB::readNodeFile(testmodel.fbx); //calculating bounding box of model

[osg-users] Sharing depth buffer between fbos

2011-12-05 Thread Frederic Bouvier
Hi All, I need to initialize the content of the depth buffer of a FBO with the result of a RTT pass where I setup a DEPTH_ATTACHMENT to a depth texture. IOW, I want two fbos with the same depth buffer, the second being read only. AFAICS in gDebugger, the attachment to the second fbo cancels the

Re: [osg-users] Sharing depth buffer between fbos

2011-12-05 Thread Frederic Bouvier
- De: Sebastian Messerschmidt sebastian.messerschm...@gmx.de À: OpenSceneGraph Users osg-users@lists.openscenegraph.org Cc: Frederic Bouvier fredlis...@free.fr Envoyé: Lundi 5 Décembre 2011 17:02:17 Objet: Re: [osg-users] Sharing depth buffer between fbos Hi Frederic, I'm using a similar setup. I

Re: [osg-users] Sharing depth buffer between fbos

2011-12-05 Thread Frederic Bouvier
I double checked and it appears to work now. I guess I have not tried hard enough the first time. Thank you -Fred - Mail original - De: Sebastian Messerschmidt Objet: Re: [osg-users] Sharing depth buffer between fbos They are set up in the exact same way. So both are using frame buffer

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Frederic Bouvier
Hi Peter, Le 04/01/2012 10:52, Peter Bako a écrit : Hi, I get errors, when I try to compile my project on visual studio for 64bit platform. Before on ANYCPU configurations I had no problems. The error which I get is variable WINGDIAPI is not a type name c:\program files

Re: [osg-users] Separate rendering of renderbins

2012-02-04 Thread Frederic Bouvier
Hi Sebastian, De: Sebastian Messerschmidt I know this question has been asked before, but I didn't extract enough information out of the answers to understand it fully. What I want to achive seems simple. I have separate renderpasses with the same viewpoint to render different parts of the

Re: [osg-users] Fwd: Ambient Occlusion Implementation 2 review

2012-02-11 Thread Frederic Bouvier
Hi Robert, Le 10/02/2012 16:45, Robert Osfield a écrit : Hi Adrian, I've not got most of the way through my submissions backlog - can finally see the light at the end of the tunnel :-) So I'm now in much better place to start looking at your Ambient Occlusion work. Do you have any updates

[osg-users] Shadows and LOD

2012-04-02 Thread Frederic Bouvier
Hi, FlightGear now includes a deferred renderer that produce shadows. As the lighting is done from a Gbuffer in a fullscreen quad render, I can't (correct me if I'm wrong) use osgShadow. So in my implementation, I render the geometry of the whole scenegraph to a depth texture using an

Re: [osg-users] Shadows and LOD

2012-04-02 Thread Frederic Bouvier
to try Sergey's suggestion of LODScale() which would achieve rather different results. Robert. On 2 April 2012 13:12, Frederic Bouvier wrote: Hi, FlightGear now includes a deferred renderer that produce shadows. As the lighting is done from a Gbuffer in a fullscreen quad render, I can't

Re: [osg-users] Shadows and LOD

2012-04-02 Thread Frederic Bouvier
On 2 April 2012 14:21, Frederic Bouvier fredlis...@free.fr wrote: may I ask how a camera can inherit the viewpoint of a sister (slave) camera ? Or does it inherit the viewpoint of the master camera ? The OSG inherits state/settings from parents, there isn't any sibling inheritance. Ok, thank

Re: [osg-users] Shadows and LOD

2012-04-02 Thread Frederic Bouvier
Hi Robert, On 2 April 2012 14:21, Frederic Bouvier fredlis...@free.fr wrote: may I ask how a camera can inherit the viewpoint of a sister (slave) camera ? Or does it inherit the viewpoint of the master camera ? The OSG inherits state/settings from parents, there isn't any sibling inheritance

Re: [osg-users] Shadows and LOD

2012-04-02 Thread Frederic Bouvier
Hi Robert, On 2 April 2012 14:21, Frederic Bouvier fredlis...@free.fr wrote: may I ask how a camera can inherit the viewpoint of a sister (slave) camera ? Or does it inherit the viewpoint of the master camera ? The OSG inherits state/settings from parents, there isn't any sibling

Re: [osg-users] Shadows and LOD

2012-04-02 Thread Frederic Bouvier
On 2 April 2012 14:21, Frederic Bouvier fredlis...@free.fr wrote: may I ask how a camera can inherit the viewpoint of a sister (slave) camera ? Or does it inherit the viewpoint of the master camera ? The OSG inherits state/settings from parents, there isn't any sibling

Re: [osg-users] Primitive Restart

2012-04-03 Thread Frederic Bouvier
Hi Robert, as I understand it, this feature enables one to put unconnected strips in a single primitive, while degenerated triangles may add a line between the end of a strip and the next. Regards, -Fred - Mail original - De: Robert Osfield robert.osfi...@gmail.com À: OpenSceneGraph

[osg-users] Multiple GPU/monitor issue on Windows 7/NVidia

2012-05-19 Thread Frederic Bouvier
Hi, I am pretty sure it has been discussed before, but I am unable to retrieve the right thread, so ... I have a dual card setup, each driving a single monitor. When I start osgViewer, the viewer span on both screen, an initial image is displayed on both too, but only the primary display is

Re: [osg-users] Multiple GPU/monitor issue on Windows 7/NVidia

2012-05-20 Thread Frederic Bouvier
? What versions of OSG have you tested? -Paul On 5/19/2012 9:03 AM, Frederic Bouvier wrote: Hi, I am pretty sure it has been discussed before, but I am unable to retrieve the right thread, so ... I have a dual card setup, each driving a single monitor. When I start osgViewer, the viewer

Re: [osg-users] Multiple GPU/monitor issue on Windows 7/NVidia

2012-05-20 Thread Frederic Bouvier
Paul, I see the same issue with 3.1.2 Regards, -Fred - Mail original - De: Frederic Bouvier fredlis...@free.fr À: OpenSceneGraph Users osg-users@lists.openscenegraph.org Envoyé: Dimanche 20 Mai 2012 10:10:42 Objet: Re: [osg-users] Multiple GPU/monitor issue on Windows 7/NVidia Hi Paul

Re: [osg-users] Multiple GPU/monitor issue on Windows 7/NVidia

2012-05-23 Thread Frederic Bouvier
off / fullscreen mode to avoid DWM quirks HTH, Wojtek Lewandowski 2012/5/20 Frederic Bouvier fredlis...@free.fr Paul, I see the same issue with 3.1.2 Regards, -Fred - Mail original - De: Frederic Bouvier fredlis...@free.fr À: OpenSceneGraph Users osg-users

Re: [osg-users] Ideas about a resource system, and deferred rendering framework

2012-06-22 Thread Frederic Bouvier
I was going to raise that point. Flightgear has for some years now a system where designers can express their statesets in XML files called effects. A statesets is called a Pass in FG (or a FG Pass is implemented with a stateset). You can add multiple passes in a Technique, allowing you to

Re: [osg-users] Render depth into texture with 32 bits

2012-07-04 Thread Frederic Bouvier
Hi, sourceFormat and sourceType are used if you read back the texture in CPU memory. To ease my debug in gDebugger, I use sourceType=GL_FLOAT It doesn't change how the fbo works, but I can read floats between 0 and 1 in the debugger. Regards, -Fred - Mail original - De: Sergey

[osg-users] Rev 13092 broke osgViewerFLTK

2012-09-06 Thread Frederic Bouvier
Hi Robert, I was reported a problem in fgrun (the flightgear launcher) where camera manipulation in the aircraft viewer is broken using OSG trunk, on Linux, but I was able to reproduce it on Windows too. This video explain the problem : http://youtu.be/xN1hTGte1EM After bisecting, I found

Re: [osg-users] Rev 13092 broke osgViewerFLTK

2012-09-06 Thread Frederic Bouvier
the example that should be passing on parameters to osgViewer. I have plenty of others tasks on my plate so I'll defer to others for tracking down this issue. Cheers, Robert. On 6 September 2012 09:27, Frederic Bouvier fredlis...@free.fr wrote: Hi Robert, I was reported a problem in fgrun

Re: [osg-users] Rev 13092 broke osgViewerFLTK

2012-09-06 Thread Frederic Bouvier
- Mail original - De: Frederic Bouvier fredlis...@free.fr À: OpenSceneGraph Users osg-users@lists.openscenegraph.org Envoyé: Jeudi 6 Septembre 2012 14:55:12 Objet: Re: [osg-users] Rev 13092 broke osgViewerFLTK Hi Robert, rev 13092 is a change in osgViewer::Viewer only. Your comment

Re: [osg-users] Rev 13092 broke osgViewerFLTK

2012-09-06 Thread Frederic Bouvier
dimensions. I think the correct fix will probably be along these lines. Just reverting the code as you have done will re-introduce a bug so is not appropriate. Robert. On 6 September 2012 14:10, Frederic Bouvier fredlis...@free.fr wrote: Well, restoring this block at the new frame call location fix

Re: [osg-users] Rev 13092 broke osgViewerFLTK

2012-09-07 Thread Frederic Bouvier
osg-users@lists.openscenegraph.org Envoyé: Vendredi 7 Septembre 2012 11:35:30 Objet: Re: [osg-users] Rev 13092 broke osgViewerFLTK Hi Frederic, On 6 September 2012 15:02, Frederic Bouvier fredlis...@free.fr wrote: I don't revert the code. I moved the setInputRange block where you put

Re: [osg-users] Please test svn/trunk in prep for 3.1.3 developer release

2012-09-07 Thread Frederic Bouvier
Trunk build OK with MSVC 2012, at least for the plugins I am able to resolve dependencies. Regards, -Fred - Mail original - De: Robert Osfield robert.osfi...@gmail.com À: OpenSceneGraph Users osg-users@lists.openscenegraph.org Envoyé: Vendredi 7 Septembre 2012 11:28:11 Objet:

Re: [osg-users] osgviewerfltk doesnt appear in solution

2012-09-09 Thread Frederic Bouvier
Hi Peterakos, See the small patch in this message : http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg58476.html (Included in OSG 3.1.3 BTW) Regards, -Fred - Mail original - De: Peterakos hay...@gmail.com À: OpenSceneGraph Users osg-users@lists.openscenegraph.org

Re: [osg-users] Ideas about a resource system, and deferred rendering framework

2012-09-10 Thread Frederic Bouvier
Hi Jeremy, De: Jeremy Moles I'm testing this out, but you appear to have left noise_tex.jpg out of the zip. :) You should be able to use this one : https://gitorious.org/fg/fgdata/blobs/master/Textures/noise_tex.jpg ;-) Regards, -Fred ___