Hi,
in our application we just created an user interface for setting up
osg::Uniform data on our nodes for 'artist usage' (setting shader input values
like colors or textures).
Now I encountered that the uniform name must not be changed which is from a
artist user perspective quite
Hi Johannes,
A Uniform is not meant to change it's name or type through the life of an
application as the shaders that they are associated with will also normally
be invariant through the lifetime of the application.
If you want a Uniform to have a different name or type it's essentially now
a
Hi folks,
I have a camera responsible for updating some texture by rendering to it.
What is the preferred way/callback to let the camera run only every
10th frame or so.
I know I can use the the nodevisitor to get the framenumber, but I'm
puzzled which callback to use to skip the camera all
Hi Sebastian,
I struggled with the same problem. The way how I resolved this was by
keeping reference to the camera and working with the NodeMask (the camera
was turned on at each N-th frame, otherwise was off). And the framebuffer
was kept this way
Hope this helps
Nick
On Tue, Dec 3, 2013 at
Hi Sebastian,
You could use an osg::Sequence node above the RTT osg::Camera that makes
sure it's only traversed are certainly times, or use a custom cull callack
attached to an osg::Group that decorates your RTT osg::Camera and decides
whether to traverse or not to the interval you want.
Robert.
Hi All,
OSG are fantastic but sometimes is frustrating to struggle with them.
I have a crash in my application when I remove a view from a CompositeViewer.
The crash happens when I move the mouse over the CompsiteViewer after removing
a view.
Basically at a certain point I call:
Here is the code:
Code:
class ViewerWidget : public osgQt::GLWidget, public osgViewer::CompositeViewer
{
Q_OBJECT
public:
ViewerWidget(QWidget* iParent = 0, const QGLWidget* iShareWidget = 0,
Qt::WindowFlags iFlags = 0)
: osgQt::GLWidget(iParent, iShareWidget, iFlags)
,
Hello,
I have successfully implemented an osgWidget callback with the type
osgWidget::EVENT_MOUSE_PUSH that works every time I click down the mouse. If I
hold down the mouse button, the callback only gets called once (at the time of
the initial mouse click). This all makes sense, but is it
Hi Ethan,
Hello,
I have successfully implemented an osgWidget callback with the type
osgWidget::EVENT_MOUSE_PUSH that works every time I click down the mouse. If I
hold down the mouse button, the callback only gets called once (at the time of
the initial mouse click). This all makes sense,
Sorry Ethan,
I over read that you are using osgWidget. But you might use the same
mechanism. Maybe some osgWidget expert can tell you if there is some
FRAME like event that you can use to implement the idea below.
Hi Ethan,
Hello,
I have successfully implemented an osgWidget callback with
10 matches
Mail list logo