Re: [osg-users] EXTERNAL: Re: Where is CreateContextAttribs() being used?

2019-04-11 Thread Lionel Lagarde
Hi, Win32 is the name for all the Windows windowing systems. It is used on all Windows (XP, 7, 10...) and on all targets (32, 64). So the function is used. If I remember correctly, the function is used only for >= GL3 contexts. On 11/04/2019 14:51, Rowley, Marlin R wrote: We are using Win1

Re: [osg-users] Nvidia RTX

2019-02-21 Thread Lionel Lagarde
to load the data. I think there's enough working code there already to do so. Or, really, we could just us what VSG has already and compose and execute the RTX commands without OSG, but copying already-composed scene data over from the OSG side. On Thu, Feb 21, 2019 at 3:15 PM Lionel La

Re: [osg-users] Nvidia RTX

2019-02-21 Thread Lionel Lagarde
Hi, It is a GLSL extension, the ray tracing functions use some input data (like the acceleration structure) that can only be constructed and uploaded using the vk API. On 21/02/2019 13:34, Chris Hanson wrote: One of my guys pointed out this recent addition: https://github.com/KhronosGroup/

[osg-users] OpenGL function does not return on Titan Xp

2018-06-11 Thread Lionel Lagarde
Hi, We have a set of products based on OSG that run well on common hardware. Recently a customer bought a NVidia Titan Xp. Our software do not work on this graphics card. The software do not crash, it stop responding to any event. The software is always stuck in the middle of a glGenTexture c

Re: [osg-users] Read frame buffer back into main memory

2018-02-28 Thread Lionel Lagarde
Hi, Have a look to glReadPixel. The osg::Image class has a method to read the frame buffer back to its own memory. On 28/02/2018 19:05, Antoine Rennuit wrote: Hi all, I need to read the frame buffer back into the main memory. I know this will kill performance but I only need to do it once.

Re: [osg-users] problem setting texture min/mag filter

2018-02-19 Thread Lionel Lagarde
Hi, The half red half black pixels may come from some kind of anti-aliasing. Check your frame buffer settings. My 2 cents. On 19/02/2018 15:18, antiro black wrote: Hi, Thank you for response robertos, I've been playing around with the code the last few days and it seems like the filters a

Re: [osg-users] Strange behaviour - no explanation

2018-01-24 Thread Lionel Lagarde
Hi, The geometry state set is probably shared among several nodes. You should clone the state set before setting the polygon mode: if (geometry->getStateSet() && geometry->getStateSet()->getParents().size() > 1) { geometry->setStateSet(new osg::StateSet(*geometry->getStateSet())); } geometry

Re: [osg-users] ViewerBase::frame() method slow after changing the color of a geometry

2017-07-21 Thread Lionel Lagarde
If you use display lists, you have to tell OSG that it has to re-build it. If you use vertex arrays, colors->dirty() should be enough. On 21/07/2017 12:32, Gianni Ambrosio wrote: Thanks Lionel and Robert for the quick reply. I tried what Lionel suggested but in fact the geometry generation i

Re: [osg-users] ViewerBase::frame() method slow after changing the color of a geometry

2017-07-21 Thread Lionel Lagarde
I don't know about the double frame but the default for geometries (drawables in fact) is to use OpenGL display lists (depending on the OSG compilation). OpenGL display lists creation takes time. The dirtyDisplayList method forces OSG to re-create the OpenGL display list. The solution is to

Re: [osg-users] Test

2017-05-03 Thread Lionel Lagarde
OK. On 03/05/2017 10:42, Robert Osfield wrote: HI All, Just checking osg-users/forum is still up. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org __

Re: [osg-users] [osgPlugins] Offline conversion to dds without gc

2016-11-15 Thread Lionel Lagarde
Hi, Do you mean -quick ? Maybe the option has different names in the different version of the library. This option force the library to use a faster algorithm to choose the two key colors of each 4x4 group of pixels. I do not know the real impact of the option. I do not remember having per

Re: [osg-users] [osgPlugins] Offline conversion to dds without gc

