[osg-users] Too long to generate the DEM with osgdem
Dear all, I am newer for using OSG. I compile gdal and VPB and rightly get all the files with VS2005. When I use osgdem to generate DEM, I find it generates .IVE and a folder of XXX-_root_L0_X0_Y0 . The problem is: It takes too long to generate the DEM. I check the time of file genration time and find the intervals between first several file is very short for level 0, level 1 and level 2. Coming to level 3 and after, the intervals are long, in my case 2 minutes or 3 minutes. So, after one and a half days, the DEM is only generated half. The input files are : Texture is: texture.tilf 70m 4019*4284 ; DEM is: height.tif 47m 4019*4284. The comand line to generate DEM is : osgdem -t texture.tif -d height.tif -l 8 -a mydem.osga Anybady can help me? Thanks a lot. 2011-05-28 ijustfu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Problem about DEM generation
Dear all, I use VPB to generate a dem with texture. It shows following error. Anybody can help me? / C:\OSGCode282\3rdParty_x86\bingdal_translate Beijing-XBL.tif texture16k.tif Input file size is 4104, 4200 0...10...20...30...40...50...60...70...80...90...100 - done. C:\OSGCode282\3rdParty_x86\bingdaladdo -r average texture16k.tif 2 4 8 16 32 0...10...20...30...40...50...60...70...80...90...100 - done. C:\OSGCode282\3rdParty_x86\bingdal_translate DEMsub3005Geo.tif DEM16k.tif Input file size is 4109, 4318 0...10...20...30...40...50...60...70...80...90...100 - done. C:\OSGCode282\3rdParty_x86\bingdaladdo -r average DEM16k.tif 2 4 8 16 32 0...10...20...30...40...50...60...70...80...90...100 - done. C:\OSGCode282\3rdParty_x86\binosgdem --xx 10 --yy 10 -t texture16k.tif --xx 10 --yy 10 -d DEM16k.tif -l 8 -v 0.1 -o puget.ive -a pegout.osga Warning: archive option -a is temporarily disabled, building with archive. --xx 10 --yy 10 -t texture16k.tif loaded layer texture16k.tif --xx 10 --yy 10 -d DEM16k.tif loaded layer DEM16k.tif -o puget.ive Adding terrainTile DataSet::_run() 0 0 DataSet::assignDestinationCoordinateSystem() : assigning first source file as th e destination coordinate system started DataSet::createDestination(8) Time for after_reproject 0.04 DataSet::assignDestinationCoordinateSystem() : assigning first source file as th e destination coordinate system AR=1.050864 C1=1 R1=1 createNewDestinationGraph Time for _destinationGraph-computeMaximumSourceResolution() = 0.009105 Time for createDestinationGraph 0.060909 Time for after_computeNeighbours 0.005470 completed DataSet::createDestination(8) There are 2 contributing source files: DEM16k.tif texture16k.tif PixelBufferWin32::init(), Error: some wgl extensions not supported Windows Error #127: [Screen #0] ChooseMatchingPixelFormat() - wglChoosePixelForm atARB extension not found, trying GDI. Reason: can not find the program。 Rendering in software: pixelFormatIndex 1 Windows Error #2000: Win32WindowingSystem::OpenGLContext() - Unable to restore c urrent OpenGL rendering context. Reason: invalid pixel format。 mkpath() Need to create output task directory = puget_root_L0_X0_Y0 Directory already created Task output directory = puget_root_L0_X0_Y0\ started DataSet::writeDestination(puget.ive) _readRow 1 reading tile level=0 X=0 Y=0 imageName = puget_L0_X0_Y0.dds DestinationTile::readFrom(SetName=, FileName=texture16k.tif) DestinationTile::readFrom(SetName=, FileName=DEM16k.tif) _equalizeRow 1 equalizing tile level=0 X=0 Y=0 _writeRow 1 DestinationTile::createStateSet() - DataSet::MIP_MAPPING_IMAGERY Compressed image Warning: detected OpenGL error 'Invalid enumeration' at DestinationTile::createStateSet() getDirectory()= writeNodeFile = 0 X=0 Y=0 filename=puget.ive _writeNodeFile(puget.ive) vpb::access(puget.ive, W_OK)=0 _readRow 1 reading tile level=1 X=0 Y=0 imageName = puget_L1_X0_Y0.dds DestinationTile::readFrom(SetName=, FileName=texture16k.tif) DestinationTile::readFrom(SetName=, FileName=DEM16k.tif) _equalizeRow 1 equalizing tile level=1 X=0 Y=0 _writeRow 1 _taskOutputDirectory= puget_root_L0_X0_Y0\ DestinationTile::createStateSet() - DataSet::MIP_MAPPING_IMAGERY Compressed image Caught exception. /// Thanks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Why can not access OSG web site
What is wrong with OSG web page? I try several times, but can not be accessed. 2010-03-19 ijustfu 发件人: ijustfu 发送时间: 2010-03-18 21:14:06 收件人: OpenSceneGraph Users 抄送: 主题: Why I reveive less email these days Dear All, I find during the passed several day, I received less emails than before. Is there any problem? Regards 2010-03-18 ijustfu 发件人: Georg Martius 发送时间: 2010-03-18 18:36:23 收件人: osg-users@lists.openscenegraph.org 抄送: 主题: [?? Probable Spam] Re: [osg-users] Render to Texture with independent framerate(Solution) Hi folks, I would like to post my solution to the problem of rendering to a texture independently on the framerate of the viewer, the code is attached. My solution is to derived a Viewer from osgViewer::Viewer, added a custom offScreenRender() function mimicking frame() and (offScreen)renderTraversal() function without statistics and swapbuffer. In the offScreenRender() function I exchange the child of the main camera by the off screen rendering node containing only the RTT cameras and switch it back afterwards. This works great except that the shadows do not work correctly in the RTT camera. It seems that the light position is wrongly detected, which is done in the cull traversal as far as I could understand from looking at the code. How do I perform this properly in the offScreenRenderTraversal() function? Cheers, Georg ___ 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
[osg-users] Why I reveive less email these days
Dear All, I find during the passed several day, I received less emails than before. Is there any problem? Regards 2010-03-18 ijustfu 发件人: Georg Martius 发送时间: 2010-03-18 18:36:23 收件人: osg-users@lists.openscenegraph.org 抄送: 主题: [?? Probable Spam] Re: [osg-users] Render to Texture with independent framerate(Solution) Hi folks, I would like to post my solution to the problem of rendering to a texture independently on the framerate of the viewer, the code is attached. My solution is to derived a Viewer from osgViewer::Viewer, added a custom offScreenRender() function mimicking frame() and (offScreen)renderTraversal() function without statistics and swapbuffer. In the offScreenRender() function I exchange the child of the main camera by the off screen rendering node containing only the RTT cameras and switch it back afterwards. This works great except that the shadows do not work correctly in the RTT camera. It seems that the light position is wrongly detected, which is done in the cull traversal as far as I could understand from looking at the code. How do I perform this properly in the offScreenRenderTraversal() function? Cheers, Georg ___ 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
[osg-users] Why can not access the OSG website
I have tried several time these days. But still can not access the website : www.openscenegraph.org What is the problem? 2009-12-07 ijustfu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to control camera
Dear All, I want to control virtual camera by a remote computer and local mouse. Anybody know how to make two controls work at the same time? I did it as following, but do not work. Firstly, following functions are invoked. mViewer-setCameraManipulator(NULL); mViewer-getCamera()-setViewMatrixAsLookAt(); Then to get the handle of camera from mViewer with mViewer-getCamera()-setViewMatrixAsLookAt(); but reply the NULL. Thus, I can not set my camera at a desired location. Show your comments to help me. Thanks. 2009-05-19 ijustfu 请教一个关于setViewMatrixAsLookAt函数的问题 如果先调用mViewer-setCameraManipulator(NULL);然后再调用mViewer-getCamera()-setViewMatrixAsLookAt(),此时的setViewMatrixAsLookAt有效;如果mViewer里面存在一个照相机控制器,然后调用mViewer-getCamera()-setViewMatrixAsLookAt(),此时的setViewMatrixAsLookAt函数无效,即不能够把照相机定位到想要的位置,场景无任何变化。 请问哪问朋友遇到后面这种情况没有,可能出现的问题在那里,应该如何,才能使setViewMatrixAsLookAt该函数有效呢?先谢谢各位 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] 答复: ??: A simple question from an learner.
Dear Mike, Thanks for you help. Follow you then it worked. Thanks again. Bingli _ 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 Mike Wittman 发送时间: 2007年8月3日 22:17 收件人: osg-users@lists.openscenegraph.org 主题: Re: [osg-users] ??: A simple question from an learner. Hi Bingli, I suspect you've got pure CLR support (/clr:pure) selected in your project configuration, which tells the compiler you're only using managed code. You need to have standard CLR support (/clr) selected to compile against the native code of OSG. The setting is in the General section of your project's Configuration Properties. -Mike _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ijustfu Sent: Thursday, August 02, 2007 8:57 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] ??: A simple question from an learner. Dear Mike, Thanks for you help. There are so many warnings and errors. Following are some statements: 1-- Build started: Project: VGEForPRDAirPollution, Configuration: Debug Win32 -- 1Compiling... 1VGEForPRDAirPollution.cpp 1C:\OpenSceneGraph2.0\OpenSceneGraph\include\OpenThreads/Mutex(40) : warning C4272: 'OpenThreads::Mutex::Mutex' : is marked __declspec(dllimport); must specify native calling convention when importing a function. OpenThreads::Mutex::`vftable'' : per-appdomain symbol should not be marked with __declspec(dllimport) 1C:\OpenSceneGraph2.0\OpenSceneGraph\include\osg/Referenced(64) : warning C4272: 'osg::Referenced::ref' : is marked .. 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A0C) public: void __clrcall osg::Referenced::ref(void)const ([EMAIL PROTECTED]@osg@@$$FQBMXXZ) referenced in function public: __clrcall osg::ref_ptrclass osg::Referenced::ref_ptrclass osg::Referenced(class osg::ref_ptrclass osg::Referenced const ) ([EMAIL PROTECTED]@osg@@@osg@@[EMAIL PROTECTED]@@Z) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A0D) public: void __clrcall osg::Referenced::unref(void)const ([EMAIL PROTECTED]@osg@@$$FQBMXXZ) referenced in function public: __clrcall osg::ref_ptrclass osg::Referenced::~ref_ptrclass osg::Referenced(void) ([EMAIL PROTECTED]@osg@@@osg@@[EMAIL PROTECTED]) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A11) public: __clrcall osg::CopyOp::CopyOp(unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z) referenced in function public: __clrcall osg::RefMatrixd::RefMatrixd(class osg::RefMatrixd const ) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A12) public: virtual __clrcall osg::CopyOp::~CopyOp(void) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function public: __clrcall osg::RefMatrixd::RefMatrixd(class osg::RefMatrixd const ) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A13) public: __clrcall osg::Object::Object(void) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function public: __clrcall osg::StateAttribute::Callback::Callback(void) ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A14) public: __clrcall osg::Object::Object(bool) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z) referenced in function public: __clrcall osg::RefMatrixd::RefMatrixd(void) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) .. 1Build log was saved at file://d:\VGEForPRDAirPollution\TestNet\VGEForPRDAirPollution\VGEForPRDAirP ollution\Debug\BuildLog.htm 1VGEForPRDAirPollution - 1227 error(s), 4507 warning(s) == Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped == Thanks and regards Bingli The Institute of Space and Earth Information Science, The Chinese university of Hong Kong, Shatin, N.T., Hong Kong, P.R.China -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 Mike Wittman 发送时间: 2007年8月2日 22:23 收件人: osg-users@lists.openscenegraph.org 主题: Re: [osg-users] A simple question from an learner. OSG can definitely be used with WinForms. It sounds like you're running into some project configuration issue though. If you can post your error messages we might be able to provide better help. -Mike -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of ijustfu Sent: Thursday, August 02, 2007 4:25 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] A simple question from an learner. Dear Robert. I build a simple OSG program with visual studio2005.net. I use c++ language , and select window forms application, then get the following codes: #include stdafx.h #include Form1.h #include osgViewer/Viewer #include osgDB/ReadFile using namespace VGEForPRDAirPollution; [STAThreadAttribute] int main(arraySystem::String ^ ^args) { // Enabling Windows XP visual effects before any
[osg-users] A simple question from an learner.
Dear Robert. I build a simple OSG program with visual studio2005.net. I use c++ language , and select window forms application, then get the following codes: #include stdafx.h #include Form1.h #include osgViewer/Viewer #include osgDB/ReadFile using namespace VGEForPRDAirPollution; [STAThreadAttribute] int main(arraySystem::String ^ ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and run it Application::Run(gcnew Form1()); osgViewer::Viewer viewer; viewer.setSceneData(osgDB::readNodeFile(cow.osg)); return viewer.run(); } After adding osgViewerd.lib and osgDBd.lib into project, compile it but fund so many warnings and errors. Above codes can be run under 'win32 console application'(c++). Does above means OSG can not be used under window forms application? If yes, is there any setting of solution environment? Thanks. Bingli ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] 答复: A simple question from an learner.
Dear Mike, Thanks for you help. There are so many warnings and errors. Following are some statements: 1-- Build started: Project: VGEForPRDAirPollution, Configuration: Debug Win32 -- 1Compiling... 1VGEForPRDAirPollution.cpp 1C:\OpenSceneGraph2.0\OpenSceneGraph\include\OpenThreads/Mutex(40) : warning C4272: 'OpenThreads::Mutex::Mutex' : is marked __declspec(dllimport); must specify native calling convention when importing a function. OpenThreads::Mutex::`vftable'' : per-appdomain symbol should not be marked with __declspec(dllimport) 1C:\OpenSceneGraph2.0\OpenSceneGraph\include\osg/Referenced(64) : warning C4272: 'osg::Referenced::ref' : is marked .. 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A0C) public: void __clrcall osg::Referenced::ref(void)const ([EMAIL PROTECTED]@osg@@$$FQBMXXZ) referenced in function public: __clrcall osg::ref_ptrclass osg::Referenced::ref_ptrclass osg::Referenced(class osg::ref_ptrclass osg::Referenced const ) ([EMAIL PROTECTED]@osg@@@osg@@[EMAIL PROTECTED]@@Z) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A0D) public: void __clrcall osg::Referenced::unref(void)const ([EMAIL PROTECTED]@osg@@$$FQBMXXZ) referenced in function public: __clrcall osg::ref_ptrclass osg::Referenced::~ref_ptrclass osg::Referenced(void) ([EMAIL PROTECTED]@osg@@@osg@@[EMAIL PROTECTED]) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A11) public: __clrcall osg::CopyOp::CopyOp(unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z) referenced in function public: __clrcall osg::RefMatrixd::RefMatrixd(class osg::RefMatrixd const ) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A12) public: virtual __clrcall osg::CopyOp::~CopyOp(void) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function public: __clrcall osg::RefMatrixd::RefMatrixd(class osg::RefMatrixd const ) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A13) public: __clrcall osg::Object::Object(void) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function public: __clrcall osg::StateAttribute::Callback::Callback(void) ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]) 1VGEForPRDAirPollution.obj : error LNK2028: unresolved token (0A14) public: __clrcall osg::Object::Object(bool) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z) referenced in function public: __clrcall osg::RefMatrixd::RefMatrixd(void) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) .. 1Build log was saved at file://d:\VGEForPRDAirPollution\TestNet\VGEForPRDAirPollution\VGEForPRDAirP ollution\Debug\BuildLog.htm 1VGEForPRDAirPollution - 1227 error(s), 4507 warning(s) == Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped == Thanks and regards Bingli The Institute of Space and Earth Information Science, The Chinese university of Hong Kong, Shatin, N.T., Hong Kong, P.R.China -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 Mike Wittman 发送时间: 2007年8月2日 22:23 收件人: osg-users@lists.openscenegraph.org 主题: Re: [osg-users] A simple question from an learner. OSG can definitely be used with WinForms. It sounds like you're running into some project configuration issue though. If you can post your error messages we might be able to provide better help. -Mike -Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of ijustfu Sent: Thursday, August 02, 2007 4:25 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] A simple question from an learner. Dear Robert. I build a simple OSG program with visual studio2005.net. I use c++ language , and select window forms application, then get the following codes: #include stdafx.h #include Form1.h #include osgViewer/Viewer #include osgDB/ReadFile using namespace VGEForPRDAirPollution; [STAThreadAttribute] int main(arraySystem::String ^ ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and run it Application::Run(gcnew Form1()); osgViewer::Viewer viewer; viewer.setSceneData(osgDB::readNodeFile(cow.osg)); return viewer.run(); } After adding osgViewerd.lib and osgDBd.lib into project, compile it but fund so many warnings and errors. Above codes can be run under 'win32 console application'(c++). Does above means OSG can not be used under window forms application? If yes, is there any setting of solution environment? Thanks. Bingli ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g