Re: [osg-users] [forum] Mailing list problems

2015-03-19 Thread Sebastian Messerschmidt
Hi Robert, 

I've double checked and I simply don't get any emails from the list. 
I also sent a new request to be added to the list. Could you check if you 
received anything? Might re-adding me help?




robertosfield wrote:
 Hi Sabastian,
 
 
 I haven't seen any problems with the mailing list - posts have been coming 
 and going all week, I haven't seen any admin posts reporting problems either.
 
 
 I have just checked the admin pages to see if you address is subscribed OK 
 and everything looks correct for you, there outwardly doesn't seem to be a 
 reason why you'd not be receiving mail.
 
 
 Could a spam filter be eating up all the traffic at your end?
 
 
 Robert.
 
 


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63168#63168





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [forum] Mailing list problems

2015-03-19 Thread Robert Osfield
Hi Sebastian,

On 19 March 2015 at 09:17, Sebastian Messerschmidt 
sebastian.messerschm...@gmx.de wrote:

 I've double checked and I simply don't get any emails from the list.
 I also sent a new request to be added to the list. Could you check if you
 received anything? Might re-adding me help?


So how are you getting my replies to you, and replying to mine?

I have un-subscribed you and then added you back in.  I rather doubt this
will affect things though.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [forum] Mailing list problems

2015-03-19 Thread Sebastian Messerschmidt
Hi Robert

I'm using the forum to reply and read the messages. 

Maybe the problem is gone by tomorrow, else I'll simply re-register with a 
different email-account

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63171#63171





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to convert osg::Node to osg::Matrix Transformation? It is returning NULL

2015-03-19 Thread Voerman, L.
Hi Goutham,
In the code you attach both models to the same matrixtransform, so adding a
rotation will rotate both models. To rotate only the cow it will need it's
own matrixtransform: change the line
mt-addChild( model.get() );
to
root-addChild( model.get() );
and the chessna model will stop rotating.
Regards, Laurens.


On Thu, Mar 19, 2015 at 5:41 AM, Goutham Mudide mudidegout...@gmail.com
wrote:

 Hi Sir,

 Thanks for the reply sir am pleased with this thanks a lot..
 sir i had a doubt on how to change position of an object in scene
 dynamically which doesn't have MatrixTransformation as root.In my case i
 have loaded a model in to the scene where it generated  tree. I pick a
 particular object dynamically from scene which is one of the children's of
 MatixTransform,Here my question is can i have way to Move this perticular
 geode in scene..

 Thank you!

 Cheers,
 Goutham

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=63163#63163





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [forum] Mailing list problems

2015-03-19 Thread Sebastian Messerschmidt
Hi,

Is anyone else experiencing problems with the mailing list? 'm haven't been 
receiving any mails for the osg-user/submissions in a week. 
Could someone check if I'm still on the list?



Thank you!

Cheers,
Sebastian

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63165#63165





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [forum] Mailing list problems

2015-03-19 Thread Sebastian Messerschmidt

robertosfield wrote:
 Hi Sebastian,
 
 On 19 March 2015 at 09:17, Sebastian Messerschmidt  () wrote:
 
  I've double checked and I simply don't get any emails from the list.
  I also sent a new request to be added to the list. Could you check if you 
  received anything? Might re-adding me help?
 
 
 So how are you getting my replies to you, and replying to mine?
 
 By using the forum ...
 
 I have un-subscribed you and then added you back in.  I rather doubt this 
 will affect things though.
 
 Didn't change anything. I'm patient and will wait until tomorrow
 
 Robert.
 
 
  
 
  --
 Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63170#63170





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to convert osg::Node to osg::Matrix Transformation? It is returning NULL

2015-03-19 Thread Robert Osfield
HI Goutham,

Have a look at the osganimation example, this illustrates loading multiple
models and placing each one under it's own MatrixTransform.

Robert.

On 19 March 2015 at 04:41, Goutham Mudide mudidegout...@gmail.com wrote:

 Hi Sir,

 Thanks for the reply sir am pleased with this thanks a lot..
 sir i had a doubt on how to change position of an object in scene
 dynamically which doesn't have MatrixTransformation as root.In my case i
 have loaded a model in to the scene where it generated  tree. I pick a
 particular object dynamically from scene which is one of the children's of
 MatixTransform,Here my question is can i have way to Move this perticular
 geode in scene..

 Thank you!

 Cheers,
 Goutham

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=63163#63163





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem with clearing the stencil buffer

2015-03-19 Thread Şan Güneş
Hello everyone, I'm trying to use stencils and I'm not sure what I'm
missing. Basically I have two quads in my scene. I want the quad two to set
the stencil buffer to 1, and I want the quad one to be visible only where
the stencil buffer is not 1.

So far I am getting the result which I want if I don't clear the stencil
buffer. Of course in that case when I rotate the scene using the viewer,
the stencil buffer gets painted to 1's(because of the quad two) and I don't
see the quad one even on places where quad two is not positioned anymore.

However when I clean the stencil buffer(see below), I don't get the result
that I want.

 viewer-getCamera()-setClearMask(GL_COLOR_BUFFER_BIT |
 GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);

