Re: [osg-users] please test... SSAO (v1.0)

2008-12-18 Thread Adrian Egli OpenSceneGraph (3D)
Hi Vincent,

the current version is much faster (arround 30FPS) on my NVidia Quatro 570M,
can you rebuild the latest version and send my the compiler bugs (please)

the resizing issue, i am awar of it not yet solved.

/adrian

2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com

 On VS 2005 SP1 OSG 2.6.1 : still the 3 .get() missing on texture
 variable.

 Around 15-20 FPS, but after resize of the window...see attached file.

 Vincent.

 008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 where are the bugs, my version compiled under VS 2005 (c++) latest SVN
 version

 /adrian

 2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi

  Works nicely, if a bit slow (~15fps) and the window can't be resized
 correctly.



 The code was missing three ref_ptr .get()s, so I guess you didn't compile
 the version you attached…



 http://paahdin.com/shared/images/ssao.png


  --

 *Lähettäjä:* osg-users-boun...@lists.openscenegraph.org [mailto:
 osg-users-boun...@lists.openscenegraph.org] *Puolesta *Adrian Egli
 OpenSceneGraph (3D)
 *Lähetetty:* 17. joulukuuta 2008 18:24
 *Vastaanottaja:* OpenSceneGraph Users
 *Aihe:* [osg-users] please test... SSAO (v1.0)



 Hi all ,

 please test this first version of SSAO Effect (Node)

 There is still a problem (512 x 512) texture,
 gaussian filter purly implemented on GPU

 finally i have 10-15 FPS



 /adrian

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




 --
 
 Adrian Egli

 ___
 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




-- 

Adrian Egli
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
*
* This application is open source and may be redistributed and/or modified   
* freely and without restriction, both in commericial and non commericial 
applications,
* as long as this copyright notice is maintained.
* 
* This application is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

#include osgDB/ReadFile
#include osgUtil/Optimizer
#include osg/CoordinateSystemNode

#include osg/Switch
#include osg/Uniform

#include osgText/Text
#include osg/ShapeDrawable
#include osg/Geometry
#include osgViewer/Viewer
#include osgViewer/ViewerEventHandlers
#include osg/BlendFunc

#include osgGA/TrackballManipulator
#include osgGA/FlightManipulator
#include osgGA/DriveManipulator
#include osgGA/KeySwitchMatrixManipulator
#include osgGA/StateSetManipulator
#include osgGA/AnimationPathManipulator
#include osgGA/TerrainManipulator

#include iostream

#include osgFX/Effect
#include osgFX/Technique
#include osgFX/Registry

#include osg/TexGen
#include osg/Texture2D

#include osg/PolygonOffset
#include osgDB/WriteFile





struct WriteCameraPostDrawCallback : public osg::Camera::DrawCallback
{
WriteCameraPostDrawCallback(osg::Image* image,std::string filename, 
bool write):
_image(image),
_filename(filename),
_write(write)
{
}

virtual void operator () (const osg::Camera /*camera*/) const
{
 
_image-dirty();
 
if ( _write ) {
std::cout  write   _filename  std::endl;
osgDB::writeImageFile(*(_image.get()),_filename);
}

}

osg::ref_ptrosg::Image _image;
std::string _filename;
bool _write;
};
 

namespace osgFX {
class SSAO : public Effect {
public:
SSAO() {};
SSAO(osg::Group*);
SSAO(const SSAO copy, const osg::CopyOp copyop = 
osg::CopyOp::SHALLOW_COPY);

META_Effect(osgFX, SSAO, 

Screen Space Ambient Occlusion, 

SSAO : test implementation, 

Adrian Egli);
protected:
virtual ~SSAO() {}
SSAO operator=(const SSAO) { return *this; }

bool define_techniques();

osg::ref_ptrosg::Group _root;
};

}



using namespace osgFX;


