[osg-users] osgEarth2.0 VS9 Build Error
Hi, I am trying to build osgEarth2.0 (osgearth_2.0_T2011-02-24.zip) using VS9 based upon OSG 2.8.4 . But I got these errors and warnings from VS9. Any help would be appreciated. === Warning 1 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CompositeTileSource.cpp 180 Warning 2 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CompositeTileSource.cpp 181 Warning 3 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CacheSeed.cpp89 Warning 4 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CacheSeed.cpp123 Warning 5 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 6 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 7 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 8 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 9 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 10 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 11 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 12 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 13 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 14 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 15 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 16 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 17 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 18 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 19 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 20 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 21 warning LNK4099: PDB 'libcurl.pdb' was not
Re: [osg-users] OSG 2.8.4 - CMake with GDAL (VS9-32bit)
Hi Sanghyung, GDAL is not part of the OSG, it's only used by the OSG's gdal plugin, so you shouldn't be setting the GDAL_INCLUDE_DIR to point the OpenSceneGraph, rather you should be pointing it to whereever you have GDAL headers installed - from the sound of it this will be the 3rd party dependencies folder. Robert. On Thu, Jun 9, 2011 at 3:26 PM, Sanghyung Ahn korash0...@gmail.com wrote: Hi, I am newbie here. And I am trying to use osgEarth. So I am installing OSG 2.8.4 first to get started. osgEarth needs GDAL and CURL 3rdParty dependencies. But I think OSG 2.8.4 has GDAL and CURL's necessary INCLUDE_DIR and LIBRARY. But when I try to build using CMake 2.8.4 to Visual Studio 9 (2008-32bit), it finds CURL, but doesn't GDAL. The values of GDAL_INCLUDE_DIR and GDAL_LIBRARY are: 1. GDAL_INCLUDE_DIR | GDAL_INCLUDE_DIR-NOTFOUND 2. GDAL_LIBRARY | GDAL_LIBRARY-NOTFOUND Why CMake cannot locate those two names? Do I have to set GDAL_INCLUDE_DIR manually to C:\OpenSceneGraph-2.8.4\3rdParty\include. If so, the library of gdal_i.lib is the one that I have to locate manually for GDAL_LIBRARY? I know that this doesn't affect to run OSG only. I just want to make sure this for osgEarth prerequisites. I really need help here. Thank you! Cheers, Sanghyung -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40277#40277 ___ 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 review: 2.8.5 press release
Hi Paul, On Fri, Jun 10, 2011 at 12:09 AM, Paul Martz pma...@skew-matrix.com wrote: Hi all -- I've placed a short paragraph at the main OSG wiki home page, which links to the press release here: http://www.openscenegraph.org/projects/osg/wiki/News/Press/OSG2.8.5?version=1 Please review this when you have a second. If you spot any typos, please don't hesitate to edit and fix. Thanks! Thanks for the putting up the page. I've just read it and feel that the info abou the community size/role is repeated albeit with slightly different phrasing. We could probably combine the paragraphs or just cut out the repitition. Perhaps one tweak would be to quote the number of contributors in the paragraph that leads with 2.8.5. Robert, I lack permission to edit the Project News page or the Download page, so please update those as time allows. I'll up date this once I've completed my trawl through my emails. For the Project News page, you could just cut and paste what I've placed on the wiki home page. For the downloads page, you could copy what is already there for 2.8.4, update the svn URL, and reference the source zip that Eric S mentioned in a recent post. Will do. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [vpb] How to convert texture file to same coordinate system as height file
Hi Abhishek, I can't recall off the top of my head the gdal command options you require, so to answer your question would have to head over to the gdal website and read up on the commands... So it would be quicker to just go check out the gdal website out yourself, there'll do a much better job of explaining the usage and background functionality than I ever could. Robert On Fri, Jun 10, 2011 at 4:54 AM, abhishek agarwal abhishek0agar...@gmail.com wrote: Hi, I have a .dem file which i'm using as height and .tif file as texture. Height file has latitude and longitude coordinate system but texture file do not. I want to create .osg file combining both using osgdem... -cs +proj=latlong +datum=WGS84 -o ... but its giving some error.. Should both files(height texture) contain same coordinate system(geogcs) for me to able to use osgdem, for i want to retrieve latitude and longitude data at each point of the terrain? I have given the output of gdalinfo of both files down. Can you help me with gdal(command) to convert texture file to same coordinate system as height file so that i can use them to create .osg file using osgdem and then extract latitudelongitude data for each poit on the terrain. height file:: Driver: USGSDEM/USGS Optional ASCII DEM (and CDED) Size is 1802, 1802 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.257223563, AUTHORITY[EPSG,7030]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0, AUTHORITY[EPSG,8901]], UNIT[degree,0.0174532925199433, AUTHORITY[EPSG,9108]], AXIS[Lat,NORTH], AXIS[Long,EAST], AUTHORITY[EPSG,4326]] Origin = (75.7498616,34.7504166) Pixel Size = (0.0002778,-0.0002778) Metadata: AREA_OR_POINT=Point Corner Coordinates: Upper Left ( 75.7498611, 34.7504167) ( 75d44'59.50E, 34d45'1.50N) Lower Left ( 75.7498611, 34.2498611) ( 75d44'59.50E, 34d14'59.50N) Upper Right ( 76.2504167, 34.7504167) ( 76d15'1.50E, 34d45'1.50N) Lower Right ( 76.2504167, 34.2498611) ( 76d15'1.50E, 34d14'59.50N) Center ( 76.0001389, 34.5001389) ( 76d 0'0.50E, 34d30'0.50N) Band 1 Block=1802x1802 Type=Int16, ColorInterp=Undefined NoData Value=-32767 Unit Type: m texture file:: Driver: GTiff/GeoTIFF Size is 1802, 1802 Coordinate System is `' Metadata: TIFFTAG_SOFTWARE=IrfanView TIFFTAG_XRESOLUTION=762 TIFFTAG_YRESOLUTION=762 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1802.0) Upper Right ( 1802.0, 0.0) Lower Right ( 1802.0, 1802.0) Center ( 901.0, 901.0) Band 1 Block=1802x1 Type=Byte, ColorInterp=Red Band 2 Block=1802x1 Type=Byte, ColorInterp=Green Band 3 Block=1802x1 Type=Byte, ColorInterp=Blue Thank you! Cheers, abhishek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40322#40322 ___ 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] [vpb] is the a bug? vpb under mfc environment.
Hi, I have a .ive model generated by vpb,and I used the osg example osgviewerMFCd.exe(debug version) to load it,loading successed,but after I rotated,translated or draged the model for a while,the app would crash randomly.but,osgviewerMFC.exe(release version)runs will. is there any problem with vpb model running under mfc debug mode? it seems due to thread confilct?no idea..anyone can help? ps:osgviewer can run the ive model without crash. Thank you! Cheers, lin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40320#40320 Attachments: http://forum.openscenegraph.org//files/output_454.jpg http://forum.openscenegraph.org//files/error_120.jpg http://forum.openscenegraph.org//files/call_stack_125.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Select a GPU for rendering on MultiGPU system
Hi, I have a multicore CPU with two GPUs/cards. My application should run two rendering pipelines in parallel each utilizing a GPU. Is there any way to assign GPU1 for pipeline1 and GPU2 for pipeline2 ? Thank you! Cheers, Revanth -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40133#40133 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [forum] Collision between 2 MatrixTransform [Coordinates]
Hi, My name is Leandro and I'm spanish student, I'm working with OSGArt, that is a library to integrate OSG + ARToolKit in Ubuntu 10.10. I think the OSG developers has done a great work with OSG and I want thank you. I'm using OSG with two markers, they control each MatrixTransform and I can draw objects like balls or cones. I want to control the collision between these objects, my problem is que relatives coordinates, I can't get the same coordinates when the objects are in the same position. I've tried several things like this: Code: osg::Vec3 OsgArt::getWorldCenter(osg::MatrixTransform* mt) { osg::MatrixList worldMatrices = mt-getWorldMatrices(); for(osg::MatrixList::iterator itr = worldMatrices.begin(); itr != worldMatrices.end(); ++itr) { osg::Matrix matrix = *itr; osg::Vec3 center = mt-getBound().center() * matrix; std::coutNodemt-getName(); std::coutcenter=center; std::coutworldMatrix=cameraMatrixstd::endl; return center; } } or Code: computeLocalToWorldMatrix (osg::Matrix matrix, osg::NodeVisitor *nv) Get the transformation matrix which moves from local coords to world coords. computeWorldToLocalMatrix (osg::Matrix matrix, osg::NodeVisitor *nv) Get the transformation matrix which moves from world coords to local coords. and I also tried this: Code: const osg::BoundingSphere bs1 = movingObject-getPat().getBound(); const osg::BoundingSphere bs2 = stationaryObject-getPat().getBound(); if(bs1.intersects(bs2)){ cout Collision OK; } Anyone did something similar? ¿Could someone help me, please? Thank you! Cheers, Leandro. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40206#40206 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgPlugins] OSG 2.9.12 fbx 2011.3.1 static compile issue
Hi @ all, I'm trying to compile OSG 2.9.12 SVN with FBX 2011.3.1 static on Win7 x64 using Visual Studio 2010 Ultimate. FBX-Root: C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1 FBX-Include: C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\include FBX-lib:C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1.dll FBX-libd: C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1d.dll I copied the .dll files from C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\vs2010 because of another thread (viewtopic.php?t=7691highlight=fbx+2011.3.1) to C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib Everytime I try to compile, I get the following error: Code: error LNK1107: Ungültige oder beschädigte Datei: Lesen bei 0x2A8 nicht möglich. C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1.dll In english it's like: Code: error LNK1107: invalid or corrupt file: cannot read at location 0x2A8. C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1.dll I tried to compile other OSG and FBX versions with similar probs ... Does anybody has an idea ( or two ) to solve this problem or to sho me my mistake ??? ___ yours sincerely Julius Tiemann University of Applied Sciences Institut fuer Mediengestaltung Wallstraße 11 D-55122 Mainz [/url] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40280#40280 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] COLLADA plugin: out of memory error.
Hi, I have to load a 75MB Collada model but when I try to open it I get the following error: Error: xmlSAX2Characters: huge text node: out of memory Load failed in COLLADA DOM Load failed in COLLADA DOM conversion osgviewer.exe: No data loaded The model comes from SketchUp and contains no textures, just (a lot of) geometry data (few meshes with lots of vertices). I tried to open it in a text editor but the file is so big that I do not know where to look. Does that error give you a hint on what I should try to look for? Thanks. Alessandro ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] COLLADA plugin: out of memory error.
Hi Alessandro, This sound like a COLLADA problem to me, so the best place to look for a solution will be COLLADA forums and source code. On the OSG side a 75Mb data file is something that load comfortably on an modern PC, so unless there is a specific COLLADA usage bug instigated in our dae plugin I would guess that look for the bug and solution in the OSG will be fruitless. Once you do resove the COLLADA problem I would expect things to work fine on the OSG side. Robert. On Fri, Jun 10, 2011 at 10:06 AM, Alessandro Terenzi a.tere...@gmail.com wrote: Hi, I have to load a 75MB Collada model but when I try to open it I get the following error: Error: xmlSAX2Characters: huge text node: out of memory Load failed in COLLADA DOM Load failed in COLLADA DOM conversion osgviewer.exe: No data loaded The model comes from SketchUp and contains no textures, just (a lot of) geometry data (few meshes with lots of vertices). I tried to open it in a text editor but the file is so big that I do not know where to look. Does that error give you a hint on what I should try to look for? Thanks. Alessandro ___ 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] OSG based aplication nominated in CG Architect Awards
Hi Alberto, congratulations for the nominee, your application is really amazing and the video is worth seeing up to the very end! I'd like to ask you something, if you don't mind: 1) how do you cap holes when performing dynamic clipping? 2) is global illumination calculated in real-time as well? 3) how did you integrated panoramas in OSG? Thanks and, again, congrats to you and to everyone else that worked with you on the project! Regards. Alessandro On Wed, Jun 8, 2011 at 8:48 PM, Alberto Jaspe aja...@gmail.com wrote: Hello people! Lot of time without writing anything here. Anyway I've been using a lot OSG in almost all my projects. I just one to tell you that one of them have just been nominated in the CG Architect Awards 2011, for Best Real-Time Application, and is completely based on OpenSceneGraph. It's called Spatial, volumetric and sectional analysis of the Cathedral of Santiago de Compostela. http://3dawards.cgarchitect.com/nominees/view/realtime/1099 So never is late to thank the community, because without you this projects are not possible. -- *Alberto Jaspe* *Computer Graphics RD Guy* http://albertojaspe.net ___ 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] [osgPlugins] OSG 2.9.12 fbx 2011.3.1 static compile issue
I think you misunderstood that other thread, you don't need to copy any DLL files. The latest FBX SDK (2012.1) makes everything much simpler so I recommend you install that and get the latest OpenSceneGraph and hopefully this hassle will be avoided On 9 June 2011 15:55, Julius Tiemann julius.tiem...@img.fh-mainz.de wrote: Hi @ all, I'm trying to compile OSG 2.9.12 SVN with FBX 2011.3.1 static on Win7 x64 using Visual Studio 2010 Ultimate. FBX-Root: C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1 FBX-Include: C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\include FBX-lib:C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1.dll FBX-libd: C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1d.dll I copied the .dll files from C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\vs2010 because of another thread (viewtopic.php?t=7691highlight=fbx+2011.3.1) to C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib Everytime I try to compile, I get the following error: Code: error LNK1107: Ungültige oder beschädigte Datei: Lesen bei 0x2A8 nicht möglich. C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1.dll In english it's like: Code: error LNK1107: invalid or corrupt file: cannot read at location 0x2A8. C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1\lib\fbxsdk_20113_1.dll I tried to compile other OSG and FBX versions with similar probs ... Does anybody has an idea ( or two ) to solve this problem or to sho me my mistake ??? ___ yours sincerely Julius Tiemann University of Applied Sciences Institut fuer Mediengestaltung Wallstraße 11 D-55122 Mainz [/url] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40280#40280 ___ 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] Meta-data in core OSG - project started
Hi Peter, On Thu, Jun 9, 2011 at 10:07 PM, Peter Amstutz peter.amst...@tseboston.com wrote: I understand the circular reference problem with setting _userDataContainer to this, so overriding get/setUserDataContainer() and ignoring _userDataContainer seems like a reasonable solution to me. Making _userDataContainer a private (not protected) field of osg::Object prevents end-runs around subclasses that overrides getUserDataContainer(). Having UserDataContainer::getUserDataContainer() return this would still create a circular reference as any code that chained calls to use data would end up in an infinite loop. The osg::Object serializers automatically write out the UserDataContainer so is one example of code that would end up in an infinite loop. One could put work arounds in to such code but it's not particularily robust. Logically I don't think it make sense either, as osg::Object agregates UserDataContainer, and UserDataContainer is a osg::Object so should logically do the same. I don't think the UserDataContainer having an active getUserDataContainer() is a problem, but osg::Object::set/getUserValue not working how you'd expect in on a UserDataContainer is so I would suggest that this template functions implementation be tweaked to return use this pointer if it's dynamic_cast to UserDataContainer. I have gone for the following implemetation: /** provide implementation of osg::Object::getUserValue(..) template*/ templatetypename T bool osg::Object::getUserValue(const std::string name, T value) const { typedef TemplateValueObjectT UserValueObject; const osg::UserDataContainer* udc = dynamic_castconst osg::UserDataContainer*(this); if (!udc) udc = _userDataContainer; const UserValueObject* uvo = udc ? dynamic_castconst UserValueObject*(udc-getUserObject(name)) : 0; if (uvo) { value = uvo-getValue(); return true; } else { return false; } } /** provide implementation of osg::Object::setUserValue(..) template.*/ templatetypename T void osg::Object::setUserValue(const std::string name, const T value) { typedef TemplateValueObjectT UserValueObject; osg::UserDataContainer* udc = dynamic_castosg::UserDataContainer*(this); if (!udc) { getOrCreateUserDataContainer(); udc = _userDataContainer; } unsigned int i = udc-getUserObjectIndex(name); if (iudc-getNumUserObjects()) udc-setUserObject(i, new UserValueObject(name,value)); else udc-addUserObject(new UserValueObject(name,value)); } Let me know if you spot a problem with this approach. Cheers, Robert. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg::AnimationPathCallback Volocity
Hi Danny, try using acb-setTimeMultiplier( 2.0f ) I am not sure of this and still looking ... Mohamed ALJI -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40337#40337 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgEarth2.0 VS9 Build Error
Korash, Please see my response in the osgEarth forum. (Check your GEOS paths; make sure you are using GEOS 3.2+) Glenn Waldron / Pelican Mapping / @glennwaldron On Fri, Jun 10, 2011 at 3:42 AM, Sanghyung Ahn korash0...@gmail.com wrote: Hi, I am trying to build osgEarth2.0 (osgearth_2.0_T2011-02-24.zip) using VS9 based upon OSG 2.8.4 . But I got these errors and warnings from VS9. Any help would be appreciated. === Warning 1 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CompositeTileSource.cpp 180 Warning 2 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CompositeTileSource.cpp 181 Warning 3 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CacheSeed.cpp89 Warning 4 warning C4018: '' : signed/unsigned mismatch c:\osgEarth-2.0\gwaldron-osgearth-dbaa285\src\osgEarth\CacheSeed.cpp123 Warning 5 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 6 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 7 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 8 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 9 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 10 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 11 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 12 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 13 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 14 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 15 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 16 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 17 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 18 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 19 warning LNK4099: PDB 'libcurl.pdb' was not found with 'C:\OpenSceneGraph-2.8.4\3rdParty\lib\libcurlD.lib' or at 'C:\osgEarth-2.0\gwaldron-osgearth-dbaa285\build\lib\Debug\libcurl.pdb'; linking object as if no debug info libcurlD.lib Warning 20 warning LNK4099: PDB 'libcurl.pdb' was not found with
Re: [osg-users] please review: 2.8.5 press release
I have the .zip file ready, and the Fedora 14 packages ready. Where should I upload them? I am still working on Centos5 (had a build problem). Eric On Fri, Jun 10, 2011 at 4:15 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Paul, On Fri, Jun 10, 2011 at 12:09 AM, Paul Martz pma...@skew-matrix.com wrote: Hi all -- I've placed a short paragraph at the main OSG wiki home page, which links to the press release here: http://www.openscenegraph.org/projects/osg/wiki/News/Press/OSG2.8.5?version=1 Please review this when you have a second. If you spot any typos, please don't hesitate to edit and fix. Thanks! Thanks for the putting up the page. I've just read it and feel that the info abou the community size/role is repeated albeit with slightly different phrasing. We could probably combine the paragraphs or just cut out the repitition. Perhaps one tweak would be to quote the number of contributors in the paragraph that leads with 2.8.5. Robert, I lack permission to edit the Project News page or the Download page, so please update those as time allows. I'll up date this once I've completed my trawl through my emails. For the Project News page, you could just cut and paste what I've placed on the wiki home page. For the downloads page, you could copy what is already there for 2.8.4, update the svn URL, and reference the source zip that Eric S mentioned in a recent post. Will do. Robert. ___ 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] [osgPlugins] Difficulties to load images from memory
Hello community, I'm stuck in a perhaps small problem but I don't know which way to go. I'd like to use the image loaders OSG implements. I've succesfully fetched images from web links and my own HD. However, now I'm trying to do the same with an image stored in a string, in main memory. My OSG version is 2.9.9. The extension for the file is png, and considering s is the string containing the image, I've tried the following portion of code: Code: osg::ref_ptrosg::Image image; osgDB::ReaderWriter* rw = osgDB::Registry::instance()-getReaderWriterForExtension(png); if (rw) { osgDB::ReaderWriter::ReadResult rr = rw-readImage(s); if ( rr.success() ) image = rr.takeImage(); } From debugging the code, I can see the program executes readImage, but since rr.success() is false, the image is not taken. I'm inferring the png plugin doesn't implement this readImage method. Am I missing something? Would you recommend any solution? Thank you! Cheers, Daniel -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40344#40344 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Meta-data in core OSG - project started
Hi Robert, hi all, first, thank you for what you've done with this project! I must say i didn't expect the meta data to be in before the 3.0 ... Right now, Sukender is more or less dying under his heavy workload, so I think he reads his emails but unfortunately doesn't have enough time to deeply look into everything you've said. As for me I have two main questions: 1. This first question is not directly linked with the meta feature it's just that i'm still very new to OSG and even more to serialization. How are we going to serialize a custom type meta in our container? I've looked into the UserDataContainer serializer, and I get that when it serializes the _objectList, every object serialializer is called depending on the object type. But I still couldn't figure how and where I should specify the proper serialization for a custom object. 2. When I see the 3 diffent attributes in the UserDataContainer for _userData, _descriptionList and _objectList, I don't know if there's something awkward, or if I don't fully understand the issues. The _userData and _desciptionList are, to me, meta values like any other meta value, so why the special treatment? It makes the UserDataContainer a little heavier to have these three attributes instead of one std::vector. Couldn't we imagine some kind of _userData and _desciptionList subclassing from Object? Maybe this way we could make UserDataConainer inherit from std::vector directly? Instead of being a container containing our real containers. Well I hope my questions are not off-board ;) Gregoire. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] osgPPU and the stencil buffer
Hi Miguel Your code seem good. I am not familiar with MLAA and its optimization. Have you try gDEBugger, it allow you to see the StencilBuffer at anytime. You're right, use of osg::ClearNode between osgPPU::Unit is probably not a good idea If you could provide an simple example, I could play and search on my side. Cheers David Callu 2011/6/6 Miguel Angel Exposito rad...@gmail.com Thanks David! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40121#40121 ___ 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] error compiling 2.9.16 for iOS
Hi Robert, i'm trying to compile the 2.9.16 version for iOS, at the moment only for the simulator (checked out this morning) but I encountering some errors about GL_INENSITY: /blah/blah/OpenSceneGraph/src/osg/ImageUtils.cpp:473: error: GL_INTENSITY was not declared in this scope /blah/blah/OpenSceneGraph/src/osg/ImageUtils.cpp: error: Semantic Issue: Use of undeclared identifier 'GL_INTENSITY' and about the ReaderWriterImageIO_IOS.cpp: /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:16:34: error: ImageIO/CGImageSource.h: No such file or directory /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:90: error: CGImageSourceRef was not declared in this scope /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:90: error: expected `;' before source_ref /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:116: error: source_ref was not declared in this scope /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:116: error: CGImageSourceCreateWithDataProvider was not declared in this scope /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:126: error: CGImageSourceCreateImageAtIndex was not declared in this scope What's wrong? Thank you in advance! Massimo -- ATTENZIONE: le informazioni contenute in questo messaggio sono da considerarsi confidenziali ed il loro utilizzo e' riservato unicamente al destinatario sopra indicato. Chi dovesse ricevere questo messaggio per errore e' tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo. WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [vpb] How to convert texture file to same coordinatesystem as height file
Try using the following on your texture file (intexturefile)... gdalwarp -t_srs +proj=latlong +datum=WGS84 -r bilinear intexturefile outtexturefile outtexturefile will then be used as input for osgdem. -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of abhishek agarwal Sent: Thursday, June 09, 2011 9:55 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] [vpb] How to convert texture file to same coordinatesystem as height file Hi, I have a .dem file which i'm using as height and .tif file as texture. Height file has latitude and longitude coordinate system but texture file do not. I want to create .osg file combining both using osgdem... -cs +proj=latlong +datum=WGS84 -o ... but its giving some error.. Should both files(height texture) contain same coordinate system(geogcs) for me to able to use osgdem, for i want to retrieve latitude and longitude data at each point of the terrain? I have given the output of gdalinfo of both files down. Can you help me with gdal(command) to convert texture file to same coordinate system as height file so that i can use them to create .osg file using osgdem and then extract latitudelongitude data for each poit on the terrain. height file:: Driver: USGSDEM/USGS Optional ASCII DEM (and CDED) Size is 1802, 1802 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.257223563, AUTHORITY[EPSG,7030]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0, AUTHORITY[EPSG,8901]], UNIT[degree,0.0174532925199433, AUTHORITY[EPSG,9108]], AXIS[Lat,NORTH], AXIS[Long,EAST], AUTHORITY[EPSG,4326]] Origin = (75.7498616,34.7504166) Pixel Size = (0.0002778,-0.0002778) Metadata: AREA_OR_POINT=Point Corner Coordinates: Upper Left ( 75.7498611, 34.7504167) ( 75d44'59.50E, 34d45'1.50N) Lower Left ( 75.7498611, 34.2498611) ( 75d44'59.50E, 34d14'59.50N) Upper Right ( 76.2504167, 34.7504167) ( 76d15'1.50E, 34d45'1.50N) Lower Right ( 76.2504167, 34.2498611) ( 76d15'1.50E, 34d14'59.50N) Center ( 76.0001389, 34.5001389) ( 76d 0'0.50E, 34d30'0.50N) Band 1 Block=1802x1802 Type=Int16, ColorInterp=Undefined NoData Value=-32767 Unit Type: m texture file:: Driver: GTiff/GeoTIFF Size is 1802, 1802 Coordinate System is `' Metadata: TIFFTAG_SOFTWARE=IrfanView TIFFTAG_XRESOLUTION=762 TIFFTAG_YRESOLUTION=762 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left (0.0,0.0) Lower Left (0.0, 1802.0) Upper Right ( 1802.0,0.0) Lower Right ( 1802.0, 1802.0) Center ( 901.0, 901.0) Band 1 Block=1802x1 Type=Byte, ColorInterp=Red Band 2 Block=1802x1 Type=Byte, ColorInterp=Green Band 3 Block=1802x1 Type=Byte, ColorInterp=Blue Thank you! Cheers, abhishek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40322#40322 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] error compiling 2.9.16 for iOS
Hi, can you test the attached ImageUtils.cpp? OpenGL ES doesn't know GL_INTENSITY, so I added an include to osg/Texture, as there are some defines... the ReaderWriterImageIO_IOS.cpp compiles fine on my end, don't know what's wrong. cheers, Stephan Am 10.06.11 16:06, schrieb massimo.ri...@acsys.it: Hi Robert, i'm trying to compile the 2.9.16 version for iOS, at the moment only for the simulator (checked out this morning) but I encountering some errors about GL_INENSITY: /blah/blah/OpenSceneGraph/src/osg/ImageUtils.cpp:473: error: ‘GL_INTENSITY’ was not declared in this scope /blah/blah/OpenSceneGraph/src/osg/ImageUtils.cpp: error: Semantic Issue: Use of undeclared identifier 'GL_INTENSITY' and about the ReaderWriterImageIO_IOS.cpp: /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:16:34: error: ImageIO/CGImageSource.h: No such file or directory /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:90: error: ‘CGImageSourceRef’ was not declared in this scope /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:90: error: expected `;' before ‘source_ref’ /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:116: error: ‘source_ref’ was not declared in this scope /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:116: error: ‘CGImageSourceCreateWithDataProvider’ was not declared in this scope /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:126: error: ‘CGImageSourceCreateImageAtIndex’ was not declared in this scope What's wrong? Thank you in advance! Massimo -- ATTENZIONE: le informazioni contenute in questo messaggio sono da considerarsi confidenziali ed il loro utilizzo e' riservato unicamente al destinatario sopra indicato. Chi dovesse ricevere questo messaggio per errore e' tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo. WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library 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. See the * OpenSceneGraph Public License for more details. */ #include float.h #include string.h #include osg/Math #include osg/Notify #include osg/ImageUtils #include osg/Texture namespace osg { struct FindRangeOperator { FindRangeOperator(): _rmin(FLT_MAX), _rmax(-FLT_MAX), _gmin(FLT_MAX), _gmax(-FLT_MAX), _bmin(FLT_MAX), _bmax(-FLT_MAX), _amin(FLT_MAX), _amax(-FLT_MAX) {} float _rmin, _rmax, _gmin, _gmax, _bmin, _bmax, _amin, _amax; inline void luminance(float l) { rgba(l,l,l,l); } inline void alpha(float a) { rgba(1.0f,1.0f,1.0f,a); } inline void luminance_alpha(float l,float a) { rgba(l,l,l,a); } inline void rgb(float r,float g,float b) { rgba(r,g,b,1.0f); } inline void rgba(float r,float g,float b,float a) { _rmin = osg::minimum(r,_rmin); _rmax = osg::maximum(r,_rmax); _gmin = osg::minimum(g,_gmin); _gmax = osg::maximum(g,_gmax); _bmin = osg::minimum(b,_bmin); _bmax = osg::maximum(b,_bmax); _amin = osg::minimum(a,_amin); _amax = osg::maximum(a,_amax); } }; struct OffsetAndScaleOperator { OffsetAndScaleOperator(const osg::Vec4 offset, const osg::Vec4 scale): _offset(offset), _scale(scale) {} osg::Vec4 _offset; osg::Vec4 _scale; inline void luminance(float l) const { l= _offset.r() + l*_scale.r(); } inline void alpha(float a) const { a = _offset.a() + a*_scale.a(); } inline void luminance_alpha(float l,float a) const { l= _offset.r() + l*_scale.r(); a = _offset.a() + a*_scale.a(); } inline void rgb(float r,float
Re: [osg-users] Meta-data in core OSG - project started
Hi Grogoire, On Fri, Jun 10, 2011 at 2:58 PM, Gregoire Tarizzo gregoire.tari...@virtuelcity.com wrote: As for me I have two main questions: 1. This first question is not directly linked with the meta feature it's just that i'm still very new to OSG and even more to serialization. How are we going to serialize a custom type meta in our container? I've looked into the UserDataContainer serializer, and I get that when it serializes the _objectList, every object serialializer is called depending on the object type. But I still couldn't figure how and where I should specify the proper serialization for a custom object. I provide an example of serializer in the osguserdata example, and there are plenty of other examples of serializers in src/osgWrappers/serializes for all the core OSG classes. 2. When I see the 3 diffent attributes in the UserDataContainer for _userData, _descriptionList and _objectList, I don't know if there's something awkward, or if I don't fully understand the issues. The _userData and _desciptionList are, to me, meta values like any other meta value, so why the special treatment? For backwards compatibility UserData is a osg::Referenced, you can't just assign it as a UserObject as this requires the Objects to be subclassed from osg::Object. You could in their have a custom Obect that holds the a ref_ptr for the UserData but this really would be an ungodly hack. In the case of the Descriptions list it's also backwards compatibility - you can fake compatibiity using a custom UserObject just for holding the Descriptions vector but it's a real hack to do so. So the approach I took actually has far less special treatment than the alternative, and fits very seamlessly in with the old API and it's usage. It makes the UserDataContainer a little heavier to have these three attributes instead of one std::vector. Couldn't we imagine some kind of _userData and _desciptionList subclassing from Object? Maybe this way we could make UserDataConainer inherit from std::vector directly? Instead of being a container containing our real containers. The extra cost a ref_ptr and std::vectorstd::string is pretty small, and in normal usage I woudl expect only a small number of UserDataContainer objects to ever be created so this cost really is likely to be very small indeed. Given we have removed the std::vectorstd::string from osg::Node I would expect the new scheme to result in small scene graphs for everybody. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Build OSG using DCMTK
Hi, I'm also using svn/trunk version of the OSG and the 3.6.1 version of DCMTK, and built both myself from source. I'm using a ubuntu 10.04 64 bit linux system with an and I dont know if i have a graphics card or open gl drivers... my laptop is a very old dell inspiron 1525 core 2 duo machine... I tried adjusting the modes using v, and adjusting the alpha values... but it still looks the same.. Do you think it could be a problem because of my machine??? ... Thank you! Cheers, Isha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40351#40351 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] error compiling 2.9.16 for iOS
Hi Stephan, the errors about GL_INTENSITY are fixed with the new ImageUtils.cpp, thank you very much! About the ReaderWriterImageIO_IOS, it seems that the ImageIO framework is not found or some path is wrong... can I try to modify the CMakeLists.txt in the imageio plugin in order to specify where is the framework and to force to compile it? I tried to put the ImageIO framework in to the Resource group of the OpenSceneGraph Xcode project, but the compilation fails again. I should specify that I'm compiling for iOS simulator, with OpenGL ES 1 enabled, iPhone SDK 4.3. Thank you again, Massimo Hi, can you test the attached ImageUtils.cpp? OpenGL ES doesn't know GL_INTENSITY, so I added an include to osg/Texture, as there are some defines... the ReaderWriterImageIO_IOS.cpp compiles fine on my end, don't know what's wrong. cheers, Stephan Am 10.06.11 16:06, schrieb massimo.ri...@acsys.it: Hi Robert, i'm trying to compile the 2.9.16 version for iOS, at the moment only for the simulator (checked out this morning) but I encountering some errors about GL_INENSITY: /blah/blah/OpenSceneGraph/src/osg/ImageUtils.cpp:473: error: GL_INTENSITY was not declared in this scope /blah/blah/OpenSceneGraph/src/osg/ImageUtils.cpp: error: Semantic Issue: Use of undeclared identifier 'GL_INTENSITY' and about the ReaderWriterImageIO_IOS.cpp: /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:16:34: error: ImageIO/CGImageSource.h: No such file or directory /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:90: error: CGImageSourceRef was not declared in this scope /blah/blah/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:90: error: expected `;' before source_ref /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:116: error: source_ref was not declared in this scope /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:116: error: CGImageSourceCreateWithDataProvider was not declared in this scope /blah/blah/Develop/OpenSceneGraph/src/osgPlugins/imageio/ReaderWriterImageIO_IOS.cpp:126: error: CGImageSourceCreateImageAtIndex was not declared in this scope What's wrong? Thank you in advance! Massimo -- ATTENZIONE: le informazioni contenute in questo messaggio sono da considerarsi confidenziali ed il loro utilizzo e' riservato unicamente al destinatario sopra indicato. Chi dovesse ricevere questo messaggio per errore e' tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo. WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. -- ___ 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 -- ATTENZIONE: le informazioni contenute in questo messaggio sono da considerarsi confidenziali ed il loro utilizzo e' riservato unicamente al destinatario sopra indicato. Chi dovesse ricevere questo messaggio per errore e' tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo. WARNING: This message contains confidential and/or proprietary information which may be subject to privilege or immunity and which is intended for use of its addressee only. Should you receive this message in error, you are kindly requested to inform the sender and to definitively remove it from any paper or electronic format. -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] please review: 2.8.5 press release
On 6/10/2011 2:15 AM, Robert Osfield wrote: Thanks for the putting up the page. I've just read it and feel that the info abou the community size/role is repeated albeit with slightly different phrasing. We could probably combine the paragraphs or just cut out the repitition. Perhaps one tweak would be to quote the number of contributors in the paragraph that leads with 2.8.5. OK. I tried to remove some of the repetition. Not really sure how to put an exact headcount on the number of contributors for 2.8.5, so the current text is vague on this point. Thanks for your help with this release! -Paul Robert, I lack permission to edit the Project News page or the Download page, so please update those as time allows. I'll up date this once I've completed my trawl through my emails. For the Project News page, you could just cut and paste what I've placed on the wiki home page. For the downloads page, you could copy what is already there for 2.8.4, update the svn URL, and reference the source zip that Eric S mentioned in a recent post. Will do. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- -Paul Martz Skew Matrix Software http://www.skew-matrix.com/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] error compiling 2.9.16 for iOS
Hi Massimo, Am 10.06.11 17:05, schrieb massimo.ri...@acsys.it: About the ReaderWriterImageIO_IOS, it seems that the ImageIO framework is not found or some path is wrong... can I try to modify the CMakeLists.txt in the imageio plugin in order to specify where is the framework and to force to compile it? I tried to put the ImageIO framework in to the Resource group of the OpenSceneGraph Xcode project, but the compilation fails again. I should specify that I'm compiling for iOS simulator, with OpenGL ES 1 enabled, iPhone SDK 4.3. I updated trunk, created a fresh xcode-project files for the simulator via cmake and build successfully the imageio-plugin. There's no need for referencing the imageio-framework, as the plugin is linked statically - that means, you'll have to add the imageio-framework to your app which is using the imageio-plugin. for completeness sake, here's my cmake-command: cd OSG_ROOT mkdir osg_build cd osg_build cmake -G Xcode \ -D OSG_BUILD_PLATFORM_IPHONE_SIMULATOR:BOOL=ON \ -D BUILD_OSG_APPLICATIONS:BOOL=OFF \ -D OSG_BUILD_FRAMEWORKS:BOOL=OFF \ -D OSG_WINDOWING_SYSTEM:STRING=IOS \ -D CMAKE_OSX_ARCHITECTURES:STRING=i386 \ -D OSG_GL1_AVAILABLE:BOOL=OFF \ -D OSG_GL2_AVAILABLE:BOOL=OFF \ -D OSG_GLES1_AVAILABLE:BOOL=ON \ -D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \ -D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \ -D OSG_GL_LIBRARY_STATIC:BOOL=OFF \ -D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \ -D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \ -D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \ -D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \ -D DYNAMIC_OPENTHREADS:BOOL=OFF \ .. Then I opened the xcode project and set the SDK to iphonesimulator and the architecture to i386. (You can set these vars via cmake, but I was impatient) then I compiled the ios-plugin, and it worked out of the box. I am using the 4.3 SDK and Xcode 3.2.x cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Difficulties to load images from memory
Hi Daniel, On 10/06/11 15:56 , Daniel Cámpora wrote: I'd like to use the image loaders OSG implements. I've succesfully fetched images from web links and my own HD. However, now I'm trying to do the same with an image stored in a string, in main memory. My OSG version is 2.9.9. The extension for the file is png, and considering s is the string containing the image, I've tried the following portion of code: Code: osg::ref_ptrosg::Image image; osgDB::ReaderWriter* rw = osgDB::Registry::instance()-getReaderWriterForExtension(png); if (rw) { osgDB::ReaderWriter::ReadResult rr = rw-readImage(s); if ( rr.success() ) image = rr.takeImage(); } None of the plugins support reading from a string (a string is always interpreted as a file name), but some support reading from a stream, which can be a stringstream. Try (from memory): std::stringstream ss(s); rw-readImage(ss); Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] COLLADA plugin: out of memory error.
This actually looks like an issue with libxml2, one of the dependencies of COLLADA-DOM. It might be that the bundled version has a bug, which would be an easy fix. What platform are you on? (Windows, Linux, Mac, other) Do you have libxml2 installed systemwide and did the build of collada-dom properly use that system version? What version is it? And, what version of COLLADA-DOM are you using, and with what build system? (makefiles or CMake) Ryan On Fri, Jun 10, 2011 at 4:11 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Alessandro, This sound like a COLLADA problem to me, so the best place to look for a solution will be COLLADA forums and source code. On the OSG side a 75Mb data file is something that load comfortably on an modern PC, so unless there is a specific COLLADA usage bug instigated in our dae plugin I would guess that look for the bug and solution in the OSG will be fruitless. Once you do resove the COLLADA problem I would expect things to work fine on the OSG side. Robert. On Fri, Jun 10, 2011 at 10:06 AM, Alessandro Terenzi a.tere...@gmail.com wrote: Hi, I have to load a 75MB Collada model but when I try to open it I get the following error: Error: xmlSAX2Characters: huge text node: out of memory Load failed in COLLADA DOM Load failed in COLLADA DOM conversion osgviewer.exe: No data loaded The model comes from SketchUp and contains no textures, just (a lot of) geometry data (few meshes with lots of vertices). I tried to open it in a text editor but the file is so big that I do not know where to look. Does that error give you a hint on what I should try to look for? Thanks. Alessandro ___ 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 -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] Difficulties to load images from memory
Hi Ulrich, Thanks for the answer. Shortly before your answer I found out I could try the istringstream, but I still can't get it to work. The direct conversion is not working out of the box for me, it might be related to the string not being correctly generated (png crashes, jpeg gives a Corrupt JPEG data pop up). I'll keep trying. Thank you! Cheers, Daniel -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40358#40358 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG based aplication nominated in CG Architect Awards
Hi, Thanks Alsessandro and Ulrich for your feedback :) Asking questions... 1) how do you cap holes when performing dynamic clipping? Every poly behind the holes is viewed by its back face. You only have to fill any back face with an uniform color in a fragment program. 2) is global illumination calculated in real-time as well? No. It's a precalculated radiosity solution, with some optimizations in the scenegraph and lighting info per vertex. 3) how did you integrated panoramas in OSG? Well, we had two ways doing that. At one hand, we developed our own panorama library, that textures any panoramic image in the inside face of a sphere, taking care of projections, texture load, movement control, etc. This is a good choose if you need to integrate in any way the panorama in your 3D scene. By the other side and in the last times we had integrated web browsing inside our own GI system, via awesomium. So most times it were faster and more effective using a page with a flash panorama viewer, like kr-pano. Bye and thanks again! Alberto. -- *Alberto Jaspe* *Computer Graphics RD Guy* http://albertojaspe.net ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] From the Qt blog: Threaded OpenGL
Saw this on the Qt blog and thought I'd pass it along, since I've seen the topic come up a few times. Threaded OpenGL in 4.8 http://labs.qt.nokia.com/2011/06/03/threaded-opengl-in-4-8/ Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] please review: 2.8.5 press release
Just wanted to mention that after a few hiccups relating to trying to build WRAPPERS, our build system has produced all the necessary targets and I've published them on the public web site: http://openscenegraph.alphapixel.com/osg/downloads/free-openscenegraph-binary-downloads Whomever edits the download page, you can just copy and paste from the 2.8.4 release because my URL there points to builds for 2.8.[3|4|5| and trunk. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Absolute beginner questions
Okay, I'm back again. I just wrote a quick parser for my cluster files, read some more from an OSG tutorial and then went to poke around in the code. The dilemma now is this: when I include any OSG headers, I get tons of compiler errors eminating from the base OpenGL files (i.e. residing at c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h). What do I need to do to fix this problem? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40363#40363 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Absolute beginner questions
On 6/10/2011 3:27 PM, basil huffman wrote: What do I need to do to fix this problem? Show us a few of the errors from the start of the error listing. Something seems odd here. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Absolute beginner questions
When I include osg/Geode: 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40365#40365 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Absolute beginner questions
On 6/10/2011 3:59 PM, basil huffman wrote: When I include osg/Geode: 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' Read this old topic: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/013760.html I think it's the same issue. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Absolute beginner questions
I'm guessing WINGDIAPI isn't defined, but I have no idea which of the myriad VC project file options might cause this. I advise you to compare your project properties against that of, say, osgconv, to identify what you have set differently. -Paul On 6/10/2011 3:59 PM, basil huffman wrote: When I includeosg/Geode: 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition 1 c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40365#40365 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- -Paul Martz Skew Matrix Software http://www.skew-matrix.com/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Absolute beginner questions
Chris 'Xenon' Hanson wrote: On 6/10/2011 3:59 PM, basil huffman wrote: When I include osg/Geode: 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';' 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition 1c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' Read this old topic: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/013760.html I think it's the same issue. -- Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum bingo! #include windows.h fixed it right up -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40368#40368 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Passing multiple textures in glsl
Hi, I need to handle multiple textures in glsl. Any suggestions how do I do it? Should I use sampler2DArray? How do I use it? Any links I could take reference from? Also, is there a limit to the amount of textures I could load into GPU. I tried loading 25 4096by4096 textures and it crashes when I tried to load more. Is there any ways to increase the amount that I could load? Thank you! Cheers, Linda -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40369#40369 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org