[osg-users] [osgPlugins] osgconv osgjs bug file not found
Hi, Apologies if this is not the right place for bug reports. I am trying to convert a model in osgjs format with an external, merged binary file to obj. Textures, transparency, vertex colors etc. are irrelevant; all I care about is the shape. Unfortunately, osgconv reports "file not found." I reproduced this issue with the cow sample from the OpenSceneGraph-Data git repo (after converting it to osgjs, bouncing off of obj because osg to osgjs is also apparently broken). Code: $ ls cow.osg Images $ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.osg cow.frosg.osgjs options useExternalBinaryArray mergeAllBinaryFiles Fatal nb colors 1 != 7772 can't save osgjs file Unable to write to output stream $ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.osg cow.obj Data written to 'cow.obj'. $ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.obj cow.osgjs options useExternalBinaryArray mergeAllBinaryFiles TypedArray Uint16Array cow.bin 34.0078 kb TypedArray Float32Array cow.bin 38.5195 kb TypedArray Float32Array cow.bin 25.6797 kb TypedArray Float32Array cow.bin 38.5195 kb Use a merged binary file 4096 mb Data written to 'cow.osgjs'. $ ls cow.bin cow.frosg.osgjs cow.mtl cow.obj cow.osg cow.osgjs Images $ osgconv cow.osgjs cow_out.osg Error reading file cow.osgjs: file not found Error no data loaded. $ osgconv cow.osgjs cow_out.ogj Error reading file cow.osgjs: file not found Error no data loaded. $ Since you do not distribute binary releases, I can only test my local compilation, so it could theoretically be a problem with my build environs. I get identical results in two test environs: cygwin on win7 x64 and gcc on ubuntu 16 x64. Thank you! Cheers, Sid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74445#74445 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] svn and git versions builds fail
/usr/src/OSG/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp: In function ‘unsigned char* simage_gif_load(std::istream, int*, int*, int*, GifImageStream**)’: /usr/src/OSG/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp:373:44: error: too few arguments to function ‘GifFileType* DGifOpen(void*, InputFunc, int*)’ In file included from /usr/src/OSG/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp:53:0: /usr/include/gif_lib.h:180:14: note: declared here make[2]: *** [src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/ReaderWriterGIF.o] Error 1 make[1]: *** [src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs from /usr/include/gif_lib.h -- GifFileType *DGifOpenFileName(const char *GifFileName, int *Error); GifFileType *DGifOpenFileHandle(int GifFileHandle, int *Error); int DGifSlurp(GifFileType * GifFile); GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error); /* new one (TVT) */ int DGifCloseFile(GifFileType * GifFile); Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Inconsistent errors whilst building OSG
On 21/11/12 20:04, osg-users-requ...@lists.openscenegraph.org wrote: Date: Wed, 21 Nov 2012 08:26:02 + From: Robert Osfieldrobert.osfi...@gmail.com To:sbo...@blueyonder.co.uk,osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Inconsistent errors whilst building OSG Message-ID: CAFN7Y+X7QMcpzqw4JHK+B=zg+modrkjef8cqa67hjovnwz7...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi Sid, It looks like the xinelib library headers have changed since 3.0.x was released. Robert. It seems that way. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Inconsistent errors whilst building OSG
1. Inconsistent errors whilst building OSG (Sid Boyce) -- Message: 1 Date: Sun, 30 Sep 2012 11:58:25 +0100 From: Sid Boyce sbo...@blueyonder.co.uk To: osg-users@lists.openscenegraph.org Subject: [osg-users] Inconsistent errors whilst building OSG Message-ID: 506825d1.4040...@blueyonder.co.uk Content-Type: text/plain; charset=windows-1252; format=flowed Sometimes there are ffmpeg errors, other times deprecated warnings and errors. This has happened in 3.0.0 and 3.0.1 SVN sources. In builds going back a while, osg used to fetch the latest ffmepg sources. The error below is not about ffmpeg but I can download 3.0.1 SVN again and recreate that error. Just before this one I had lots of FFMPEG deprecated warnings and the error. The latest error:- Scanning dependencies of target osgdb_shp Linking CXX shared module ../../../lib/osgPlugins-3.0.1/osgdb_shp.so [ 90%] Built target osgdb_shp [ 90%] Built target osgdb_txf [ 91%] Built target osgdb_bsp [ 92%] Built target osgdb_mdl [ 93%] Built target osgdb_ply Scanning dependencies of target osgdb_txp Linking CXX shared module ../../../lib/osgPlugins-3.0.1/osgdb_txp.so [ 96%] Built target osgdb_txp [ 96%] Building C object src/osgPlugins/xine/CMakeFiles/osgdb_xine.dir/video_out_rgb.o /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c: In function ?rgbout_update_frame_format?: /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2325:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2328:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2331:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2349:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c: In function ?init_class?: /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2772:25: error: ?video_driver_class_t? has no member named ?get_identifier? /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2773:25: error: ?video_driver_class_t? has no member named ?get_description? make[2]: *** [src/osgPlugins/xine/CMakeFiles/osgdb_xine.dir/video_out_rgb.o] Error 1 make[1]: *** [src/osgPlugins/xine/CMakeFiles/osgdb_xine.dir/all] Error 2 make: *** [all] Error 2 Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org End of osg-users Digest, Vol 63, Issue 45 * ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Inconsistent errors whilst building OSG
Sometimes there are ffmpeg errors, other times deprecated warnings and errors. This has happened in 3.0.0 and 3.0.1 SVN sources. In builds going back a while, osg used to fetch the latest ffmepg sources. The error below is not about ffmpeg but I can download 3.0.1 SVN again and recreate that error. Just before this one I had lots of FFMPEG deprecated warnings and the error. The latest error:- Scanning dependencies of target osgdb_shp Linking CXX shared module ../../../lib/osgPlugins-3.0.1/osgdb_shp.so [ 90%] Built target osgdb_shp [ 90%] Built target osgdb_txf [ 91%] Built target osgdb_bsp [ 92%] Built target osgdb_mdl [ 93%] Built target osgdb_ply Scanning dependencies of target osgdb_txp Linking CXX shared module ../../../lib/osgPlugins-3.0.1/osgdb_txp.so [ 96%] Built target osgdb_txp [ 96%] Building C object src/osgPlugins/xine/CMakeFiles/osgdb_xine.dir/video_out_rgb.o /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c: In function ‘rgbout_update_frame_format’: /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2325:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2328:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2331:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2349:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c: In function ‘init_class’: /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2772:25: error: ‘video_driver_class_t’ has no member named ‘get_identifier’ /home/lancelot/ftp/SEP12/OSG301/OpenSceneGraph/src/osgPlugins/xine/video_out_rgb.c:2773:25: error: ‘video_driver_class_t’ has no member named ‘get_description’ make[2]: *** [src/osgPlugins/xine/CMakeFiles/osgdb_xine.dir/video_out_rgb.o] Error 1 make[1]: *** [src/osgPlugins/xine/CMakeFiles/osgdb_xine.dir/all] Error 2 make: *** [all] Error 2 Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] ffmpeg problem.
There is a problem building openscenegraph against the latest ffmpeg-0.8. /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:81:106: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1110) [-Wdeprecated-declarations] /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:88:26: error: ‘AVERROR_IO’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:89:26: error: ‘AVERROR_NUMEXPECTED’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:91:26: error: ‘AVERROR_NOMEM’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:92:26: error: ‘AVERROR_NOFMT’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:93:26: error: ‘AVERROR_NOTSUPP’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:94:26: error: ‘AVERROR_NOENT’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:106:17: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1110) [-Wdeprecated-declarations] /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:106:96: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1110) [-Wdeprecated-declarations] /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:123:9: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1597) [-Wdeprecated-declarations] /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:123:65: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1597) [-Wdeprecated-declarations] /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ‘void osgFFmpeg::FFmpegDecoder::findAudioStream()’: /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:223:64: error: ‘CODEC_TYPE_AUDIO’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ‘void osgFFmpeg::FFmpegDecoder::findVideoStream()’: /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:241:64: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ‘bool osgFFmpeg::FFmpegDecoder::readNextPacketNormal()’: /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:281:17: warning: ‘int url_ferror(AVIOContext*)’ is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] /home/lancelot/ftp/jun11/OSG/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:281:48: warning: ‘int url_ferror(AVIOContext*)’ is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o] Error 1 make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2 make: *** [all] Error 2 slipstream:/home/lancelot/ftp/jun11/OSG/OpenSceneGraph # svn info Path: . URL: http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.0.0-rc3 Repository Root: http://www.openscenegraph.org/svn/osg Repository UUID: 16af8721-9629-0410-8352-f15c8da7e697 Revision: 12702 Node Kind: directory Schedule: normal Last Changed Author: robert Last Changed Rev: 12604 Last Changed Date: 2011-06-22 17:36:14 +0100 (Wed, 22 Jun 2011) Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Can't build osg 2.8.3 on 64-bit Linux - which files to change ?
Hi, On openSUSE zypper in librsvg-devel is what you need. # rpm -qf /usr/include/librsvg-2.0/librsvg/rsvg.h librsvg-devel-2.34.0-2.1.x86_64 ... Thank you! Cheers, Sid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39254#39254 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] user interface for measuring distance, area etc.
Hi Robert, thanks for your help. I will try to implement it this way. Sid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29620#29620 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] user interface for measuring distance, area etc.
Hi, i use OSG to visualize a large point cloud/mesh (e.g. from a structural element) I want to add the ability for the user to do a virtual measurement of the element. For example the distance between 2 points, the areas etc. Is there any package already included in osg that i can use or do i need to implement this of my own? Could someone give me a hint whats the best way to solve this? Thank you! Cheers, Sid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29520#29520 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Load new nodes in the scene graph when the scene is running
take a look at pagedLOD -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26063#26063 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] TexGen for large surface
Hi, ive created a surface (e.g. terrain) by the delaunaytriangulator. the generated traingle-mesh looks fine and now i want to place a texture on top of it. Could someone explain me the steps for usage with texgennode? What i did so far: - ive looked at the osgspotlight example here is my code for setting up the texgennode: Code: osg::TexGenNode* texgenNode = new osg::TexGenNode; texgenNode-setTextureUnit(1); osg::TexGen* texgen = texgenNode-getTexGen(); texgen-setMode(osg::TexGen::OBJECT_LINEAR ); //EYE_LINEAR //position in the middle of the surface .. a little bit above it in z-direction osg::Vec3f position(-(xmax+xmin)/2,(ymax+ymin)/2,3.0f); //look down along the z-axis osg::Vec3f direction(0.0f,0.0f,-1.0f); //camera head to osg::Vec3 up(0.0f,1.0f,0.0f); texgen-setPlanesFromMatrix(osg::Matrixd::lookAt(position, position+direction,up)* osg::Matrixd::perspective(0,1.0,0.1,100)); what do i need to do next? i set the surface-node as child to the texgenNode. But which attributes needs to be set for the surface node? Thank you! Cheers, Sid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26017#26017 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] own load implementation for pagedLOD
Thanks for your reply. That was very helpful, its working perfect now. Just a note for other who may have the same problem: For 1. and 3.: I searched a little for some examples, so i found that the osgphotoalbum is exactly the example i needed. For QImage-Texture conversion the following code did the trick, maybe it could be a little bit optimized: Code: // get QImage QImage* tempqimage=YOUR_IMAGE_GETTER_FUNCTION(); // create OSG texture osg::Texture2D* Texture = new osg::Texture2D; Texture-setDataVariance(osg::Object::DYNAMIC); // create OSG image osg::Image* img = new osg::Image(); img-setAllocationMode(osg::Image::USE_NEW_DELETE); img-setOrigin(osg::Image::TOP_LEFT); img-allocateImage(tempqimage-width(), tempqimage-height(), 32, GL_RGBA, GL_UNSIGNED_BYTE ); // convert QImage to ARGB (i tried RGB but it seems to be not working) QImage tempqimage2=tempqimage-convertToFormat(QImage::Format_ARGB32); memcpy(img-data(),tempqimage2.bits(),tempqimage2.byteCount()); // assign the texture to the image Texture-setImage(img); delete tempqimage; -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25313#25313 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] own load implementation for pagedLOD
Hi, im pretty new to OSG. i want to visualize a large set of small images (sometimes more then 10) like a big chess board but each tile with different height. So pagedLOD seems what im searching for. The images are not loaded from disk, they are loaded from RAM. (they are compressed ByteArrays). and i want to avoid to temporary save them to disk. So here are my questions: 1. Is it possible to implement my own load routine for pagedLOD so it will use the compressed ByteArrays instead of load images from disk? 2. If i decompress the images they are QImages from Qt-Gui-Toolkit. Is there a simple way to convert them to a osg::Image or later a texture? 3. How do i know which Node correspond to which Image? For example: One Node needs to load a texture, because the viewing distance decreases. How does it know it have to load image number 75367? Thank you! Cheers, Sid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25086#25086 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Loading OSG Models in OpenGL code
I want to use it as a data structure, so that I can load and manipulate some osg models, and rendering and culling should be done through OpenGL On Fri, May 30, 2008 at 1:50 PM, Robert Osfield [EMAIL PROTECTED] wrote: Hi Siddharth, I'm not clear on what you actually want to do. Do you want to rendering using the OSG, or just use the OSG purely as a data structure? Robert. On Fri, May 30, 2008 at 4:22 AM, Sid [EMAIL PROTECTED] wrote: Hi, Is there any way, I could load an osg model, use some of the osg api functionalities in an opengl code and render it using opengl, not through osg as in osgviewerGLUT example. -- Siddharth Choudhary ___ 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 -- Siddharth Choudhary IIIT Hyderabad ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Loading OSG Models in OpenGL code
Hi, Is there any way, I could load an osg model, use some of the osg api functionalities in an opengl code and render it using opengl, not through osg as in osgviewerGLUT example. -- Siddharth Choudhary ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please test SVN of OpenSceneGraph in pre for 2.3.1 dev release
Robert Osfield wrote: HI Sid, I've merged all the changes except the additions of #include gmpxx.h as this break the build even on my Kubuntu 7.10 install, so chances are that it'll break practically everywhere else as well. Could you post what errors the above addition fixed? We should be able to come up with a more portable replacement. Cheers, Robert. On Dec 22, 2007 5:24 PM, Sid Boyce [EMAIL PROTECTED] wrote: Robert Osfield wrote: Hi Sid, Could you post me those changes so I can review them and get fixes into SVN. Cheers, Robert. See attached file. Regards Sid. On Dec 22, 2007 7:49 AM, Sid Boyce [EMAIL PROTECTED] wrote: With openSUSE 11.0 (X86-64) Alpha0 gcc version 4.3.0 20071129 (experimental) [trunk revision 130511] (SUSE Linux) I have had to insert header files in various places in order to get it to build. Most missing ones were string.h and stdlib.h, also gmpxx.h, values.h, memory. Regards Sid. -- AOK. I have been looking at gmpxx.h which led me to /usr/include/c++/4.3/cstring which is interesting. // ISO C++ 14882: 20.4.6 C library // #pragma GCC system_header #include bits/c++config.h #include cstddef #include_next string.h #ifndef _GLIBCXX_CSTRING #define _GLIBCXX_CSTRING 1 // Get rid of those macros defined in string.h in lieu of real functions. #undef memchr #undef memcmp #undef memcpy #undef memmove #undef memset #undef strcat #undef strchr #undef strcmp #undef strcoll #undef strcpy #undef strcspn #undef strerror #undef strlen #undef strncat #undef strncmp #undef strncpy #undef strpbrk #undef strrchr #undef strspn #undef strstr #undef strtok #undef strxfrm _GLIBCXX_BEGIN_NAMESPACE(std) using ::memchr; using ::memcmp; using ::memcpy; using ::memmove; using ::memset; using ::strcat; using ::strcmp; using ::strcoll; using ::strcpy; using ::strcspn; using ::strerror; using ::strlen; using ::strncat; using ::strncmp; using ::strncpy; using ::strspn; using ::strtok; using ::strxfrm; inline void* memchr(void* __p, int __c, size_t __n) { return memchr(const_castconst void*(__p), __c, __n); } using ::strchr; inline char* strchr(char* __s1, int __n) { return __builtin_strchr(const_castconst char*(__s1), __n); } using ::strpbrk; inline char* strpbrk(char* __s1, const char* __s2) { return __builtin_strpbrk(const_castconst char*(__s1), __s2); } using ::strrchr; inline char* strrchr(char* __s1, int __n) { return __builtin_strrchr(const_castconst char*(__s1), __n); } using ::strstr; inline char* strstr(char* __s1, const char* __s2) { return __builtin_strstr(const_castconst char*(__s1), __s2); } _GLIBCXX_END_NAMESPACE #endif Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please test SVN of OpenSceneGraph in pre for 2.3.1 dev release
Robert Osfield wrote: HI Sid, I've merged all the changes except the additions of #include gmpxx.h as this break the build even on my Kubuntu 7.10 install, so chances are that it'll break practically everywhere else as well. Could you post what errors the above addition fixed? We should be able to come up with a more portable replacement. Cheers, Robert. With the latest SVN I got these 2 errors for which I used #include cstring instead of #include gmpxx.h. Otherwise it built OK except for a bunch of typedef warnings. [ 19%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/FileNameUtils.o /ftp/dec07/OpenSceneGraph/src/osgDB/FileNameUtils.cpp:29: error: ‘std::strlen’ has not been declared make[2]: *** [src/osgDB/CMakeFiles/osgDB.dir/FileNameUtils.o] Error 1 make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2 make: *** [all] Error 2 [ 19%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/Registry.o /ftp/dec07/OpenSceneGraph/src/osgDB/Registry.cpp:38: error: ‘std::strlen’ has not been declared make[2]: *** [src/osgDB/CMakeFiles/osgDB.dir/Registry.o] Error 1 make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2 make: *** [all] Error 2 [ 92%] Building CXX object src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/ReaderWriterTXP.o In file included from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_read.h:26, from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/TXPArchive.h:38, from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/ReaderWriterTXP.h:49, from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/ReaderWriterTXP.cpp:13: /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:608: warning: ‘typedef’ was ignored in this declaration /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:619: warning: ‘typedef’ was ignored in this declaration /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:628: warning: ‘typedef’ was ignored in this declaration [ 93%] Building CXX object src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/TileMapper.o In file included from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_read.h:26, from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/TileMapper.h:18, from /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/TileMapper.cpp:14: /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:608: warning: ‘typedef’ was ignored in this declaration /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:619: warning: ‘typedef’ was ignored in this declaration TRUNCATED /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:608: warning: ‘typedef’ was ignored in this declaration /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:619: warning: ‘typedef’ was ignored in this declaration /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_geom.h:628: warning: ‘typedef’ was ignored in this declaration /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp: In member function ‘virtual void trpgPageManager::LodPageInfo::Print(trpgPrintBuffer)’: /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp:725: warning: deprecated conversion from string constant to ‘char*’ /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp: In member function ‘virtual void trpgPageManager::Print(trpgPrintBuffer)’: /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp:1005: warning: deprecated conversion from string constant to ‘char*’ /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp: In member function ‘void trpgPageManageTester::ProcessChanges()’: /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp:1171: warning: deprecated conversion from string constant to ‘char*’ /ftp/dec07/OpenSceneGraph/src/osgPlugins/txp/trpage_managers.cpp:1182: warning: deprecated conversion from string constant to ‘char*’ TRUNCATED more typedef warnings Regards Sid. On Dec 22, 2007 5:24 PM, Sid Boyce [EMAIL PROTECTED] wrote: Robert Osfield wrote: Hi Sid, Could you post me those changes so I can review them and get fixes into SVN. Cheers, Robert. See attached file. Regards Sid. On Dec 22, 2007 7:49 AM, Sid Boyce [EMAIL PROTECTED] wrote: With openSUSE 11.0 (X86-64) Alpha0 gcc version 4.3.0 20071129 (experimental) [trunk revision 130511] (SUSE Linux) I have had to insert header files in various places in order to get it to build. Most missing ones were string.h and stdlib.h, also gmpxx.h, values.h, memory. Regards Sid. -- -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please test SVN of OpenSceneGraph in pre for 2.3.1 dev release
Robert Osfield wrote: Hi Sid, Could you post me those changes so I can review them and get fixes into SVN. Cheers, Robert. See attached file. Regards Sid. On Dec 22, 2007 7:49 AM, Sid Boyce [EMAIL PROTECTED] wrote: With openSUSE 11.0 (X86-64) Alpha0 gcc version 4.3.0 20071129 (experimental) [trunk revision 130511] (SUSE Linux) I have had to insert header files in various places in order to get it to build. Most missing ones were string.h and stdlib.h, also gmpxx.h, values.h, memory. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks osg_svn_includes.diff.gz Description: GNU Zip compressed data ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osg build errors
Recently subscribed to this list, perhaps this is one more appropriate to the developers list. # cat /etc/SuSE-release openSUSE 11.0 (X86-64) Alpha0 VERSION = 11.0 # gcc -v Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.3.0 20071129 (experimental) [trunk revision 130511] (SUSE Linux) # make [ 0%] Built target OpenThreads [ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/DisplaySettings.o /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp: In member function ‘void osg::DisplaySettings::readEnvironmentalVariables()’: /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:178: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:201: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:241: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:274: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:293: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:306: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:329: error: ‘strcmp’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:342: error: ‘strcmp’ was not declared in this scope make[2]: *** [src/osg/CMakeFiles/osg.dir/DisplaySettings.o] Error 1 make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 make: *** [all] Error 2 I added #include string.h to DisplaySettings.cpp and got the following error. # make [ 0%] Built target OpenThreads Scanning dependencies of target osg [ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/DisplaySettings.o [ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/DrawPixels.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Drawable.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Fog.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FragmentProgram.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrameBufferObject.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrameStamp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrontFace.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/GLExtensions.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/GLObjects.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Geode.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Geometry.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/GraphicsContext.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/GraphicsThread.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/Group.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/Hint.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/Image.o /ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp: In copy constructor ‘osg::Image::Image(const osg::Image, const osg::CopyOp)’: /ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp:68: error: ‘memcpy’ was not declared in this scope /ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp: In member function ‘void osg::Image::deallocateData()’: /ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp:82: error: ‘::free’ has not been declared /ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp: In member function ‘void osg::Image::flipHorizontal()’: /ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp:940: error: ‘memcpy’ was not declared in this scope make[2]: *** [src/osg/CMakeFiles/osg.dir/Image.o] Error 1 make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 make: *** [all] Error 2 Looks like this is a problem associated with the version of gcc in openSUSE. OpenSceneGraph SVN At revision 7639, also 2.2.0 and up to the latest level. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org