namespace
{


osg::Node* createBase(osg::Texture2D* texture ,osg::Texture2D* 
texture2=NULL )
{

osg::ref_ptrosg::Geode geode = new osg::Geode

Re: [osg-users] please test... SSAO (v1.0)

2008-12-18 Thread Vincent Bourdier
Hi,

Which version do you speeking about ? last OSG version ? SSAO last version ?
My todo list is full so I can try to have a look on it, but I cannot say
when...

Vincent.

2008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Hi Vincent,

 the current version is much faster (arround 30FPS) on my NVidia Quatro
 570M, can you rebuild the latest version and send my the compiler bugs
 (please)

 the resizing issue, i am awar of it not yet solved.

 /adrian

 2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com

 On VS 2005 SP1 OSG 2.6.1 : still the 3 .get() missing on texture
 variable.

 Around 15-20 FPS, but after resize of the window...see attached file.

 Vincent.

 008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 where are the bugs, my version compiled under VS 2005 (c++) latest SVN
 version

 /adrian

 2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi

  Works nicely, if a bit slow (~15fps) and the window can't be resized
 correctly.



 The code was missing three ref_ptr .get()s, so I guess you didn't
 compile the version you attached…



 http://paahdin.com/shared/images/ssao.png


  --

 *Lähettäjä:* osg-users-boun...@lists.openscenegraph.org [mailto:
 osg-users-boun...@lists.openscenegraph.org] *Puolesta *Adrian Egli
 OpenSceneGraph (3D)
 *Lähetetty:* 17. joulukuuta 2008 18:24
 *Vastaanottaja:* OpenSceneGraph Users
 *Aihe:* [osg-users] please test... SSAO (v1.0)



 Hi all ,

 please test this first version of SSAO Effect (Node)

 There is still a problem (512 x 512) texture,
 gaussian filter purly implemented on GPU

 finally i have 10-15 FPS



 /adrian

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 
 Adrian Egli

 ___
 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




 --
 
 Adrian Egli

 ___
 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] please test... SSAO (v1.0)

2008-12-18 Thread Adrian Egli OpenSceneGraph (3D)
sorry, i am working with latest SVN version (but not so important) but the
attached SSAO version (latest)

see attachement

:-)

/adrian

2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com

 Hi,

 Which version do you speeking about ? last OSG version ? SSAO last version
 ?
 My todo list is full so I can try to have a look on it, but I cannot say
 when...

 Vincent.

 2008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Hi Vincent,

 the current version is much faster (arround 30FPS) on my NVidia Quatro
 570M, can you rebuild the latest version and send my the compiler bugs
 (please)

 the resizing issue, i am awar of it not yet solved.

 /adrian

 2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com

 On VS 2005 SP1 OSG 2.6.1 : still the 3 .get() missing on texture
 variable.

 Around 15-20 FPS, but after resize of the window...see attached file.

 Vincent.

 008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 where are the bugs, my version compiled under VS 2005 (c++) latest SVN
 version

 /adrian

 2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi

  Works nicely, if a bit slow (~15fps) and the window can't be resized
 correctly.



 The code was missing three ref_ptr .get()s, so I guess you didn't
 compile the version you attached…



 http://paahdin.com/shared/images/ssao.png


  --

 *Lähettäjä:* osg-users-boun...@lists.openscenegraph.org [mailto:
 osg-users-boun...@lists.openscenegraph.org] *Puolesta *Adrian Egli
 OpenSceneGraph (3D)
 *Lähetetty:* 17. joulukuuta 2008 18:24
 *Vastaanottaja:* OpenSceneGraph Users
 *Aihe:* [osg-users] please test... SSAO (v1.0)



 Hi all ,

 please test this first version of SSAO Effect (Node)

 There is still a problem (512 x 512) texture,
 gaussian filter purly implemented on GPU

 finally i have 10-15 FPS



 /adrian

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 
 Adrian Egli

 ___
 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




 --
 
 Adrian Egli

 ___
 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




-- 

Adrian Egli
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
*
* This application is open source and may be redistributed and/or modified   
* freely and without restriction, both in commericial and non commericial 
applications,
* as long as this copyright notice is maintained.
* 
* This application is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

#include osgDB/ReadFile
#include osgUtil/Optimizer
#include osg/CoordinateSystemNode

