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 Chris Hanson xe...@alphapixel.com

 As promised last week:

 http://alphapixel.com/content/openscengraph-virtual-planet-builder-osgdem


 Feedback welcomed.


 --
 Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
 http://www.alphapixel.com/
 Training • Consulting • Contracting
 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
 Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry •
 Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile •
 iPhone/iPad/iOS • Android
 @alphapixel https://twitter.com/alphapixel facebook.com/alphapixel (775)
 623-PIXL [7495]

 ___
 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


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 getting the:

warning: detected OpenGL error 'invalid operation' at after RenderBin::draw()

warning after every frame, regardless of whether my rtt camera was set to post 
render or pre render.  Unfortunately that thread ended 2.5 years ago without a 
full resolution to the outstanding questions.

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





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


[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

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





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


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:

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 getting the:

warning: detected OpenGL error 'invalid operation' at after RenderBin::draw()

warning after every frame, regardless of whether my rtt camera was set to post 
render or pre render.  Unfortunately that thread ended 2.5 years ago without a 
full resolution to the outstanding questions.

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





___
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


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
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ethan
Fahy
Sent: Wednesday, January 23, 2013 7:24 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Most efficient way to get a single pixel RGBA
froman FBO texture

I should note that my needs are very similar to the ones described in
this post:

http://forum.openscenegraph.org/viewtopic.php?t=5941highlight=glreadpix
els

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
getting the:

warning: detected OpenGL error 'invalid operation' at after
RenderBin::draw()

warning after every frame, regardless of whether my rtt camera was set
to post render or pre render.  Unfortunately that thread ended 2.5 years
ago without a full resolution to the outstanding questions.

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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 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 Chris Hanson xe...@alphapixel.com

 As promised last week:

 http://alphapixel.com/content/openscengraph-virtual-planet-builder-osgdem


 Feedback welcomed.


 --
 Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
 http://www.alphapixel.com/
 Training • Consulting • Contracting
 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
 Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry •
 Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile •
 iPhone/iPad/iOS • Android
 @alphapixel https://twitter.com/alphapixel facebook.com/alphapixel (775)
 623-PIXL [7495]

 ___
 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




-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography
• Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS •
Android
@alphapixel https://twitter.com/alphapixel facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 rotation. (The 
event handler also supports changing the FOV and toggling between orthographic 
and perspective.)


osgWorks can be downloaded from here:
osgWorks.googlecode.com
and if you want to try this event handler, run the MxViewer example.

The MxViewer example and the MxEventHandler class are built on tools in the 
osgwMx library, which contains several matrix utility classes and functions, as 
well as support for DirectX input devices such as gamepads.

   -Paul


On 1/23/2013 8:52 AM, lucie lemonnier wrote:

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

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





___
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