Re: [osg-users] Visual Studio 2010 and iostream
The /FORCE:MULTIPLE issue is still there with CMake 2.8.2. What is gone with 2.8.2 is the problem with the build of OSG itself because the bin and dll are still in Release and Debug directories. -Fred - Brad Christiansen brad.christian...@thalesgroup.com.au a écrit : Hi, As mentioned before, I also had the same issue linking VPB (but not my own application). I also ended up resorting to adding /FORCE:MULTIPLE. This was all done using CMake 2.8.1. I will try with 2.8.2 as you suggested. Did you have to rebuild OSG from scratch to resolve the issue? Cheers, Brad -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: Saturday, 7 August 2010 12:16 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone with CMake 2.8.2 -Fred - Martin Naylor a écrit : Hi Fred, A that explains why I don’t see errors... I am still using vs2008 as VS2010 seems to leave the exe files in the bin and lib folders whenever I build and I had funny linker errors last time ( a few months back). I might have a go at building flightgear later, let you know how it goes or doesn’t! Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 15:21 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Martin, to be precise, I don't see any errors when building OSG. The problem arise when liking the application (here, it is FlightGear). I use 3rd party libs already used for the VS2008 build. VS2010 is used to build OSG and FlightGear. -Fred - Martin Naylor a écrit : Interesting, I have just managed to build it VS2010 with no problems using 2008 libaries. You could try using CMake to generate 2008 projects files and convert them to 2010 using VS2010, see if it makes a difference? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 13:44 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen uploaded some 3rd party binaries built with Visual Studio 2010. (Thanks!) He noted problems with iostream. I still have iostream problems when linking in OSG into my application in specific places under Visual Studio 2010. Does anyone understand what the issue is? Originally, I thought that the 3rd party libraries I was using were built with a previous version of VS and, thus, caused these linking issues when rolled into my application. I would have thought that using 3rd party libraries totally built with vs2010 would have resolved this, but Brad even noted this problem when he originally posted the binaries. Any insight would be appreciated! I also encountered these issues. I ended up adding /FORCE:MULTIPLE to my link arguments. There is a field for that in the link topic of the project properties. -Fred ___ 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 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org DISCLAIMER:--- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced,
Re: [osg-users] parameters
Hi Ricky, I think this link may be of interest to you : http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html Mourad On Mon, Aug 9, 2010 at 3:14 AM, Ricky Flintoff rickyflint...@gmail.comwrote: Hi, I am a little confused now. I was wondering if I can do this now: http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflatNumber=211014 Thank you! Cheers, Ricky -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30633#30633 ___ 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] RGB Color of Texture Map at Intersection
Hi Robert, To see how to compute the tex coords have a look at how it's done in the osgViewer::InteractiveImageHandler, in particular the bool InteractiveImageHandler::mousePosition(..) method implementation found in src/osgViewer/ViewerEventHandlers.cpp. Robert. On Sun, Aug 8, 2010 at 11:45 PM, Robert Youngren robert.young...@hotmail.com wrote: Hi, Right, I understand that I can make a call to osg::Image::getColor(s,t), however how do I convert from world coordinates (intersection on the object) to texture coordinates? Is there a method in osg to do this, or do I need to come up with a coordinate transformation matrix? Clearly this has had to have been done. I guess I can look at the osg source to see how an image is texture mapped onto a 3d object and just do the reverse? Thank you! Cheers, Robert -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30629#30629 ___ 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] Port osgViewer to Haiku, a BeOS clone
Hi, I'm porting OSG to Haiku but, It lacks of an osgViewer afterall someone could create a simple Viewer using our app_server instead Xserver or use a pure Mesa OpenGL instead GLX? ... Thank you! Cheers, Michael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30635#30635 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] FBX plugin compile error in OSG 2.9.8 SVN
Hi Dario, does it work if you move struct PolygonRef{...}; outside the function e.g. to line 650? -Michael (back from holidays!) On 27 July 2010 15:25, Dario Minieri para...@cheapnet.it wrote: Hi, I'm trying to compile OSG 2.9.9 from the SVN but I have some errors with fbx plugin during compilation: Code: [ 84%] Building CXX object src/osgPlugins/fbx/CMakeFiles/osgdb_fbx.dir/fbxRMesh.o In file included from /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:7, from /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:26: /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxMaterialToOsgStateSet.h:65: warning: comma at end of enumerator list In file included from /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:26: /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h: In constructor 'OsgFbxReader::OsgFbxReader(fbxsdk_2011_2::KFbxSdkManager, fbxsdk_2011_2::KFbxScene, FbxMaterialToOsgStateSet, const std::setconst fbxsdk_2011_2::KFbxNode*, std::lessconst fbxsdk_2011_2::KFbxNode*, std::allocatorconst fbxsdk_2011_2::KFbxNode* , const osgDB::Options, OsgFbxReader::AuthoringTool, bool, bool)': /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:37: warning: 'OsgFbxReader::authoringTool' will be initialized after /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:30: warning: 'bool OsgFbxReader::lightmapTextures' /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxReader.h:47: warning: when initialized here /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In member function 'osgDB::ReaderWriter::ReadResult OsgFbxReader::readMesh(fbxsdk_2011_2::KFbxNode*, fbxsdk_2011_2::KFbxMesh*, std::vectorStateSetContent, std::allocatorStateSetContent , const char*)': /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:717: warning: suggest parentheses around assignment used as truth value /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error: template argument for 'templateclass _Alloc class std::allocator' uses local type 'OsgFbxReader::readMesh(fbxsdk_2011_2::KFbxNode*, fbxsdk_2011_2::KFbxMesh*, std::vectorStateSetContent, std::allocatorStateSetContent , const char*)::PolygonRef' /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error: trying to instantiate 'templateclass _Alloc class std::allocator' /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error: template argument 2 is invalid /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:737: error: invalid type in declaration before ';' token /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:807: error: request for member 'push_back' in 'polygonRefList', which is of non-class type 'PolygonRefList' /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:840: error: expected initializer before 'it' /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:841: error: 'it' was not declared in this scope /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:841: error: 'itEnd' was not declared in this scope /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'int getVertexIndex(const fbxsdk_2011_2::KFbxLayerElementTemplateT*, const fbxsdk_2011_2::KFbxMesh*, int, int, int) [with T = fbxsdk_2011_2::KFbxVector4]': /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:563: instantiated from here /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning: enumeration value 'eNONE' not handled in switch /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning: enumeration value 'eBY_EDGE' not handled in switch /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:76: warning: enumeration value 'eALL_SAME' not handled in switch /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'bool layerElementValid(const fbxsdk_2011_2::KFbxLayerElementTemplateT*) [with T = fbxsdk_2011_2::KFbxVector4]': /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:697: instantiated from here /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:59: warning: enumeration value 'eINDEX' not handled in switch /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'bool layerElementValid(const fbxsdk_2011_2::KFbxLayerElementTemplateT*) [with T = fbxsdk_2011_2::KFbxColor]': /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:698: instantiated from here /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:59: warning: enumeration value 'eINDEX' not handled in switch /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp: In function 'bool layerElementValid(const fbxsdk_2011_2::KFbxLayerElementTemplateT*) [with T = fbxsdk_2011_2::KFbxVector2]': /tmp/OpenSceneGraph-2.9.8-SVN/src/osgPlugins/fbx/fbxRMesh.cpp:700: instantiated from here
Re: [osg-users] Port osgViewer to Haiku, a BeOS clone
On 9/08/10 13:55 , Michael Vinícius de Oliv wrote: I'm porting OSG to Haiku Good on ya! :-) but, It lacks of an osgViewer afterall someone could create a simple Viewer using our app_server instead Xserver or use a pure Mesa OpenGL instead GLX? OpenGL is not involved in the creation of an OpenGL context. This is usually done by the windowing system such as X, Windows, OS X Carbon/Cocoa. I'd take a look at SDL, AFAICT they have a Haiku port as well and SDL supports OpenGL so they have to have a way to create a context. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] FBX Plugin convert LOD into OSG correctly?
Hi Dario, no there isn't any LOD support. Of course you're free to add it ;) -Michael On 27 July 2010 16:13, Dario Minieri para...@cheapnet.it wrote: Hi, With my preliminary test the answer is no... Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30322#30322 ___ 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] how to read back from the frame buffer
HI Alice, The osgdistortion example would probably be a good place to start, as it renders the scene to texture using a slave render to texture camera, then has another slave camera render a screen aligned geometry using that texture. The only thing you'd need to change is the osgdistortion example alters the tex coords to achieve the desired distortion, in your case you could just use a single quad with undistorted tex coords. One thing you absolutely don't want to be doing is reading the contents of the frame buffer back into main memory though, this will certainly kill performance - always use a FrameBufferObject (FBO) and associated Texture to render to. The osgdistortion example sets up the render to texture camera to use FBO by default. Robert. On Mon, Aug 9, 2010 at 1:40 AM, Alice Yin yin...@ymail.com wrote: Hi, everyone I am completely a starter of OSG. I just read a few tutorials about OSG. But now, I need to implement my code in openGL to OSG in one week. The main idea is to render the scene twice. The first time I render it in a low resolution, read back from the frame buffer, use the data I get from the buffer to render the second time in normal resolution. Only the second time, the user can see the result. A friend of mine suggest me to read the prerender example, I am doing it, though very slowly. I just want to make sure I am in the right way because the deadline is approaching. Thank you! Alice -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30631#30631 ___ 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] Port osgViewer to Haiku, a BeOS clone
Hi Michael, The first step would be to disable get osgViewer to build without any of X11/Win32/Cocoa/Carbon implementations of GraphicsWindow*.cpp and PixelBuffer*.cpp, to do this will be a pretty straight forward tweak of the src/osgViewer/CMakeLists.txt, there is even a chance it'll compile out of the box... The next step would be try out osgviewerSDL or osgviewerGLUT if either of these primitive OpenGL windowing toolkits are available. These examples use the GraphicsWindowEmbedded feature of osgViewer, it doesn't provide all full threading and multi-context support of osgViewer but will at least get you a window up and a 3d scene rendering. The next step is then to create your own native GraphicsWindow*.cpp and PixelBuffer*.cpp implementations for Haiku, and have CMake automatically select this when building under Haiku. Once you've done this the OSG should be fully functionality and able to done full multi-thread and multi-context viewers like it can on other platforms. Robert. 2010/8/9 Michael Vinícius de Oliv michaelvolive...@yahoo.com.br: Hi, I'm porting OSG to Haiku but, It lacks of an osgViewer afterall someone could create a simple Viewer using our app_server instead Xserver or use a pure Mesa OpenGL instead GLX? ... Thank you! Cheers, Michael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30635#30635 ___ 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] [vpb] Shift of coordinates
Hi, maybe my previous message was a bit vague. I'll try to explain my problem more accurately. I have a georeferenced image with a road in high resolution (0.5m). And I have a vector road in KML-file made with Google Earth. There is exact match between vector road and raster road in Google Earth. I have even made a test in QuantumGIS: I added there the image and KML-file and got the same result - vector road is on raster road. But when I place vector road on a VPB terrain, the road is shifted to the west. There is two logical explanations: 1) Error with the texture in VPB or OSG 2) Error in osg::EllipsoidModel This is gdalinfo for my image: Driver: GTiff/GeoTIFF Files: GeoEye_fus_50sm.tif Size is 39877, 25458 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.2572235629972, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433], AUTHORITY[EPSG,4326]] Origin = (160.053108789177884,54.496583902721099) Pixel Size = (0.06107432741,-0.06107432741) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 160.0531088, 54.4965839) (160d 3'11.19E, 54d29'47.70N) Lower Left ( 160.0531088, 54.3411009) (160d 3'11.19E, 54d20'27.96N) Upper Right ( 160.2966549, 54.4965839) (160d17'47.96E, 54d29'47.70N) Lower Right ( 160.2966549, 54.3411009) (160d17'47.96E, 54d20'27.96N) Center ( 160.1748818, 54.4188424) (160d10'29.57E, 54d25'7.83N) Band 1 Block=39877x1 Type=Byte, ColorInterp=Red Overviews: 19939x12729, 9970x6365, 4985x3183, 2493x1592, 1247x796 Band 2 Block=39877x1 Type=Byte, ColorInterp=Green Overviews: 19939x12729, 9970x6365, 4985x3183, 2493x1592, 1247x796 Band 3 Block=39877x1 Type=Byte, ColorInterp=Blue Overviews: 19939x12729, 9970x6365, 4985x3183, 2493x1592, 1247x796 Regards, Alexander 07.08.2010 13:23, Александр Бобков пишет: Hi, I have a georeferenced image with resolution 0.5m. This image was added to Google Earth Pro and there was created several paths and marks. This is screenshot from Google Earth with a path: http://img155.imageshack.us/i/googleearth.jpg/ Then I created a VPB terrain with the same image. I exported paths from Google Earth to KML file, got geocoordinates and placed them on the VPB terrain. Here is screenshot from the VPB terrain: http://img175.imageshack.us/i/openscenegraph.png/ As you can see, there is a small constant shift to the west. Approximately 1m. How can I fix this shift? What is the reason for it? I use osg::EllipsoidModel to convert coordinates. Coordinates in KML file have a very high precision. For example: 160.1361826749267, 54.43656637255538, 0 Regards, Alexander ___ 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] [vpb] Shift of coordinates
Alexander, Any chance you can make your data available for testing? I would like to see whether osgEarth exhibits the same issue. Glenn Waldron : Pelican Mapping On Mon, Aug 9, 2010 at 6:18 AM, Alexander Bobkov alexbob...@list.ru wrote: Hi, maybe my previous message was a bit vague. I'll try to explain my problem more accurately. I have a georeferenced image with a road in high resolution (0.5m). And I have a vector road in KML-file made with Google Earth. There is exact match between vector road and raster road in Google Earth. I have even made a test in QuantumGIS: I added there the image and KML-file and got the same result - vector road is on raster road. But when I place vector road on a VPB terrain, the road is shifted to the west. There is two logical explanations: 1) Error with the texture in VPB or OSG 2) Error in osg::EllipsoidModel This is gdalinfo for my image: Driver: GTiff/GeoTIFF Files: GeoEye_fus_50sm.tif Size is 39877, 25458 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.2572235629972, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433], AUTHORITY[EPSG,4326]] Origin = (160.053108789177884,54.496583902721099) Pixel Size = (0.06107432741,-0.06107432741) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 160.0531088, 54.4965839) (160d 3'11.19E, 54d29'47.70N) Lower Left ( 160.0531088, 54.3411009) (160d 3'11.19E, 54d20'27.96N) Upper Right ( 160.2966549, 54.4965839) (160d17'47.96E, 54d29'47.70N) Lower Right ( 160.2966549, 54.3411009) (160d17'47.96E, 54d20'27.96N) Center ( 160.1748818, 54.4188424) (160d10'29.57E, 54d25'7.83N) Band 1 Block=39877x1 Type=Byte, ColorInterp=Red Overviews: 19939x12729, 9970x6365, 4985x3183, 2493x1592, 1247x796 Band 2 Block=39877x1 Type=Byte, ColorInterp=Green Overviews: 19939x12729, 9970x6365, 4985x3183, 2493x1592, 1247x796 Band 3 Block=39877x1 Type=Byte, ColorInterp=Blue Overviews: 19939x12729, 9970x6365, 4985x3183, 2493x1592, 1247x796 Regards, Alexander 07.08.2010 13:23, Александр Бобков пишет: Hi, I have a georeferenced image with resolution 0.5m. This image was added to Google Earth Pro and there was created several paths and marks. This is screenshot from Google Earth with a path: http://img155.imageshack.us/i/googleearth.jpg/ Then I created a VPB terrain with the same image. I exported paths from Google Earth to KML file, got geocoordinates and placed them on the VPB terrain. Here is screenshot from the VPB terrain: http://img175.imageshack.us/i/openscenegraph.png/ As you can see, there is a small constant shift to the west. Approximately 1m. How can I fix this shift? What is the reason for it? I use osg::EllipsoidModel to convert coordinates. Coordinates in KML file have a very high precision. For example: 160.1361826749267, 54.43656637255538, 0 Regards, Alexander ___ 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Visual Studio 2010 and iostream
Hi Fred, I just removed cmake 2.8 and installed cmake 2.8.2 and rechecked out OSG and I still have the same issue with exe and dll's not being moved or created in the OSG bin folder, it's a pain everytime you recompile anything as it's a manual copy job.. Just tried it on my 32bit machine and still the same results. I am beginning to suspect it's something different in Windows 7, is anyone else compiling with Windows 7x64/32 and VS2010? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 17:16 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone with CMake 2.8.2 -Fred - Martin Naylor a écrit : Hi Fred, A that explains why I don’t see errors... I am still using vs2008 as VS2010 seems to leave the exe files in the bin and lib folders whenever I build and I had funny linker errors last time ( a few months back). I might have a go at building flightgear later, let you know how it goes or doesn’t! Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 15:21 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Martin, to be precise, I don't see any errors when building OSG. The problem arise when liking the application (here, it is FlightGear). I use 3rd party libs already used for the VS2008 build. VS2010 is used to build OSG and FlightGear. -Fred - Martin Naylor a écrit : Interesting, I have just managed to build it VS2010 with no problems using 2008 libaries. You could try using CMake to generate 2008 projects files and convert them to 2010 using VS2010, see if it makes a difference? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 13:44 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen uploaded some 3rd party binaries built with Visual Studio 2010. (Thanks!) He noted problems with iostream. I still have iostream problems when linking in OSG into my application in specific places under Visual Studio 2010. Does anyone understand what the issue is? Originally, I thought that the 3rd party libraries I was using were built with a previous version of VS and, thus, caused these linking issues when rolled into my application. I would have thought that using 3rd party libraries totally built with vs2010 would have resolved this, but Brad even noted this problem when he originally posted the binaries. Any insight would be appreciated! I also encountered these issues. I ended up adding /FORCE:MULTIPLE to my link arguments. There is a field for that in the link topic of the project properties. -Fred ___ 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 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 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] Widget sustain chinese?
On Mon, 2010-08-09 at 05:57 +, wangafg...@sohu.com wrote: I recomposition osgWidget::label sustain chinese class Label1: public osgWidget::Widget Label1 (const std::string , const std::wstring ); Label1::Label1(const std::string name, const std::wstring label): Widget (name, 0, 0), _text (new osgText::Text()), _textIndex (0) { _text-setAlignment(osgText::Text::LEFT_BOTTOM); _text-setDataVariance(osg::Object::DYNAMIC); if(label.size()) { _text-setText(label.c_str()); _calculateSize(getTextSize()); } setColor(0.0f, 0.0f, 0.0f, 0.0f); } osg::ref_ptrosgText::Text _text; osgText::Text sustain chinese, but osgWidget::Label no other than chinese Label (const std::string = , const std::string = ); Label::Label(const std::string name, const std::string label): Widget (name, 0, 0), _text (new osgText::Text()), _textIndex (0) { _text-setAlignment(osgText::Text::LEFT_BOTTOM); _text-setDataVariance(osg::Object::DYNAMIC); if(label.size()) { _text-setText(label); _calculateSize(getTextSize()); } setColor(0.0f, 0.0f, 0.0f, 0.0f); } can accession sustain widget chinese??? Because of the language issues here, I'm afraid I don't fully understand the question. However, osgWidget::Label uses an osgText::Text object internally, so if it isn't supporting your language or encoding, perhaps osgWidget isn't passing the string along encoded--though I do recall testing that successfully. Do you have anyone that can perhaps translate your question? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Visual Studio 2010 and iostream
Yes I do. Windows 7 64, VS2010, CMake 2.8.2 -Fred - Martin Naylor martinnay...@virginmedia.com a écrit : Hi Fred, I just removed cmake 2.8 and installed cmake 2.8.2 and rechecked out OSG and I still have the same issue with exe and dll's not being moved or created in the OSG bin folder, it's a pain everytime you recompile anything as it's a manual copy job.. Just tried it on my 32bit machine and still the same results. I am beginning to suspect it's something different in Windows 7, is anyone else compiling with Windows 7x64/32 and VS2010? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 17:16 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone with CMake 2.8.2 -Fred - Martin Naylor a écrit : Hi Fred, A that explains why I don’t see errors... I am still using vs2008 as VS2010 seems to leave the exe files in the bin and lib folders whenever I build and I had funny linker errors last time ( a few months back). I might have a go at building flightgear later, let you know how it goes or doesn’t! Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 15:21 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Martin, to be precise, I don't see any errors when building OSG. The problem arise when liking the application (here, it is FlightGear). I use 3rd party libs already used for the VS2008 build. VS2010 is used to build OSG and FlightGear. -Fred - Martin Naylor a écrit : Interesting, I have just managed to build it VS2010 with no problems using 2008 libaries. You could try using CMake to generate 2008 projects files and convert them to 2010 using VS2010, see if it makes a difference? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 13:44 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen uploaded some 3rd party binaries built with Visual Studio 2010. (Thanks!) He noted problems with iostream. I still have iostream problems when linking in OSG into my application in specific places under Visual Studio 2010. Does anyone understand what the issue is? Originally, I thought that the 3rd party libraries I was using were built with a previous version of VS and, thus, caused these linking issues when rolled into my application. I would have thought that using 3rd party libraries totally built with vs2010 would have resolved this, but Brad even noted this problem when he originally posted the binaries. Any insight would be appreciated! I also encountered these issues. I ended up adding /FORCE:MULTIPLE to my link arguments. There is a field for that in the link topic of the project properties. -Fred ___ 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 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 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Visual Studio 2010 and iostream
Mmmm, must be something particular I am doing or something with my setup of VS2010. I am using the cmake-gui,I just enter the same path for 'where is the source code' and 'where to build the binaries', click configure or I have always done this on VS2008, but VS2010 has always created the binaries in OSG_ROOT/bin/debug and lib/debug and release folders. Just to confirm are you doing the same or are using the cmake from a command line? I have tried cmake 2.9.2, 2.8.2 still no success, it must be something with VS2010, I am using the Ultimate version. Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 09 August 2010 17:31 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Yes I do. Windows 7 64, VS2010, CMake 2.8.2 -Fred - Martin Naylor martinnay...@virginmedia.com a écrit : Hi Fred, I just removed cmake 2.8 and installed cmake 2.8.2 and rechecked out OSG and I still have the same issue with exe and dll's not being moved or created in the OSG bin folder, it's a pain everytime you recompile anything as it's a manual copy job.. Just tried it on my 32bit machine and still the same results. I am beginning to suspect it's something different in Windows 7, is anyone else compiling with Windows 7x64/32 and VS2010? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 17:16 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone with CMake 2.8.2 -Fred - Martin Naylor a écrit : Hi Fred, A that explains why I don’t see errors... I am still using vs2008 as VS2010 seems to leave the exe files in the bin and lib folders whenever I build and I had funny linker errors last time ( a few months back). I might have a go at building flightgear later, let you know how it goes or doesn’t! Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 15:21 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Martin, to be precise, I don't see any errors when building OSG. The problem arise when liking the application (here, it is FlightGear). I use 3rd party libs already used for the VS2008 build. VS2010 is used to build OSG and FlightGear. -Fred - Martin Naylor a écrit : Interesting, I have just managed to build it VS2010 with no problems using 2008 libaries. You could try using CMake to generate 2008 projects files and convert them to 2010 using VS2010, see if it makes a difference? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 13:44 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen uploaded some 3rd party binaries built with Visual Studio 2010. (Thanks!) He noted problems with iostream. I still have iostream problems when linking in OSG into my application in specific places under Visual Studio 2010. Does anyone understand what the issue is? Originally, I thought that the 3rd party libraries I was using were built with a previous version of VS and, thus, caused these linking issues when rolled into my application. I would have thought that using 3rd party libraries totally built with vs2010 would have resolved this, but Brad even noted this problem when he originally posted the binaries. Any insight would be appreciated! I also encountered these issues. I ended up adding /FORCE:MULTIPLE to my link arguments. There is a field for that in the link topic of the project properties. -Fred ___ 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 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
Re: [osg-users] Unresolved externals while building Plugins gif/jpeg/png/etc
omdown wrote: omdown wrote: Frederic Bouvier wrote: - Kris Dale a écrit : Kris Dale wrote: Afternoon all! I'm having a bit of an issue I've never run into before trying to build OSG. Hoping someone can point me in the right direction. I have all of the image library .libs and includes in a directory labled ImageLibraries under my third party director. CMake finds all the libs and everything okay, links them into the solution and generates just fine. But, when I go to build, I get unresolved externals on curl, FreeType, GIF, GLUT, JPEG, PNG, and TIFF (and a couple others that I can't remember off hand). General format of the errors are: ReaderWriterPNG.obj : error LNK2019: unresolved external symbol png_get_io_ptr referenced in function void __cdecl png_read_istream(struct png_struct_def *,unsigned char *,unsigned __int64) (?png_read_istream@@YAXPEAUpng_struct_def@@pea...@z) I fixed that by downloading and compiling libpng 1.4 -Fred Thanks for your reply. :) I'm currently trying that out, but I'm having a hell of a time getting it to build (came without zlib but the solution has a zlib project as a dependency...), but do you have any idea why I'm having this problem when I've had no trouble with these libraries before? It's all very strange, and even if this works, I'm not sure what to do about JPEG and the others... Just as a side note, I did a dumpbin /SYMBOLS libjpeg.lib and checked for _jpeg_resync_to_restart and it DOES appear in the list of symbols, but I get a linking error saying it's an unresolved external. Plugins jpeg is set up to link against it... strange? For anyone interested, it turns out... I had accidentally configured cmake to build OSG to x64 while all the third party libs were x86. I could go back and rebuild all the third party libs to x64 but I was having trouble with that sooo.. rebuilt it to x86 and everything seems fine now. :) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30659#30659 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Fwd: Re: floating point exeption in VPB...
Hi Bernardt, Shayne et. al, I've now reviewed Bernadt's change and understand the need for this. To make the required test clearer I feel that it would be worth making an additional test of a valid GeospatialExtents in the form of a GeospatialExtents::nonZeroExtents() method which, this would then replace the use of valid() method in the SourceData code. I have now implemented, tested and checked in this change. I don't have any databases that trigged the numerical error so could you guys do an svn update on the OSG and VPB and test these changes out. Thanks, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Visual Studio 2010 and iostream
Hi, I am also using Win7 64 Ultimate, VS2010 Prof, CMake 2.8.2. I am not sure where the binaries are built as I always use the install target in VS. This places everything correctly in the directory I specified in CMake. Cheers, Brad -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: Tuesday, 10 August 2010 12:31 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Yes I do. Windows 7 64, VS2010, CMake 2.8.2 -Fred - Martin Naylor martinnay...@virginmedia.com a écrit : Hi Fred, I just removed cmake 2.8 and installed cmake 2.8.2 and rechecked out OSG and I still have the same issue with exe and dll's not being moved or created in the OSG bin folder, it's a pain everytime you recompile anything as it's a manual copy job.. Just tried it on my 32bit machine and still the same results. I am beginning to suspect it's something different in Windows 7, is anyone else compiling with Windows 7x64/32 and VS2010? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 17:16 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream This error is gone with CMake 2.8.2 -Fred - Martin Naylor a écrit : Hi Fred, A that explains why I don’t see errors... I am still using vs2008 as VS2010 seems to leave the exe files in the bin and lib folders whenever I build and I had funny linker errors last time ( a few months back). I might have a go at building flightgear later, let you know how it goes or doesn’t! Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 15:21 To: OpenSceneGraph Users Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Martin, to be precise, I don't see any errors when building OSG. The problem arise when liking the application (here, it is FlightGear). I use 3rd party libs already used for the VS2008 build. VS2010 is used to build OSG and FlightGear. -Fred - Martin Naylor a écrit : Interesting, I have just managed to build it VS2010 with no problems using 2008 libaries. You could try using CMake to generate 2008 projects files and convert them to 2010 using VS2010, see if it makes a difference? Regards Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Frederic Bouvier Sent: 06 August 2010 13:44 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Visual Studio 2010 and iostream Hi Jason, - Jason Alexander a écrit : Recently Brad Christiansen uploaded some 3rd party binaries built with Visual Studio 2010. (Thanks!) He noted problems with iostream. I still have iostream problems when linking in OSG into my application in specific places under Visual Studio 2010. Does anyone understand what the issue is? Originally, I thought that the 3rd party libraries I was using were built with a previous version of VS and, thus, caused these linking issues when rolled into my application. I would have thought that using 3rd party libraries totally built with vs2010 would have resolved this, but Brad even noted this problem when he originally posted the binaries. Any insight would be appreciated! I also encountered these issues. I ended up adding /FORCE:MULTIPLE to my link arguments. There is a field for that in the link topic of the project properties. -Fred ___ 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 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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list
Re: [osg-users] Transfer osgViewer stream wirelessly to a remote monitor
Hi Jean, Your suggestion to study the function that is called from the code was a very good one indeed. This way, you do not have to Thanks !! Sanat -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30663#30663 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org