#include osg/Switch
#include osg/Uniform

#include osgText/Text
#include osg/ShapeDrawable
#include osg/Geometry
#include osgViewer/Viewer
#include osgViewer/ViewerEventHandlers
#include osg/BlendFunc

#include osgGA/TrackballManipulator
#include osgGA/FlightManipulator
#include osgGA/DriveManipulator
#include osgGA/KeySwitchMatrixManipulator
#include osgGA/StateSetManipulator
#include osgGA/AnimationPathManipulator
#include osgGA/TerrainManipulator

#include iostream

#include osgFX/Effect
#include osgFX/Technique
#include osgFX/Registry

#include osg/TexGen
#include osg/Texture2D

#include osg/PolygonOffset
#include osgDB/WriteFile





struct WriteCameraPostDrawCallback : public osg::Camera::DrawCallback
{
WriteCameraPostDrawCallback(osg::Image* image,std::string filename, 
bool write):
_image(image),
_filename(filename),
_write(write)
{
}

virtual void operator () (const osg::Camera /*camera*/) const
{
 
_image-dirty();
 
if ( _write ) {
std::cout  write   _filename  std::endl;
osgDB::writeImageFile(*(_image.get()),_filename);
}

}

osg::ref_ptrosg::Image _image;
std::string _filename;
bool _write;
};
 

namespace osgFX {
class SSAO : public Effect {
public

Re: [osg-users] please test... SSAO (v1.0)

2008-12-18 Thread Vincent Bourdier
Compilation errors :
(do not look at the name of the file, it is just to avoid making a new VS
configuration)

1-- Début de la génération : Projet : Examples osggeodemo,
Configuration : Release Win32 --
1Compilation en cours...
1osggeodemo.cpp
1..\..\..\sources\src\examples\osggeodemo\osggeodemo.cpp(330) : error
C2664: 'osg::StateSet::setTextureAttribute' : impossible de convertir le
paramètre 2 de 'osg::ref_ptrT' en 'osg::StateAttribute *'
1with
1[
1T=osg::Texture2D
1]
1Aucun opérateur de conversion définie par l'utilisateur disponible
qui puisse effectuer cette conversion, ou l'opérateur ne peut pas être
appelé
1..\..\..\sources\src\examples\osggeodemo\osggeodemo.cpp(337) : error
C2664: 'osg::StateSet::setTextureAttributeAndModes' : impossible de
convertir le paramètre 2 de 'osg::ref_ptrT' en 'osg::StateAttribute *'
1with
1[
1T=osg::Texture2D
1]
1Aucun opérateur de conversion définie par l'utilisateur disponible
qui puisse effectuer cette conversion, ou l'opérateur ne peut pas être
appelé
1Le journal de génération a été enregistré à l'emplacement
file://z:\OSG_2.6.1\binaries\examples\osggeodemo\example_osggeodemo.dir\Release\BuildLog.htm
1Examples osggeodemo - 2 erreur(s), 0 avertissement(s)
== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré
==

About 30 fps : see attached file.

Vincent.


2008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 sorry, i am working with latest SVN version (but not so important) but the
 attached SSAO version (latest)

 see attachement

 :-)

 /adrian

 2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com

 Hi,

 Which version do you speeking about ? last OSG version ? SSAO last version
 ?
 My todo list is full so I can try to have a look on it, but I cannot say
 when...

 Vincent.

 2008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Hi Vincent,

 the current version is much faster (arround 30FPS) on my NVidia Quatro
 570M, can you rebuild the latest version and send my the compiler bugs
 (please)

 the resizing issue, i am awar of it not yet solved.

 /adrian

 2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com

 On VS 2005 SP1 OSG 2.6.1 : still the 3 .get() missing on texture
 variable.

 Around 15-20 FPS, but after resize of the window...see attached file.

 Vincent.

 008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 where are the bugs, my version compiled under VS 2005 (c++) latest SVN
 version

 /adrian

 2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi

  Works nicely, if a bit slow (~15fps) and the window can't be resized
 correctly.



 The code was missing three ref_ptr .get()s, so I guess you didn't
 compile the version you attached…