In this case both of the quads are visible. I'm suspecting that the stencil
buffer gets cleared before the stencil check is done.

Here is a part of my code where I set the stencils.

 osg::ref_ptrosg::PositionAttitudeTransform transform_one = new
 osg::PositionAttitudeTransform();
 osg::ref_ptrosg::PositionAttitudeTransform transform_two = new
 osg::PositionAttitudeTransform();
 transform_one-addChild(createQuad());
 transform_two-addChild(createQuad());
 transform_two-setScale(osg::Vec3(0.5, 0.5, 0.5));
 transform_two-setPosition(osg::Vec3(0.25, 0.2, 0.25));

 // --- Begin stencil related stuff
 osg::ref_ptrosg::StateSet ss_one = transform_one-getOrCreateStateSet();
 osg::ref_ptrosg::StateSet ss_two = transform_two-getOrCreateStateSet();
 osg::ref_ptrosg::Stencil stencil_one = new osg::Stencil();
 osg::ref_ptrosg::Stencil stencil_two = new osg::Stencil();
 stencil_two-setFunction(osg::Stencil::ALWAYS, 1, ~0u);
 stencil_two-setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP,
 osg::Stencil::REPLACE);
 stencil_one-setFunction(osg::Stencil::NOTEQUAL, 1, ~0u);
 stencil_one-setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP,
 osg::Stencil::KEEP);
 ss_one-setMode(GL_LIGHTING, osg::StateAttribute::OFF);
 ss_two-setMode(GL_LIGHTING, osg::StateAttribute::OFF);
 osg::ref_ptrosg::ColorMask cm_one = new osg::ColorMask();

// I play with the parameters below to see the position of the quad two

cm_one-setMask(false, false, false, false);
 ss_two-setAttribute(cm_one);
 ss_two-setAttributeAndModes(stencil_two, osg::StateAttribute::ON |
 osg::StateAttribute::OVERRIDE);
 ss_one-setAttributeAndModes(stencil_one, osg::StateAttribute::ON |
 osg::StateAttribute::OVERRIDE);


Any help would be appreciated, I am sure I'm missing something really basic
:)
Thanks
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem with clearing the stencil buffer

2015-03-19 Thread Şan Güneş
Hello everyone, I'm trying to use stencils and I'm not sure what I'm
missing. Basically I have two quads in my scene. I want the quad two to set
the stencil buffer to 1, and I want the quad one to be visible only where
the stencil buffer is not 1.

So far I am getting the result which I want if I don't clear the stencil
buffer. Of course in that case when I rotate the scene using the viewer,
the stencil buffer gets painted to 1's(because of the quad two) and I don't
see the quad one even on places where quad two is not positioned anymore.

However when I clean the stencil buffer(see below), I don't get the result
that I want.

 viewer-getCamera()-setClearMask(GL_COLOR_BUFFER_BIT |
 GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);

In this case both of the quads are visible. I'm suspecting that the stencil
buffer gets cleared before the stencil check is done.

Here is a part of my code where I set the stencils.

 osg::ref_ptrosg::PositionAttitudeTransform transform_one = new
 osg::PositionAttitudeTransform();
 osg::ref_ptrosg::PositionAttitudeTransform transform_two = new
 osg::PositionAttitudeTransform();
 transform_one-addChild(createQuad());
 transform_two-addChild(createQuad());
 transform_two-setScale(osg::Vec3(0.5, 0.5, 0.5));
 transform_two-setPosition(osg::Vec3(0.25, 0.2, 0.25));

 // --- Begin stencil related stuff
 osg::ref_ptrosg::StateSet ss_one = transform_one-getOrCreateStateSet();
 osg::ref_ptrosg::StateSet ss_two = transform_two-getOrCreateStateSet();
 osg::ref_ptrosg::Stencil stencil_one = new osg::Stencil();
 osg::ref_ptrosg::Stencil stencil_two = new osg::Stencil();
 stencil_two-setFunction(osg::Stencil::ALWAYS, 1, ~0u);
 stencil_two-setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP,
 osg::Stencil::REPLACE);
 stencil_one-setFunction(osg::Stencil::NOTEQUAL, 1, ~0u);
 stencil_one-setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP,
 osg::Stencil::KEEP);
 ss_one-setMode(GL_LIGHTING, osg::StateAttribute::OFF);
 ss_two-setMode(GL_LIGHTING, osg::StateAttribute::OFF);
 osg::ref_ptrosg::ColorMask cm_one = new osg::ColorMask();

// I play with the parameters below to see the position of the quad two

cm_one-setMask(false, false, false, false);
 ss_two-setAttribute(cm_one);
 ss_two-setAttributeAndModes(stencil_two, osg::StateAttribute::ON |
 osg::StateAttribute::OVERRIDE);
 ss_one-setAttributeAndModes(stencil_one, osg::StateAttribute::ON |
 osg::StateAttribute::OVERRIDE);


Any help would be appreciated, I am sure I'm missing something really basic
:)
Thanks
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org