Hi,
In fact QThread::currentThread returns a QThread.
maybe you want to use qobject_cast instead of other casts, it is has some other
advantages
(http://lists.qt.nokia.com/pipermail/qt-interest/2010-October/028327.html).
Cheers,
Torben
--
Read this topic online here:
http://fo
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
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
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).
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
src/OpenThreads/qt/QtThread.c
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
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
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
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
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 ce
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 win
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 win
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
-
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:
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" :
> Hi Aurelien,
>
> I'm also using FBO and mipmaps and I wo
15 matches
Mail list logo