if you need to draw anything on the center of the screen in front of
something else, then your problem is to create an ortho camera and have
your geometry there - something like HUD. The osghud example shows how to
do this. Just for a test, you can use the createHUD() function from that
sample to c
Hi Antoine,
You can just do your glReadPixels(..) or osg::Image::readPixels(..) in
your own Camera::DrawCallback that you attach as a post draw callback
to your camera.
Robert.
On 2 March 2018 at 16:12, Antoine Rennuit wrote:
> Hi all,
>
> Hum, it seems my case is a bit more complex than expect
Hi Sebastian,
On 2 March 2018 at 15:44, Sebastian Schmidt wrote:
> Hi, i have a similar problem and dont want to create a new thread.
>
> Unfortunately i couldnt fix the problem with these solutions here.
It's a different problem then, so worthy of it's own thread. It'll be
a different problem
On 2 March 2018 at 12:43, Ali Ozdin wrote:
> Any idea?
This is an osgEarth question so only users/developers of osgEarth will
be able to provide an answer. Many of the osgEarh community are here
in the main osg-users community as well but perhaps less active on
osgEarth topics than they would be
Hi all,
Hum, it seems my case is a bit more complex than expected. The camera I want to
read the buffer from is a custom created camera:
Code:
// Curvatures camera.
m_curvaturesCamera = new osg::Camera();
m_curvaturesCamera->setClearMask(GL_DEPTH_BUFFER_BIT); // The camera only
cle
Hi, i have a similar problem and dont want to create a new thread.
Unfortunately i couldnt fix the problem with these solutions here.
What you can see is the back of a plane with enabled front (transparency) or
back (black/no lightning) face culling.[/img]
OSG Version:
I could not relate the example with my question. I am using osgEarth.
Can you be more expressive what causes this?
Thanks,
Trajce Nikolov NICK wrote:
> Hi Ali,
>
> have a look at the osghud example from the osg repo
>
>
> On Fri, Mar 2, 2018 at 1:44 PM, Ali Ozdin < ()> wrote:
>
> > Hi,
> >
Hi Ali,
have a look at the osghud example from the osg repo
On Fri, Mar 2, 2018 at 1:44 PM, Ali Ozdin wrote:
> Hi,
>
> I drew an osg Node and I want to put it on the center of the screen like
> any labelControl. How can I do that? I put a sample code below.
>
> If I change the line from
>
> Cod
Hi,
I drew an osg Node and I want to put it on the center of the screen like any
labelControl. How can I do that? I put a sample code below.
If I change the line from
Code:
viewer.setSceneData( mainGroup );
to
Code:
viewer.setSceneData( nn.get() );
and remove these two lines
Code:
mani
Any idea?
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72997#72997
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph
Hi Sebastian,
Geode {...
Geometry { ...
StateSet { ...
GL_CULL_FACE ON
Material { }
CullFace {
Hi,
What is the correct syntax to enable front or backface culling in an osg file?
For example:
Geode {...
Geometry { ...
StateSet { ...
GL_CULL_FACE ON
...
12 matches
Mail list logo