 http://paahdin.com/shared/images/ssao.png


  --

 *Lähettäjä:* osg-users-boun...@lists.openscenegraph.org [mailto:
 osg-users-boun...@lists.openscenegraph.org] *Puolesta *Adrian Egli
 OpenSceneGraph (3D)
 *Lähetetty:* 17. joulukuuta 2008 18:24
 *Vastaanottaja:* OpenSceneGraph Users
 *Aihe:* [osg-users] please test... SSAO (v1.0)



 Hi all ,

 please test this first version of SSAO Effect (Node)

 There is still a problem (512 x 512) texture,
 gaussian filter purly implemented on GPU

 finally i have 10-15 FPS



 /adrian

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 
 Adrian Egli

 ___
 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




 --
 
 Adrian Egli

 ___
 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




 --
 
 Adrian Egli

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


attachment: SSAO.JPG___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] please test... SSAO (v1.0)

2008-12-18 Thread J.P. Delport

Hi,

compiled OK here on Debian Sid, 40fps on GeForce Go 7400.

jp

Adrian Egli OpenSceneGraph (3D) wrote:

Hi Vincent,

the current version is much faster (arround 30FPS) on my NVidia Quatro 
570M, can you rebuild the latest version and send my the compiler bugs 
(please)


the resizing issue, i am awar of it not yet solved.

/adrian

2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com 
mailto:vincent.bourd...@gmail.com


On VS 2005 SP1 OSG 2.6.1 : still the 3 .get() missing on texture
variable.

Around 15-20 FPS, but after resize of the window...see attached file.

Vincent.

008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com
mailto:3dh...@gmail.com

where are the bugs, my version compiled under VS 2005 (c++)
latest SVN version

/adrian

2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi
mailto:kimmo.kotaja...@vianova.fi

Works nicely, if a bit slow (~15fps) and the window can't be
resized correctly.

 


The code was missing three ref_ptr .get()s, so I guess you
didn't compile the version you attached…

 


http://paahdin.com/shared/images/ssao.png

 





*Lähettäjä:* osg-users-boun...@lists.openscenegraph.org
mailto:osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org
mailto:osg-users-boun...@lists.openscenegraph.org]
*Puolesta *Adrian Egli OpenSceneGraph (3D)
*Lähetetty:* 17. joulukuuta 2008 18:24
*Vastaanottaja:* OpenSceneGraph Users
*Aihe:* [osg-users] please test... SSAO (v1.0)

 


Hi all ,

please test this first version of SSAO Effect (Node)

There is still a problem (512 x 512) texture,
gaussian filter purly implemented on GPU

finally i have 10-15 FPS



/adrian


___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 


Adrian Egli

___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



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




--

Adrian Egli




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


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


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


Re: [osg-users] please test... SSAO (v1.0)

2008-12-18 Thread Vincent Bourdier
Sorry, forgot to precise :

Nvidia Gforce 8600 GTS

Vincent.

2008/12/18 J.P. Delport jpdelp...@csir.co.za

 Hi,

 compiled OK here on Debian Sid, 40fps on GeForce Go 7400.

 jp

 Adrian Egli OpenSceneGraph (3D) wrote:

 Hi Vincent,

 the current version is much faster (arround 30FPS) on my NVidia Quatro
 570M, can you rebuild the latest version and send my the compiler bugs
 (please)

 the resizing issue, i am awar of it not yet solved.

 /adrian

 2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com mailto:
 vincent.bourd...@gmail.com

On VS 2005 SP1 OSG 2.6.1 : still the 3 .get() missing on texture
variable.

Around 15-20 FPS, but after resize of the window...see attached file.

Vincent.

008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com
mailto:3dh...@gmail.com

where are the bugs, my version compiled under VS 2005 (c++)
latest SVN version

/adrian

2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi
mailto:kimmo.kotaja...@vianova.fi

Works nicely, if a bit slow (~15fps) and the window can't be
resized correctly.


The code was missing three ref_ptr .get()s, so I guess you
didn't compile the version you attached…


http://paahdin.com/shared/images/ssao.png



  

