Re: [osg-users] Help: can the fourth element of gl_FragColor be changed by shader?

2012-01-04 Thread wang shuiying
Hi, To J.P. and Paul: Thank you both very much ! After I change the renderTargetImplementation from FRAME_BUFFER to FRAME_BUFFER_OBJECT , it works! That is, I can get the fourth element of gl_FragColor modified in Fragment Shader though image. Plus, the camera in question is a pre-render ca

Re: [osg-users] Shader that can calculate pixel depth in meters

2012-01-04 Thread Paul Martz
Your issue is a relatively straightforward linear algebra problem. If you didn't pick up this skill set in grade school or a university-level course, It's unlikely someone will teach you linear algebra on this mail list. (Not trying to sound like a know-it-all; it's simply a fact that software d

Re: [osg-users] Shader that can calculate pixel depth in meters

2012-01-04 Thread Ethan Fahy
Thanks GMan for the reply and the source code, much appreciated. I was able to tweak your shaders for my needs and I think I am off to a good start. However I'm still not sure exactly what coordinate system I'm dealing with. In my case, I have an osg terrain loaded in in geocentric coordinate

Re: [osg-users] What callback for setting the viewMatrix of the camera every frame?

2012-01-04 Thread Bob Youmans
Hi, I used a class derived from osgGA:StandardManipulator and in the handle() i caught the FRAME event type. Thank you! Cheers, Bob -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44590#44590 ___ o

Re: [osg-users] OSG website unresponsive

2012-01-04 Thread Chris 'Xenon' Hanson
On 1/4/2012 1:35 AM, Norman Vine wrote: > The Oregon State University Open Source Lab is the home of growing, > high-impact open source communities. Its world-class hosting services > > enable the Linux operating system, Apache web server, the Drupal > con

[osg-users] StateSet and Text, state sets may be shared inadvertently

2012-01-04 Thread Juan Hernando
Dear all, Trying to use different StateSet with different osgText::Text objects it happens that all text objects transparently may share the same StateSet depending on how the state sets are created. Image that we have two text objects t1 and t2, then the following calling sequences behave as f

Re: [osg-users] OSG website unresponsive

2012-01-04 Thread Matthew Runo
I should also point out that github provides free hosting for open source projects, including wiki... though I'm not sure that projects can have a forum on github. Just a thought. Matthew On Jan 3, 2012 11:10 PM, "Torben Dannhauer" wrote: > Hi , > > @ Chris I have a physical root server, and I

Re: [osg-users] Help: can the fourth element of gl_FragColor be changed by shader?

2012-01-04 Thread wang shuiying
Hi, J.P. I am really confused now. I just want to get pre-rendering information from a camera through an image, which is attached to the camera. But I don't want to draw the image onto a texture. The rendering process goes through programmable shader and I need to write four different var

Re: [osg-users] Help: can the fourth element of gl_FragColor be changed by shader?

2012-01-04 Thread Paul Martz
On 1/3/2012 11:43 PM, J.P. Delport wrote: Hi, On 03/01/2012 23:39, wang shuiying wrote: As can be seen from the source code, I attach an image to the camera, and access data from the image, I am rendering to an FBO. I don't think you are rendering to an FBO with the above code. I have to

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Hello zonk and others! Thank you for the idea to use dependency walker, I haven't used it before. Now I found out, that x86 libraries are used at runtime instead of x64, because I forgot to put the path to x64 dlls into the %PATH% variable. Thank you very much! Peter -- Read thi

[osg-users] setUseVertexBufferObjects(..) create problem in osg 3.0.1

2012-01-04 Thread Lalit Manchwari
Hi, I have written a program using visual studio 2008 and osg 2.8.5. In this program I was using geometry->setUseDisplayList( false ); //Disable display lists geometry->setUseVertexBufferObjects( true ); //Enable VBO But when I switch higher version of visual studio (2010) and osg ( 3.0.1)

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Torben Dannhauer
Hi, use dependencywalker to get an idea which dll is missing. additionally read windows' application log to get an more etailed error description. Thank you! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44582#44582

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Hi! Thank you very much, you were right, I have to include "windows.h" on the very beginning. So now I am able to compile my app but now I get an error after launch :-(. "The application was unable to start correctly (0xc07b). Click OK to close the application. Does anyone have an idea wha

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Martin Naylor
Hi Peter, That quite a common issue, Mourad is probably correct, windows.h being included after gl.h...instead of before. Cheers Martin -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Peter Bako Sent:

Re: [osg-users] [osgPPU] Fixed crash in UnitTexture, when external texture has no image.

2012-01-04 Thread Gena Quenca
Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43990#43990 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegrap

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Frederic Bouvier
Hi Peter, Le 04/01/2012 10:52, Peter Bako a écrit : > Hi, > > I get errors, when I try to compile my project on visual studio for 64bit > platform. Before on ANYCPU configurations I had no problems. The error which > I get is > > variable "WINGDIAPI" is not a type name > c:\program files (x86

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Mourad Boufarguine
Hi, On Wed, Jan 4, 2012 at 10:52 AM, Peter Bako wrote: > Hi, > > I get errors, when I try to compile my project on visual studio for 64bit > platform. Before on ANYCPU configurations I had no problems. The error which > I get is > >  variable "WINGDIAPI" is not a type name > c:\program files (x

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Torben Dannhauer
Hi, sorry, I can't help you: I use VS 2008 in 32 and 64 bit. Good luck! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44573#44573 ___ osg-users mailing list osg-users@lists.openscen

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Yes, sorry, I'm using VS2010 on Windows 7 64bit Peter -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44572#44572 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegra

Re: [osg-users] VS2010 64bit compile problem

2012-01-04 Thread Torben Dannhauer
Hi, You should post which OS version and which VS Version you use. Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44571#44571 ___ osg-users mailing list osg-users@lists.openscenegrap

[osg-users] VS2010 64bit compile problem

2012-01-04 Thread Peter Bako
Hi, I get errors, when I try to compile my project on visual studio for 64bit platform. Before on ANYCPU configurations I had no problems. The error which I get is variable "WINGDIAPI" is not a type name c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h and other 150 erro

Re: [osg-users] OSG website unresponsive

2012-01-04 Thread Norman Vine
Robert Maybe it is a good time to investigate OSUOSL The Oregon State University Open Source Lab is the home of growing, high-impact open source communities. Its world-class hosting services enable the Linux operating system, Apache web server, the Drupal content management system and over 5