2016-11-08 Thread Lionel Lagarde
Hi, have a look at NVidia Texture Tools (nvtt). Lionel On 08/11/2016 17:17, We See wrote: Hi, I try to develop a small tool for offline-conversion which converts openflight-files with rgb-textures into osgb-files with dss-textures. I resued the code of osgconv and have seen I need a graphi

Re: [osg-users] Support for sampler arrays

2016-03-22 Thread Lionel Lagarde
Hi, The OpenGL command used to update a sampler* uniform is glUniformi[fv]. Sampler* uniforms are int uniforms. An uniform of type 'array of INT' works (It works for me). On 22/03/2016 10:36, Sebastian Messerschmidt wrote: Hi Chris, Hi, Working on an app that is going to be doing a lot of wo

Re: [osg-users] Using a custom StateAttribute

2015-10-19 Thread Lionel Lagarde
Hi, An attribute is identified by a type (enum Type) and a member (int). The StateAttribute getters and setters have the member parameter defaulted to 0. I use some custom state attributes: - I use the type as an attribute class (i.e. MATERIAL for BRDF related parameters...) - I use the mem

Re: [osg-users] New serialization scheme

2015-03-23 Thread Lionel Lagarde
tween the old and the new interfaces Or I stop over-thinking it and create a new class with its own serializers when the class changes. Using a read file callback, I can upgrade the loaded scene graph if it contains old nodes. I think get it. Thanks. Lionel Lagarde. On 23/03/2015 12:33,

[osg-users] New serialization scheme

2015-03-23 Thread Lionel Lagarde
This structure has to be readable/writable by all the serializer classes. Maybe the user data of the node is the right place. Does someone has already faced a similar problem? If so, how you resolved it? I don't know well the new serialization scheme, maybe there is a bette

Re: [osg-users] Promoting Drawable from being subclassed from osg::Object to osg::Node

2014-05-14 Thread Lionel Lagarde
gmentation fault while trying to access to the bounding sphere member of the Bound helper class. User code have to be modified (or at least checked) in order to prevent that. Lionel. On 14/05/2014 15:04, Robert Osfield wrote: Hi Lionel, On 14 May 2014 10:59, Lionel Lagarde wrote: The cente

Re: [osg-users] Promoting Drawable from being subclassed from osg::Object to osg::Node

