[osg-users] how to use unique color to pick object?

2012-08-30 Thread wh_xiexing
Dear friends: in openGL programming . there is a method to pick the object from the scene.rendering the scene in the back buffer, every object with an unique color . than , rendering second time in a normal way. when the user move mouse in the screen . read the pixel value

Re: [osg-users] Shadow size dont change when i change model size in vertex shader

2012-08-30 Thread David Callu
Hi Umid nobody can help you if you don't explain more precisely your problem Cheer David 2012/8/30 Umid Shahmaliyev quza...@yahoo.com Hi, Hi all. I have some problem with shadow. I have 2 models in scene whith shadow. And when i change model size in vertex shader nothing happens with

Re: [osg-users] how to use unique color to pick object?

2012-08-30 Thread Robert Osfield
Hi Sawl, The easiest way to do picking is to use the LineSegmenetIntersector/IntersectionVistor as illustrated in the osgpick example. For models with large number of triangles you can generate KdTree's from the Geometry which vastly speeds up the intersection testing. See the

Re: [osg-users] Shadow size dont change when i change model size in vertex shader

2012-08-30 Thread Sergey Polischuk
Hi Shadow technique itself uses either fixed function or its own shaders to draw shadow map, and know nothing about what are you doing in your shader. Easy way to go is apply whatever transforms you need with osg::MatrixTransform node in graph instead of doing it in shaders. If this is not

[osg-users] OSG merchandising

2012-08-30 Thread Jordi Torres
Hi all, I've set a merchandising section in the new osg website with an iframe pointing to the OSG cafepress shop. I believe there is a big amount of people unaware of this. So go to http://www.openscenegraph.com/index.php/community/merchandising and get your OSG T-shirt! :). Cheers. -- Jordi

Re: [osg-users] OSG merchandising

2012-08-30 Thread Christian Buchner
Are you serious about offering an OSG thong? ;) Christian ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] OSG merchandising

2012-08-30 Thread Jordi Torres
hehehe, I'm not managing the osg cafepress shop (I think it was Robert idea), I only have set the iframe in the new web, but... aren't you geek enough??? ;) 2012/8/30 Christian Buchner christian.buch...@gmail.com Are you serious about offering an OSG thong? ;) Christian

[osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Rafa Gaitan
Hi everybody, I'm glad to announce osgAndroid (OpenSceneGraph for Android). It consists in a set of Java/JNI wrappers of OpenSceneGraph and some helper classes to easily develop OSG applications in Android. The code repository is hosted in Gitorious: https://gitorious.org/osgandroid I still

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Jan Ciger
On Thu, Aug 30, 2012 at 2:02 PM, Rafa Gaitan rafa.gai...@gmail.com wrote: Hi everybody, I'm glad to announce osgAndroid (OpenSceneGraph for Android). It consists in a set of Java/JNI wrappers of OpenSceneGraph and some helper classes to easily develop OSG applications in Android. ...

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Jordi Torres
Hi Rafa, First of all congratulations, at the end you were able to opensource the project! I would also like to announce the project in the community news section of the new site (openscenegraph.com), is it possible? You have now publisher rights in the new web, so feel free to add a

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Rafa Gaitan
2012/8/30 Jan Ciger jan.ci...@gmail.com On Thu, Aug 30, 2012 at 2:02 PM, Rafa Gaitan rafa.gai...@gmail.comwrote: Hi everybody, I'm glad to announce osgAndroid (OpenSceneGraph for Android). It consists in a set of Java/JNI wrappers of OpenSceneGraph and some helper classes to easily

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Rafa Gaitan
Hi Jordi, 2012/8/30 Jordi Torres jtorresfa...@gmail.com Hi Rafa, First of all congratulations, at the end you were able to opensource the project! Thank you!, you are also a contributor so thank you to you too!. I would also like to announce the project in the community news section

Re: [osg-users] OSG merchandising

2012-08-30 Thread Robert Osfield
On 30 August 2012 12:52, Jordi Torres jtorresfa...@gmail.com wrote: hehehe, I'm not managing the osg cafepress shop (I think it was Robert idea), I only have set the iframe in the new web, but... aren't you geek enough??? ;) I'm afraid the thong wasn't my idea, still it's a bit of fun.

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Robert Osfield
Hi Rafa, Congratulations to you and the rest of the team on the new osgAndroid project ;-) On 30 August 2012 13:21, Rafa Gaitan rafa.gai...@gmail.com wrote: Thank you Jan!, I have some AR examples that I want also release :) in the next days. If you find any problem using it feel free to tell

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Jeremy Moles
On Thu, 2012-08-30 at 14:02 +0200, Rafa Gaitan wrote: Hi everybody, I'm glad to announce osgAndroid (OpenSceneGraph for Android). It consists in a set of Java/JNI wrappers of OpenSceneGraph and some helper classes to easily develop OSG applications in Android. Just out of curiosity, does

Re: [osg-users] [ANN] osgAndroid: Library for develop OSG applications in Android

2012-08-30 Thread Rafa Gaitan
Hi Jeremy, 2012/8/30 Jeremy Moles cubic...@gmail.com On Thu, 2012-08-30 at 14:02 +0200, Rafa Gaitan wrote: Hi everybody, I'm glad to announce osgAndroid (OpenSceneGraph for Android). It consists in a set of Java/JNI wrappers of OpenSceneGraph and some helper classes to easily

Re: [osg-users] OSG merchandising

2012-08-30 Thread Paul Martz
The thong came up as a joke idea when the cafepress page was started; I seem to recall Mike Weiblen had something to do with it. Didn't he bring one to a SIGGRAPH OSG BOF? He didn't wear it, thankfully! :-) -Paul On 8/30/2012 5:46 AM, Christian Buchner wrote: Are you serious about

Re: [osg-users] how to use unique color to pick object?

2012-08-30 Thread Paul Martz
As Robert says, use osgUtil for this. For starters, osgUtil easily lets you pick multiple triangles, even if they are grouped together in the same Drawable. osgUtil was designed for intersection testing / picking. The unique color method was devised to work around the slow OpenGL 1.x

Re: [osg-users] OSG merchandising

2012-08-30 Thread Michael Weiblen
yes, I bought one. Beware, it is not one-size-fits-all -- mew On Aug 30, 2012 8:05 AM, Paul Martz pma...@skew-matrix.com wrote: The thong came up as a joke idea when the cafepress page was started; I seem to recall Mike Weiblen had something to do with it. Didn't he bring one to a SIGGRAPH OSG

[osg-users] Help: is prerender camera regarded as slave camera during rendering traversal?

2012-08-30 Thread wang shuiying
Hello everyone, I would like to know where the prerender camera is rendered in OSG. Is prerender camera regarded as slave camera during rendering traversal of viewer? Is there a way to directly render a prerender camera at any time I want ? That is, not at a tempo of 60 Frame per second.

Re: [osg-users] OSG merchandising

2012-08-30 Thread Chris Hanson
On Thu, Aug 30, 2012 at 2:42 PM, Michael Weiblen mike.weib...@gmail.comwrote: yes, I bought one. Beware, it is not one-size-fits-all -- mew I need bleach for my mind's eye now. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training •