*Lähettäjä:* osg-users-boun...@lists.openscenegraph.org
mailto:osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org
mailto:osg-users-boun...@lists.openscenegraph.org]
*Puolesta *Adrian Egli OpenSceneGraph (3D)
*Lähetetty:* 17. joulukuuta 2008 18:24
*Vastaanottaja:* OpenSceneGraph Users
*Aihe:* [osg-users] please test... SSAO (v1.0)


Hi all ,

please test this first version of SSAO Effect (Node)

There is still a problem (512 x 512) texture,
gaussian filter purly implemented on GPU

finally i have 10-15 FPS



/adrian


___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
Adrian Egli

___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto:osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 
 Adrian Egli


 

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


 --
 This message is subject to the CSIR's copyright terms and conditions,
 e-mail legal notice, and implemented Open Document Format (ODF) standard.
 The full disclaimer details can be found at
 http://www.csir.co.za/disclaimer.html.

 This message has been scanned for viruses and dangerous content by
 MailScanner, and is believed to be clean.  MailScanner thanks Transtec
 Computers for their support.


 ___
 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] please test... SSAO (v1.0)

2008-12-18 Thread J.P. Delport

Hi,

temple default view without ssao 570fps, with ssao 40fps.

NVidia Geforce Go7400.

jp

Adrian Egli OpenSceneGraph (3D) wrote:

You can toggle SSAO on/off with 'a',i have fixed the bugs,

adrian

2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com 
mailto:vincent.bourd...@gmail.com


Compilation errors :
(do not look at the name of the file, it is just to avoid making a
new VS configuration)

1-- Début de la génération : Projet : Examples osggeodemo,
Configuration : Release Win32 --
1Compilation en cours...
1osggeodemo.cpp
1..\..\..\sources\src\examples\osggeodemo\osggeodemo.cpp(330) :
error C2664: 'osg::StateSet::setTextureAttribute' : impossible de
convertir le paramètre 2 de 'osg::ref_ptrT' en 'osg::StateAttribute *'
1with
1[
1T=osg::Texture2D
1]
1Aucun opérateur de conversion définie par l'utilisateur
disponible qui puisse effectuer cette conversion, ou l'opérateur ne
peut pas être appelé
1..\..\..\sources\src\examples\osggeodemo\osggeodemo.cpp(337) :
error C2664: 'osg::StateSet::setTextureAttributeAndModes' :
impossible de convertir le paramètre 2 de 'osg::ref_ptrT' en
'osg::StateAttribute *'
1with
1[
1T=osg::Texture2D
1]
1Aucun opérateur de conversion définie par l'utilisateur
disponible qui puisse effectuer cette conversion, ou l'opérateur ne
peut pas être appelé
1Le journal de génération a été enregistré à l'emplacement

file://z:\OSG_2.6.1\binaries\examples\osggeodemo\example_osggeodemo.dir\Release\BuildLog.htm
1Examples osggeodemo - 2 erreur(s), 0 avertissement(s)
== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a
été ignoré ==

About 30 fps : see attached file.


Vincent.


2008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com
mailto:3dh...@gmail.com

sorry, i am working with latest SVN version (but not so
important) but the attached SSAO version (latest)

see attachement

:-)

/adrian

2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com
mailto:vincent.bourd...@gmail.com

Hi,

Which version do you speeking about ? last OSG version ?
SSAO last version ?
My todo list is full so I can try to have a look on it, but
I cannot say when...

Vincent.

2008/12/18 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com
mailto:3dh...@gmail.com

Hi Vincent,

the current version is much faster (arround 30FPS) on my
NVidia Quatro 570M, can you rebuild the latest version
and send my the compiler bugs (please)

the resizing issue, i am awar of it not yet solved.

/adrian

2008/12/18 Vincent Bourdier vincent.bourd...@gmail.com
mailto:vincent.bourd...@gmail.com

On VS 2005 SP1 OSG 2.6.1 : still the 3 .get()
missing on texture variable.

Around 15-20 FPS, but after resize of the
window...see attached file.

Vincent.