2014-05-14 Thread Lionel Lagarde
The center() method exists in the BoundingBox interface. With the Bound interface you provide, this code would throw a seg fault: og::Vec3 c = geometry->getBound().center(); In order to avoid any modification of user code, the center method (and all the methods defined in the BoundingBox and th

Re: [osg-users] Promoting Drawable from being subclassed from osg::Object to osg::Node

2014-05-13 Thread Lionel Lagarde
Hi, Wonderful. Our code is full of: if the object is a drawable then do something for the drawable else do something for the node For the getBound problem, I think there is no solution. The return type is not included in the function prototype. Lionel. On 13/05/2014 17:13, Robert

Re: [osg-users] Curious compiler behavior

2013-12-13 Thread Lionel Lagarde
v NICK wrote: Hi Lionel, this topic was discussed before as I can recall and there was a neat solution (with #ifdefs) posted to avoid the conflict. Have a look in the archive, can not remember the author Nick On Fri, Dec 13, 2013 at 1:41 PM, Lionel Lagarde mailto:lionel.laga...@oktal-s

Re: [osg-users] Curious compiler behavior

2013-12-13 Thread Lionel Lagarde
My problem looks like the osgDB::fstream / std::fstream conflict which was resolved using the /FORCE:MULTIPLE linker flag. Does anyone has more information on this ? On 12/12/2013 18:39, Lionel Lagarde wrote: It seems that osg80-osgd.dll contains the symbols of "scalar integer" (c

Re: [osg-users] Curious compiler behavior

2013-12-12 Thread Lionel Lagarde
It seems that osg80-osgd.dll contains the symbols of "scalar integer" (char, uchar, short, ushort, int, uint) specializations of the MixinVector. The vector and floating point specializations are not defined. On 12/12/2013 18:19, Lionel Lagarde wrote: Hi, I use Visual Express C++

[osg-users] Curious compiler behavior

2013-12-12 Thread Lionel Lagarde
Hi, I use Visual Express C++ 2010. The following code works very well: osg::FloatArray *array = ... (*array)[i] = 10.0; I decided to add integer support: osg::IntArray *array = ... (*array)[i] = 10; And the linker says: osgd.lib(osg80-osgd.dll) : error LNK2005: "public: int & __cdecl osg::Mix

Re: [osg-users] Preferred method for per-context uniforms

2013-10-23 Thread Lionel Lagarde
Hi, We have to manage some similar problems. We have different shaders and different uniforms in the same scene graph. Some nodes have a cull callback. During the cull traversal, the callback identify the current view/context and push the corresponding state set in the render graph, traverse

Re: [osg-users] questions about lightning(thunder)

2013-06-05 Thread Lionel Lagarde
Hi, I use textured axial billboard starting from the cloud layer to the ground to render lightnings. A short-lived light source is used to illuminate the surrounding objects. The light source use quadratic attenuation. On 05/06/2013 08:17, Kim JongBum wrote: Hi, guys is there some way to ren

Re: [osg-users] Any recent work on CIGI interfaces to OSG?

2013-05-29 Thread Lionel Lagarde
Hi, I work on an image generator based on OpenSceneGraph and driven by CIGI commands. Web site of the company: http://www.oktal-se.fr Section SE-FAST-IG. At first MPV was a source of inspiration. This is no longer the case now. It's been a few years since I look at MPV base code. Lionel

Re: [osg-users] crashing with paged LODs, line intersector on computeBound

2013-05-16 Thread Lionel Lagarde
Hi, Maybe your picking threads traverse the scene graph while the database pager or the incremental compile operation modify it. During the update traversal of the viewer, the no longer visible terrain tiles are removed from the scene graph and the just loaded tiles are merged with the scene

Re: [osg-users] [osg-submissions] Texture compilation using PixelBufferObject

2012-12-14 Thread Lionel Lagarde
;t end during my holidays ... By Lionel On 14/12/2012 15:07, Robert Osfield wrote: HI Lionel, On 14 December 2012 10:48, Lionel Lagarde <mailto:lionel.laga...@oktal-se.fr>> wrote: Hi Robert, osg::Image inherits from osg::BufferData. The BufferData cannot be unreferenced

Re: [osg-users] [osg-submissions] Texture compilation using PixelBufferObject

2012-12-14 Thread Lionel Lagarde
on). Multi-context doesn't work if "unref image data after apply" is true because the image is referenced only once by the texture and not one per context. On 14/12/2012 11:20, Robert Osfield wrote: Hi Lionel, On 14 December 2012 10:07, Lionel Lagarde <mailto:lionel.laga..

Re: [osg-users] [osg-submissions] Texture compilation using PixelBufferObject

2012-12-14 Thread Lionel Lagarde
Hi Robert, Proposal: new member: BufferData::_numUsers initialized to BufferData::getReferenceCount when the GL buffer object is created and filled In Texture:apply, decrement the _numUsers member of the Image and release the GL buffer object if the sum of the _numUsers of all the BufferDa

Re: [osg-users] Texture compilation using PixelBufferObject

2012-12-13 Thread Lionel Lagarde
pect this to happen right now. Is there an issue here? Robert. On 12 December 2012 14:32, Lionel Lagarde <mailto:lionel.laga...@oktal-se.fr>> wrote: Hi, Let's imagine this scenario: The database pager loads the file "x.osgb". This file cont

[osg-users] Texture compilation using PixelBufferObject

2012-12-12 Thread Lionel Lagarde
hould never be released. The counter should not be decremented. What do you think about this? I'm not sure all the usage cases are covered, especially if the buffer is a vertex buffer or an indices buffer. Lionel Lagarde ___

Re: [osg-users] kd tree ray tracing performance

2012-10-09 Thread Lionel Lagarde
O_o The tables look messy. reposting -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50502#50502 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo

Re: [osg-users] kd tree ray tracing performance

2012-10-08 Thread Lionel Lagarde
Hi, Here are some bench I have made few years ago (2008). Tests description: - scene 1: 200x200 grid (8 triangles, 40401 vertices), only one geometry - scene 2: small part of a real terrain (16x16 km), 1600+ geometries, quad tree shaped scene graph The benchmark application display the sc

[osg-users] Warning: Manipulator warning: eventTimeDelta = -0.004

2012-04-12 Thread Lionel Lagarde
Hi, When I use the FlightManipulator, I have a lot of warning messages: "Manipulator warning: eventTimeDelta = -0.004". The messages are displayed only using ON_DEMAND rendering. The GraphicsWindow has an event queue. The window related event (mouse move, .

[osg-users] Mail2Forum

2011-07-13 Thread Lionel Lagarde
Hi, I have a problem with the mail list. I use thunderbird to read/write the posts. I don't use the forum. I posted a reply to the question about setCenterByMousePointerIntersection by Joe Kilner. I received (in thunderbird) the corresponding mail. But in the forum, I can't see my reply. Act

Re: [osg-users] setCenterByMousePointerIntersection

2011-07-11 Thread Lionel Lagarde
Hi, In our application, I do (when a "center-on" event is sent) : osgGA::MatrixManipulator *mm = viewer->getCameraManipulator(); mm->setHomePosition(eye, center, up); osg::ref_ptr ea = new osgGA::GUIEventAdapter; mm->home(*e

Re: [osg-users] saved_animation.path

2009-02-16 Thread Lionel Lagarde
Sorry, I forgot the time (first) Lionel Lagarde wrote: x y z (camera's position) + x y z w (camera's orientation quaternion) sunitha sunagad wrote: -- Can anyone tell me what are the values that are getting recorded in saved_animation.path file after recor

Re: [osg-users] saved_animation.path

2009-02-16 Thread Lionel Lagarde
x y z (camera's position) + x y z w (camera's orientation quaternion) sunitha sunagad wrote: -- Can anyone tell me what are the values that are getting recorded in saved_animation.path file after recording I can see 8 values please let me know what are they...

[osg-users] Problem in FluidFrictionOperator

2009-01-23 Thread Lionel Lagarde
Hi Robert, the attached file show the problem. With the SVN version the particles get weird speed. With the revised version of FluidFrictionOperator.cpp, the problem disappear. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lis

Re: [osg-users] Delete order in osgViewer::Viewer

2009-01-20 Thread Lionel Lagarde
... The application which plants is based on 2.6 but I thought (apparently not) of having verified SVN sources. Rechecking ... Robert Osfield wrote: Hi Lionel, I believe this issue is now fixed. Which version of the OSG are you using? Robert. On Tue, Jan 20, 2009 at 8:45 AM, Lionel

[osg-users] Delete order in osgViewer::Viewer

2009-01-20 Thread Lionel Lagarde
Hi, We have a scenario editor that is able to create and destroy osgViewer::Viewer. When a Viewer is deleted, its graphic context is closed. All the GL objects used in this context are deleted. The osg::View destructor is called after the Viewer destructor (because osgViewer::Viewer inherits f

[osg-users] Question about FluidFrictionOperator

2008-12-03 Thread Lionel Lagarde
Hello, I think that I found a problem on osgParticle::FluidFrictionOperator::operate(Particle* P, double dt), I suppose that the current modular program is in relative reference frame. The method compute a force (Fr) from velocity of the particle which is in local space The force is then co

Re: [osg-users] msvc90 dependencies

2008-12-02 Thread Lionel Lagarde
Hi, C++ object/static library/dynamic library are not compatible across compilers because the standard does not define a mangling format. The C standard defines the way to name the variables and the functions in object files. C++ doesn't. So there is one mangling format per compiler. Gordon Tom

Re: [osg-users] DatabasePager question ...

2008-11-12 Thread Lionel Lagarde
Hi, the osgDB::DatabasePager discards a database request if its frameNumber is earlier than the current frameNumber. Your requestNodeFile method has to continuously call osgDB::requestNodeFile even if the tile has already been requested. Adrian Egli OpenSceneGraph (3D) wrote: Hi all , O

Re: [osg-users] Loose texture in ive after display the node

2008-11-07 Thread Lionel Lagarde
Hi, the texture used in your model has the unRefImageDataAfterApply flag set. The apply occurs in the first frame. You can turn off this flag in the Texture attribute. Eric ZAREMBA wrote: Hi,   I have a strange problem during .IVE saving. As you can see in the following,

Re: [osg-users] RenderBin understanding

2008-11-03 Thread Lionel Lagarde
Hi Peter, Peter Wraae Marino wrote: Hi Users,   trying to clarify some specs on the renderbin, perhaps someone could help:   what I'm assuming: -there are two default renderbins created at startup "RenderBin" and "DepthSortedBin" -"DepthSortedBin" is always render after "RenderB

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
I don't think that is a connection problem. libcurl download the file integrally in a stringstream. The stringstream is then given to to ive ReaderWriter. Serge Lages wrote: Hi all, Can't test myself currently but I'll try as soon as I can. About the error, are you behind proxies or somethi

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
infinite loop. The behavior is the same using a local file. Maybe my zlib doesn't work. Lionel Lagarde wrote: The ive plugin is built with zlib support. There is a problem in the uncompress loop. The earth.ive size is 14976 bytes. In the loop, the first read: strm.avail_in = fin.readsom

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
The ive plugin is built with zlib support. There is a problem in the uncompress loop. The earth.ive size is 14976 bytes. In the loop, the first read: strm.avail_in = fin.readsome((char*)in, CHUNK); reports me 12427 bytes read and the second 0 bytes. Continuing investigation. John Vidar Larr

Re: [osg-users] Test Paged database online

2008-10-28 Thread Lionel Lagarde
Hi Robert, osgviewer reports me: DataInputStream::readCharArray(): Failed to read char value. Do I need to do something to enable the zlib decompression ? Robert Osfield wrote: Hi All, Last night I uploaded a 547Mb paged database to openscenegraph.org. The .ive files are all generated using

Re: [osg-users] How to Monitor VideoMemory usage

2008-08-25 Thread Lionel Lagarde
try http://nuclearplayground.com/NuclearPlayground/MemStatus/content.php Jason Daly wrote: Bob Balfour wrote: I've used RivaTuner to monitor video memory usage on WinXP, but it doesn't do it on Vista (it says due to Vista's virtualization of video memory?). Does anyone know of a way to monito

Re: [osg-users] Paged simulation and culling performance drop

2008-06-27 Thread Lionel Lagarde
The requests queuing in the database pager didn't work. Robert Osfield wrote: On Thu, Jun 26, 2008 at 5:48 PM, Lionel Lagarde <[EMAIL PROTECTED]> wrote: It didn't work !!! What didn't work?? I've queued the database requests in

Re: [osg-users] Paged simulation and culling performance drop

2008-06-26 Thread Lionel Lagarde
It didn't work !!! I've queued the database requests in the requestNodeFile method. These requests are merged in the DatabasePager lists in the run method using a little lock (just the time of a pop). Continuing my investigations ... Lionel Lagarde wrote: I know that

Re: [osg-users] Paged simulation and culling performance drop

2008-06-26 Thread Lionel Lagarde
I know that I have to moving to the latest OSG but I can't do it for the moment. I will look at the SVN DatabasePager request method. Robert Osfield wrote: On Thu, Jun 26, 2008 at 4:20 PM, Lionel Lagarde <[EMAIL PROTECTED]> wrote: I'm using OSG 2.0. I agr

Re: [osg-users] Paged simulation and culling performance drop

2008-06-26 Thread Lionel Lagarde
yward cull costs are avoided completely. Robert. On Thu, Jun 26, 2008 at 3:43 PM, Lionel Lagarde <[EMAIL PROTECTED]> wrote: Hi, I'm running a simulation on a huge paged database. It works fine, the frame rate is constant, and the terrain is paged correctly. But sometimes, the cull

[osg-users] Paged simulation and culling performance drop

2008-06-26 Thread Lionel Lagarde
Hi, I'm running a simulation on a huge paged database. It works fine, the frame rate is constant, and the terrain is paged correctly. But sometimes, the culling pass takes ages to complete. Most of the time, it takes 2/3 ms to complete, but it could take up to 40/60 ms to build the render g

Re: [osg-users] Unable to find plugin

2008-06-06 Thread Lionel Lagarde
Everything looks ok regarding freetype now. I've reinstalled SP1 patch and the plugin load correctly in debug and release builds. Unfortunately I can't use VC 2005 SP1 because it means upgrade all the developpers PCs are re-validate all our OSG based softs. So I go back to VC 2005 without SP1

Re: [osg-users] Unable to find plugin

2008-06-05 Thread Lionel Lagarde
oj is configured for dll multithread ? 2008/6/5 Lionel Lagarde <[EMAIL PROTECTED]>: Hi, I have a similar problem. The debug build of OSG is unable to load the osgdb_freetype plugin. The release build has no problem with this plugin. I'm using visual expre

Re: [osg-users] Unable to find plugin

2008-06-05 Thread Lionel Lagarde
Hi, I have a similar problem. The debug build of OSG is unable to load the osgdb_freetype plugin. The release build has no problem with this plugin. I'm using visual express 2005 SP1. The dependency walker tool from microsoft says that msvcp80d.dll and msvcp80d.dll are missing. I don't kno

[osg-users] PrecipitationEffect and antialiasing

2008-03-13 Thread Lionel Lagarde
Hi, I'm adding precipitations in our application and I'm very surprised by the performance differences when I use different antialiasing settings. Configuration: Core 2 duo 6400 / GeForce 7900 GTX I run the command "osgprecipitation cow.osg" No AA: 587 Hz (initial view) 2380 Hz (viewed from ab

[osg-users] RW ive exceptions

2008-01-24 Thread Lionel Lagarde
Hi, My application is an helicopter simulator on huge terrain database. The terrain is paged. OSG and the application are compiled with VC 2005 express. On the development machines, the application works fine. On the simulation machines (where VC express is not installed, only vcredist_x86 is

Re: [osg-users] Asynchronous file loading via DatabasePager questions

2007-12-18 Thread Lionel Lagarde
Tim Moore wrote: The other thing to keep in mind is that readNodeFile and friends aren't necessarily thread safe, but you don't have access to the lock that the pager uses to serialize access to those functions. Either you stop doing any file loading calls from your main thread once the pager

Re: [osg-users] slow loading with DatabasePager and a model library

2007-11-13 Thread Lionel Lagarde
The SharedStateManager modify the newly loaded database. Move the SharedStateManager calls in the DatabasePager thread can cause multi-threading issues. It can be resolved using the ReadResult status: share the textures only on FILE_LOADED_FROM_CACHE loading results. But the loaded database can c

Re: [osg-users] slow loading with DatabasePager and a model library

2007-11-12 Thread Lionel Lagarde
Hi, I modified DatabasePager.cpp to avoid recompilation of the already compiled drawables and textures. Once I've finished cleaning the file, I'll send it to submission. For StateSet sharing, I don't use the SharedStateManager because it process the loaded database after its compilation and it i

[osg-users] State problem

2007-10-30 Thread Lionel Lagarde
Hi, I'm running osgviewer (2.0 and 2.2) with the attached OSG file. The file is composed of 4 drawables. Each drawable defines its own StateSet. The last drawable material is: Material {   DataVariance UNSPECIFIED   ColorMode OFF   ambientColor 1 1 1 1   diffuseColor 1 0 0 1   specularColor

[osg-users] DatabasePager - Display list compilation

2007-10-02 Thread Lionel Lagarde
Hi, When the database pager is requested to compile the paged drawables, (in the DatabasePager::compileGLObjects method) it calls the compileGLObjects method of the drawable contained in the DataToCompile map. This method delete the display list of the drawable if it already exists. In the case

Re: [osg-users] osgViewer - embedded - slave cameras

2007-07-27 Thread Lionel Lagarde
camera on each GraphicsWindow, without these Operations added no rendering will be done for these Cameras. Robert. On 7/27/07, Lionel Lagarde <[EMAIL PROTECTED]> wrote: Hi, I have some code that has to handle classic osgViewer::Viewer and embedded osgViewer::Viewer. We have also a predraw,

[osg-users] osgViewer - embedded - slave cameras

2007-07-27 Thread Lionel Lagarde
Hi, I have some code that has to handle classic osgViewer::Viewer and embedded osgViewer::Viewer. We have also a predraw, a postdraw and a hud slave camera. I'm trying to have almost the same code path in the 2 modes (embedded or not). For the moment, it looks like: if (embedded) { viewer