Re: [osg-users] Mipmapping for downsampling

2012-09-27 Thread Sebastian Messerschmidt
Okay, one last try: 1. Have you tried showing the last mip-level (i.e. avg. lum) in a separate window so you can check the value? 2. Have you double checked your actual tone-mapping? (say by providing the average luminance via uniform)? I'm asking this rather silly questions, because last

Re: [osg-users] FBO and mipmaps

2012-09-27 Thread Sergey Polischuk
Hi in camera interfaces there are attach method which have parameter to specify either to generate mipmaps or not for texture rendertarget attachmant, it does not behave correctly? Cheers, Sergey. 27.09.2012, 01:55, Kenzo Lespagnol kenzo.lespag...@cm-labs.com: Hi Aurelien, I'm also using

Re: [osg-users] osg, macosx-x86_64 imageio plugin color byte swap problem

2012-09-27 Thread Thomas Hogarth
Hi Guys Sorry to raise this again, but I'm currently having the same issue. Basically I am opening files, doing some bits and bobs to them and reexporting. Just for completeness I do alter the texture stateattributes, but not in a way I would think would matter. Here's what I'm doing Code:

Re: [osg-users] osg, macosx-x86_64 imageio plugin color byte swap problem

2012-09-27 Thread Thomas Hogarth
Oops Sorry, the last attached file had a bad png that the plugin can't load. I copied over it with a backup after the colors got swapped and forgot to run it through gimp which seems to sort it. Also I just tested embedding the image into the osgb file, which worked fine. Thanks Tom

[osg-users] Warning: detected OpenGL error 'invalid enumerant' at After Renderer::compile

2012-09-27 Thread Nav Joseph
On viewing a map.ive file (which I converted from .dem to .ive using osgdem.exe) with osgviewer, the map is being shown with its elevations, but is completely white. I can't see the raster map which is supposed to be draped on it. This is in Linux (osg built with the latest git clone). On

[osg-users] Warning: detected OpenGL error 'invalid enumerant' at After Renderer::compile

2012-09-27 Thread Nav Joseph
On viewing a map.ive file (which I converted from .dem to .ive using osgdem.exe) with osgviewer, the map is being shown with its elevations, but is completely white. I can't see the raster map which is supposed to be draped on it. This is in Linux (osg built with the latest git clone). On

Re: [osg-users] Polytope - Intersections sorted by distance of localIntersectionPoint and the reference plane

2012-09-27 Thread Ron Mayer
Hi again, After thinking about it here is what I think the answer is. Let's say our polytope intersects two circles (or rectangles) A and B, each at two points A1, A2 and B1, B2 The center point of A1 and A2 is computed, denote by centerA12 The center point of B1 and B2 is computed, denote by

Re: [osg-users] Warning: detected OpenGL error 'invalid enumerant' at After Renderer::compile

2012-09-27 Thread Chris Hanson
Update your gfx driver and see what happens. Perhaps you map file is built using an OGL feature your current driver doesn't support. Maybe NPOT textures or something? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting

Re: [osg-users] Qt crashes on key press

2012-09-27 Thread Magnus Kessler
On Wednesday 26 Sep 2012 11:33:44 Max Sergeev wrote: Allright, I think I've got another, more global question: is there a way to make OSG ignore all keypresses, all keyboard events? Just like this, so it would not react on S, W or even Escape keypresses You can stop a Viewer from exiting on

Re: [osg-users] osg, macosx-x86_64 imageio plugin color byte swap problem

2012-09-27 Thread Thomas Hogarth
Hi Again So I've done some more digging and seems I'm hitting a case they may be known to not work. So in the function CreateCGImageFromOSGData under the case for GL_BGRA I am entering the else of the if statement. if(GL_UNSIGNED_INT_8_8_8_8_REV == osg_image.getDataType()). In there is this

Re: [osg-users] FBO and mipmaps

2012-09-27 Thread Kenzo Lespagnol
Hi Sergey, When I attach a texture to the camera should I specify also the number of desired mipmap levels? Code: slaveCameraLogAveragedLum-attach(osg::Camera::COLOR_BUFFER0, logAveragedLumTexture.get(), numMipMap, 0, /*mipmap*/true); In the documentation it is said The level parameter

[osg-users] Bug in Qt thread integration

2012-09-27 Thread Chris Long
Hi, We have a large app that uses Qt for its 2D UI and OSG for 3D rendering and UI. So it seemed like a good idea to turn on the Qt-OpenThreads integration by enabling BUILD_OPENTHREADS_WITH_QT. However, I discovered that OpenThreads::Thread::CurrentThread() (in

Re: [osg-users] FBO and mipmaps

2012-09-27 Thread Sergey Polischuk
Hi This parameter allows you to directly attach specified mipmap level of texture to fbo. If you just need to render to texture and let it generate mipmaps you should attach level 0. You can set desired number of generated mipmap levels by logAveragedLumTexture-setNumMipmapLevels(numLevels).

Re: [osg-users] Bug in Qt thread integration

2012-09-27 Thread Aurelien Albert
Hi, I'm surprised that QThread::currentThread() can return something else than a QThread instance. But if this is really the case, the following should solve the issue : Code: QThread* pQThread = dynamic_cast QThread* (QThread::currentThread()); if (pQThread != NULL) { QtThreadPrivateData*

Re: [osg-users] How to ignore keyboard events

2012-09-27 Thread Max Sergeev
Magnus Kessler wrote: On Wednesday 26 Sep 2012 11:33:44 Max Sergeev wrote: You can stop a Viewer from exiting on Escape by calling viewer.setKeyEventSetsDone(0); on it. The osgvnc example is using this, for instance. See the ViewerBase documentation for more information about this.