Hi Eric,
I have a camera drawback and have some legacy OpenGL code that needs
to know the size of the viewport. I've tried various combinations of
Viewer-GetCamera() in the main. And the callback class does not seem
to have anything that can get to the viewport.
I suppose it did not work
Are you doing this in the same thread ?
You might want to post more of the code your using, to give folks a chance
to see what may at issue
__
Gordon Tomlinson
Email : [EMAIL PROTECTED]
Website : www.vis-sim.com
Hi,
I am new to osg, so I apologise if this question seems trivial. I have
looked through the examples and documentation with no luck.
I am using a composite viewer, and have two views.
I want to be able to let the user disable and enable one of the views
using the keyboard keys.
I have
Hi all
On 5/29/08, Paul Martz [EMAIL PROTECTED] wrote:
Hi Robert -- Current head builds fine on Mac OS X 10.5, cmake 2.4.8 building
gcc makefiles.
On WinXP SP3, cmake 2.6 building VS8 sln/vcproj files, I get a cmake warning
during configuration. See attached warning dialog screenshot.
Hi,
I just tried the:
osg::DisplaySettings::instance()-setNumMultiSamples( 4 );
and didn't get it to work either at first try. I found out that is must be
called right after
osg::ref_ptrosgViewer::Viewer viewer = new osgViewer::Viewer;
then it worked just fine..
would have been nice with a
HI Paul,
VPB is built around working on earth data, hence the default to WGS84.
You can override the size of the spheriod via --radius-equator value
and --radius-polar value, a recent bug fix to VPB fixed this
functionality so it should work now. It should also be possible to
set the coordinate
Hi Jason,
In the SVN version of the OSG there is a catch for this.
FYI, the PgConfig support works from 2.4.7 on my system so you are
possible just a bit unlucky.
I will putting out a 2.5.1 release today once I've done some bug fixing work.
Robert.
On Fri, May 30, 2008 at 12:23 AM, Jason Daly
Hi Siddharth,
I'm not clear on what you actually want to do. Do you want to
rendering using the OSG, or just use the OSG purely as a data
structure?
Robert.
On Fri, May 30, 2008 at 4:22 AM, Sid [EMAIL PROTECTED] wrote:
Hi,
Is there any way, I could load an osg model, use some of the osg api
Hi Eric,
To get he screen resolution you need to the
osg::GraphicsContext::WindowSystemInterface and query the
getScreenResolution methods. Have a look at the osgcamera example for
guidance.
Robert.
On Thu, May 29, 2008 at 9:17 PM, eheft [EMAIL PROTECTED] wrote:
I have a camera drawback and
Hi Juan,
You need to stop threading before you remove or add views to a
CompositeViewer. i.e.
viewer.stopThreading();
viewer.addView(view);
viewer.startThreading();
The other thing you can do is toggle the cameras associated with the
view off by setting their NodeMask to
Sent yesterday, but never got through...
-- Forwarded message --
From: Robert Osfield [EMAIL PROTECTED]
Date: Thu, May 29, 2008 at 9:04 AM
Subject: Re: [osg-users] cmake 2.6 issue, latest svn head
To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
Hi Paul,
The warning
Hi Leeten,
Full screen anti-aliasing is different the line and polygon smooth
modes, for these you just do stateset-setMode(GL_LINE_SMOOTH,
osg::StateAttribute::ON); etc.
As for full screen anti-aliasing, the advice given so far won't help
you, as it only works for osgViewer based apps that use
Hi Yefei,
I just noticed your post. Robert told you everything. You may try
duplicating of wglMakeCurrent.
But I doubt this is the same issue if Producer really runs in SingleThreaded
mode. You may check this with VS Debugger. See menu Debug / Windows /
Threads panel. SingleThreaded app
Hi Robert,
See my comments below:
Robert Osfield wrote:
Hi John,
Perhaps a Terrain::init() or update() method would be appropriate -
one that goes through all the tiles registered with
the terrain and calls init() on them.
As for 16 seconds, this is looong time. I am only seeing around
Hi,
I am trying to add vertex attributes to my shader program and I am
having a crash when I reload the geometry with vertex attributes.
Now I am looking into the source and came across the func
osg::State::disableVertexAttribPointersAboveAndIncluding(). Looking at
the func name I would
Hi,
I want to render to a floating point buffer, and I set things up like this:
tex-setInternalFormat( GL_LUMINANCE16F_ARB );
tex-setSourceFormat( GL_RED );
tex-setSourceType( GL_FLOAT );
camera-setRenderTargetImplementation( osg::Camera::FRAME_BUFFER_OBJECT );
camera-attach(
Hi Philip,
I think Jean-Sébastien's suggestion of setting cmake_policy CMP0005 to
OLD is the best option here because we want compatibility with CMake
2.4.x.
I'll send it as a submission in a minute.
J-S
--
__
Jean-Sebastien Guay
Paul - Thanks! That fixed the problem.
Can you explain why this was needed?
/Paul Martz wrote:
Try forcing SingleThreaded, either in your app by calling
Viewer::setThreadModel, or with the env var OSG_THREADING=SingleThreaded.
-Paul /
___
Hi Viggo,
When performance drops like this it's because you've dropped onto a
software fallback path in the OpenGL driver. Exactly what formats are
software vs hardware depends upon the hardware and OpenGL drivers.
You'll need to check with your hardware vendors specs to see what will
be
Ok, that make sense.
It happens every time I render with a floating point texture.
The fall in framerate does not happen when I run the OSG multi render target
example using HDR. My code does however use additive blending toward the
floating point texture so I bet that is what cause it to fall
On Fri, May 30, 2008 at 1:44 PM, Mike Greene [EMAIL PROTECTED] wrote:
Paul,
The program is pretty large with lots of dependencies, so I'm not sure I
can attach it here:
By SVN head, do you mean using OSG 2.4 instead of 2.3.7?
Oh I might guess that Paul might have have SVN head, *not* either
Robert Osfield wrote:
The new code is in OpenSceneGraph/CMakeLists.txt is:
#use pkg-config to find various modues
FIND_PACKAGE(PkgConfig)
IF(PKG_CONFIG_FOUND)
...
Yes, as I said, that code is in the version I have.
This should prevent problems. Could you please post problems you get
Hi Jason,
On Fri, May 30, 2008 at 6:59 PM, Jason Daly [EMAIL PROTECTED] wrote:
Robert Osfield wrote:
The new code is in OpenSceneGraph/CMakeLists.txt is:
#use pkg-config to find various modues
FIND_PACKAGE(PkgConfig)
IF(PKG_CONFIG_FOUND)
...
Yes, as I said, that code is in the version
Hi Jason,
I have introduced the follow:
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
STRGREATER 2.4.5)
FIND_PACKAGE(PkgConfig)
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
STRGREATER 2.4.5)
Hopefully this will fix your outdated
Hi All,
I've just tagged the OpenSceneGraph-2.5.1 developer release which can
be downloaded from:
http://www.openscenegraph.org/projects/osg/wiki/Downloads/DeveloperReleases
* OpenSceneGraph-2.5.1, released on 30th May 2008.
OpenSceneGraph-2.5.1 introduces a revamped database pager that
Hi, Justin,
Thanks for the info. Yes, I think OSG_THREADING is used by the
newer osgViewer, which alternatively takes the option --SingleThreaded
or --CullDrawThreadPerContext, etc. to switching between threading modes.
On the other hand, the older Producer based osgProducerViewer does use
Robert Osfield wrote:
Hi Jason,
I have introduced the follow:
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
STRGREATER 2.4.5)
FIND_PACKAGE(PkgConfig)
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
STRGREATER 2.4.5)
Hopefully this
I've recently been working on upgrading code from VC7 to VC9, and have
run into all kinds of fun issues. The most significant problem/pain has
been the ridiculously slow debugging introduced when compiling with
iterator debugging (default behavior of VC8/VC9). I've waded through
that mess,
Hello Steve,
If you don’t want to be bored by the details, it basically says that VC8
VC9 have a bug when Iterator Debugging is turned off with regards to
iterator copying, and that Microsoft doesn’t intend to address it until
VC10. In my specific case, that bug causes an assertion at the
Robert Osfield wrote:
I could easily do that on one workstation, yes. It's more of an issue when
you're dealing with a lab of several dozen workstations. This is why we pay
to run Red Hat Enterprise.
Pay for out of date tools... do you get upgrades included?
Of course, in fact, we
Robert Osfield wrote:
Hi Jason,
I have introduced the follow:
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
STRGREATER 2.4.5)
FIND_PACKAGE(PkgConfig)
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
STRGREATER 2.4.5)
Hopefully this
Has anyone done a Debug build of the VPB svn head on Windows using cmake 2.6
and VS8? I am getting a slew of unresolved symbols from osgTerrain and
osgDB. For example, here's output from an osgdem link attempt:
1osgdem.obj : error LNK2019: unresolved external symbol
__declspec(dllimport) public:
32 matches
Mail list logo