008/12/18 Adrian Egli OpenSceneGraph (3D)
3dh...@gmail.com mailto:3dh...@gmail.com

where are the bugs, my version compiled under VS
2005 (c++) latest SVN version

/adrian

2008/12/18 Kimmo Kotajärvi
kimmo.kotaja...@vianova.fi
mailto:kimmo.kotaja...@vianova.fi

Works nicely, if a bit slow (~15fps) and the
window can't be resized correctly.

 


The code was missing three ref_ptr .get()s,
so I guess you didn't compile the version
you attached…

 


http://paahdin.com/shared/images/ssao.png

 





*Lähettäjä:*
osg-users-boun...@lists.openscenegraph.org
mailto:osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org
mailto:osg-users-boun...@lists.openscenegraph.org]
*Puolesta *Adrian Egli OpenSceneGraph (3D)
*Lähetetty:* 17. joulukuuta 2008 18:24
*Vastaanottaja:* OpenSceneGraph Users
*Aihe:* [osg-users] please test... SSAO (v1.0

Re: [osg-users] please test... SSAO (v1.0)

2008-12-18 Thread Jean-Sébastien Guay

Hello Kimmo, Adrian,

The code was missing three ref_ptr .get()s, so I guess you didn’t 
compile the version you attached…


The SVN version now includes an implicit conversion operator from 
ref_ptrT to T*, so it is now possible to code without calling get() to 
pass a pointer from a ref_ptr. I guess Adrian has started using this, 
but you have an older version of OSG which does not include this...


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] please test... SSAO (v1.0)

2008-12-17 Thread Vincent Bourdier
Hi,

Some ref_ptr error in code...

Sorry, but on my old PC shader/OpenGl problem... I will test on newer PC if
I have time.

Regards,

   Vincent.

2008/12/17 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Hi all ,

 please test this first version of SSAO Effect (Node)

 There is still a problem (512 x 512) texture,
 gaussian filter purly implemented on GPU

 finally i have 10-15 FPS



 /adrian


 --
 
 Adrian Egli

 ___
 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] please test... SSAO (v1.0)

2008-12-17 Thread Kimmo Kotajärvi
Works nicely, if a bit slow (~15fps) and the window can't be resized correctly.

 

The code was missing three ref_ptr .get()s, so I guess you didn't compile the 
version you attached...

 

http://paahdin.com/shared/images/ssao.png

 



Lähettäjä: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] Puolesta Adrian Egli 
OpenSceneGraph (3D)
Lähetetty: 17. joulukuuta 2008 18:24
Vastaanottaja: OpenSceneGraph Users
Aihe: [osg-users] please test... SSAO (v1.0)

 

Hi all , 

please test this first version of SSAO Effect (Node) 

There is still a problem (512 x 512) texture, 
gaussian filter purly implemented on GPU 

finally i have 10-15 FPS 



/adrian 

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


Re: [osg-users] please test... SSAO (v1.0)

2008-12-17 Thread Adrian Egli OpenSceneGraph (3D)
where are the bugs, my version compiled under VS 2005 (c++) latest SVN
version

/adrian

2008/12/18 Kimmo Kotajärvi kimmo.kotaja...@vianova.fi

  Works nicely, if a bit slow (~15fps) and the window can't be resized
 correctly.



 The code was missing three ref_ptr .get()s, so I guess you didn't compile
 the version you attached…



 http://paahdin.com/shared/images/ssao.png


  --

 *Lähettäjä:* osg-users-boun...@lists.openscenegraph.org [mailto:
 osg-users-boun...@lists.openscenegraph.org] *Puolesta *Adrian Egli
 OpenSceneGraph (3D)
 *Lähetetty:* 17. joulukuuta 2008 18:24
 *Vastaanottaja:* OpenSceneGraph Users
 *Aihe:* [osg-users] please test... SSAO (v1.0)



 Hi all ,

 please test this first version of SSAO Effect (Node)

 There is still a problem (512 x 512) texture,
 gaussian filter purly implemented on GPU

 finally i have 10-15 FPS



 /adrian

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




-- 

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