Re: [osg-users] AlphaPixel Whitepaper on VirtualPlanetBuilder/OSGDEM

2013-01-23 Thread Wang Rui
Hi Chris, That's great to have more papers about the implementations of more OSG components! Thank you for the efforts on them. :-) Is it possible to translate these papers into Chinese and put them on some Chinese forums, of course, with original copyrights? Thanks, Wang Rui 2013/1/22

Re: [osg-users] Most efficient way to get a single pixel RGBA from an FBO texture

2013-01-23 Thread Ethan Fahy
I should note that my needs are very similar to the ones described in this post: http://forum.openscenegraph.org/viewtopic.php?t=5941highlight=glreadpixels I adapted the sample code given at the end of that thread and found that while I was able to retrieve the correct pixel values, I also was

[osg-users] center camera on click

2013-01-23 Thread lucie lemonnier
Hello, I click on a point in my node. I get a world intersection point (hitr-getWorldIntersectPoint()). I want to center my camera on this point that is to say this point becomes the pivot point of the rotation of the camera. Can you help me please? Thank you! Cheers, lucie

Re: [osg-users] Most efficient way to get a single pixel RGBA from an FBO texture

2013-01-23 Thread Laurens Voerman
Hi Ethan, Maybe you could just keep it all on the gpu, and create the text for the hud in a shader like drawtext GLSL shader http://mew.cx/drawtext/drawtext.html Laurens. On 1/23/2013 3:24 PM, Ethan Fahy wrote: I should note that my needs are very similar to the ones described in this post:

Re: [osg-users] Most efficient way to get a single pixel RGBA froman FBO texture

2013-01-23 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Whatever you end up doing, you want to avoid doing the equivalent of glReadPixels since that stalls the pipe and is relatively slow. I noticed that this was one of the suggestions in the link provided below... -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org

Re: [osg-users] AlphaPixel Whitepaper on VirtualPlanetBuilder/OSGDEM

2013-01-23 Thread Chris Hanson
Yes, sure, that'd be fine. Just send me PDFs of the translations so I can keep a copy on my site too. On Wed, Jan 23, 2013 at 7:00 AM, Wang Rui wangra...@gmail.com wrote: Hi Chris, That's great to have more papers about the implementations of more OSG components! Thank you for the efforts

Re: [osg-users] center camera on click

2013-01-23 Thread Paul Martz
The MxEventHandler class in the osgWorks project has an event handler that lets you specify the center of rotation. Documentation is here: http://vesuite.org/external/docs/osgworks/classosgw_mx_1_1_mx_event_handler.html#_details so you can see that ctrl+shift+leftmouse sets the new center of