Re: [osg-users] Quicktime osgplugin compile error with eclipse + mingw
Andrea Martini wrote: Hi, i get 2 errors in tha last two line of log reported in : http://pastebin.com/m74380111 I have compiled with -Wno-multichar , but i still continue get the same warnings and error. Can you paste the entire output of mingw32-make VERBOSE=1 including stdout and stderr? Maybe pipe it through a grep -v warning.*multi-char because those warning sure don't help spotting what the actual problem is... However, what about this one (near line 1973)? Does it ring a bell with anyone? C:/Programmi/QuickTimeSDK/CIncludes/Math64.h:86:64: invalid suffix i64 on integer constant In file included from C:/Programmi/QuickTimeSDK/CIncludes/CoreServices.h:166, from C:/Programmi/QuickTimeSDK/CIncludes/HIObject.h:20, from C:/Programmi/QuickTimeSDK/CIncludes/Menus.h:68, from C:/Programmi/QuickTimeSDK/CIncludes/MacWindows.h:72, from C:/Programmi/QuickTimeSDK/CIncludes/QTML.h:28, from O:\OpenSceneGraph-2.2.0\OpenSceneGraph\src\osgPlugins\quicktime\QTUtils.h:25, from O:\OpenSceneGraph-2.2.0\OpenSceneGraph\src\osgPlugins\quicktime\MovieData.h:21, from O:\OpenSceneGraph-2.2.0\OpenSceneGraph\src\osgPlugins\quicktime\MovieData.cpp:13: /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] how to play mp3 file use quicktime plugin -osgdb_qt.dll?
How to play mp3 file use quicktime plugin -osgdb_qt.dll? Thanks in advance! - 雅虎邮箱,您的终生邮箱!___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to play mp3 file use quicktime plugin -osgdb_qt.dll?
2008/7/5 小 杨 [EMAIL PROTECTED]: How to play mp3 file use quicktime plugin -osgdb_qt.dll? The OSG doesn't have general audio support, you can only play audio when its associated with a video at present. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgViewer 's' key Geometry information
I've added this to the Errata: http://www.skew-matrix.com/OSGQSG/ Thanks, -Paul Hi, in the QuickStart Guide at page 9 (1.3.4 Statistics Display) it is stated that the 's' key cycles between 4 display modes. 1. Frame Rate, showing only the FPS 2. Traversal time, showing the traversal times including a graphical display 3. Geometry information, dsipalys the number of Drawable obkect, and total number of vertices/primitives. 4. Nothing I only can only see mode 1,2,4 mode 3 does not exist. Is this another Errata bug for Paul Martz or am I missing something. Thanks Dimi ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce negraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] problem of qt plugin for rtsp real time streaming
Hi,Base on one user's idea, I add something inside the quicktime plugin and make it can work with http streaming. But right now it cannot open rtsp streaming. The code I add in quicktime plugin is as this:1. load movie from url:if (CFURLRef urlRef = CFURLCreateWithBytes(NULL, (const UInt8 *)url, strlen(url), kCFStringEncodingUTF8, NULL)) { Handle dataRef;OSType dataRefType;error = QTNewDataReferenceFromCFURL(urlRef, 0, dataRef, dataRefType); if (error == noErr) {error = NewMovieFromDataRef(movie, newMovieIdleImportOK, NULL, dataRef, dataRefType); error = GetMoviesError();}CFRelease(urlRef);} 2. open it with a function as prepreroolMovie ( quicktime api said this is required for streaming): err = MakeMovieFromURL(filename.c_str(),_movie);// add preprerollerr = PrePrerollMovie(_movie, 0, GetMoviePreferredRate(_movie),NewMoviePrePrerollCompleteProc(MovieData::MoviePrePrerollCompleteProc),(void *)this); here get problem, if http, it is ok, but rtsp it will return -1. What I cannot understand is: I implement this with glut and it never get an error. means same code in glut then never return error: Here is Glut example: // simpleQTtest.cpp : Defines the entry point for the application.//#include stdafx.h#include simpleQTtest.h#include GL/glew.h#include glvu.hpp#include ppm.hpp#include GL/glut.h#include QTML.h#include Movies.h#include ImageCompression.h#include MacErrors.h GLVU glvu;#define MAX_LOADSTRING 100 Movie theMovie;Rect box;GLuint textureUnit; unsigned char *image; int width, height;void userDisplayFunc0(){glvu.BeginFrame();glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);//glColor3f(1,0,0);//glutSolidTorus(0.25,1,32,64);glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, textureUnit); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV,image); glBegin(GL_QUADS); glTexCoord2d(0.0, 0.0); glVertex3d(-0.5, -0.5, 0); glTexCoord2d(0.0, 1.0); glVertex3d(-0.5, 0.5, 0); glTexCoord2d(1.0, 1.0); glVertex3d(0.5, 0.5, 0); glTexCoord2d(1.0, 0.0); glVertex3d(0.5, -0.5, 0); glEnd(); glvu.EndFrame();} void loadPPMImage(){LoadPPM(sample.ppm, image, width, height); }void UpdateMovieGWorld(Movie m){CGrafPtr port;GDHandle dev;GetMovieGWorld(m,port,dev);Rect box;GetMovieNaturalBoundsRect(m,box);MacOffsetRect (box, -box.left, -box.top);SetMovieBox (m, box);int width=box.right;int height=box.bottom;GWorldPtr movieGWorld;void* pixels=malloc(width*height*4);NewGWorldFromPtr(movieGWorld,k32BGRAPixelFormat,box,0,0,0,(Ptr)pixels,width*4);SetMovieGWorld (m, (CGrafPtr)movieGWorld, nil);if (port !dev){pixels=port-portPixMap[0]-baseAddr;DisposeGWorld(port);free(pixels);}}void MyMoviePrePrerollCompleteProc(Movie theMovie, OSErr prerollErr,void *refcon){Fixed rate=GetMoviePreferredRate(theMovie);//PrerollMovie(theMovie,0,rate);SetMovieRate(theMovie,rate);StartMovie(theMovie);}OSErr MyMovieDrawingCompleteProc(Movie theMovie, long refCon){CGrafPtr port;GDHandle dev;GetMovieGWorld(theMovie,port,dev);char* pixels=port-portPixMap[0]-baseAddr;int pixels_width=port-portPixMap[0]-bounds.right;int pixels_height=port-portPixMap[0]-bounds.bottom; image = (unsigned char *) pixels; width = pixels_width; height = pixels_height; userDisplayFunc0(); return noErr;} bool LoadMovieFromPath(Movie* m, const char* thePath){char fullpath[255];strcpy(fullpath,thePath);c2pstr(fullpath);short theFile = 0;FSSpec sfFile;FSMakeFSSpec (0, 0L, (ConstStr255Param)fullpath, sfFile);int err=OpenMovieFile (sfFile, theFile, fsRdPerm);if (err!=noErr)return false;err=NewMovieFromFile (m, theFile, nil, nil, newMovieActive,nil);CloseMovieFile (theFile);if (err!=noErr)return false;UpdateMovieGWorld(*m);MyMoviePrePrerollCompleteProc(*m,0,0);return true;}bool LoadMovieFromURL(Movie* m, const char* url){OSStatus error = memFullErr;if (CFURLRef urlRef = CFURLCreateWithBytes(NULL, (const UInt8 *)url, strlen(url), kCFStringEncodingUTF8, NULL)) { Handle dataRef;OSType dataRefType;error = QTNewDataReferenceFromCFURL(urlRef, 0, dataRef, dataRefType); if (error == noErr) error = NewMovieFromDataRef(m, newMovieActive | newMovieAsyncOK, NULL, dataRef, dataRefType); CFRelease(urlRef);}//SetMovieDrawingCompleteProc(*m, movieDrawingCallWhenChanged, // MyMovieDrawingCompleteProc, 0 /*refCon*/);//,/*SetMoviePlayHints(*m, hintsAllowDynamicResize,hintsAllowDynamicResize);*/Fixed rate = GetMoviePreferredRate(*m); error=PrePrerollMovie(*m, 0, GetMoviePreferredRate(*m),NewMoviePrePrerollCompleteProc(MyMoviePrePrerollCompleteProc), //,(void *)0L); UpdateMovieGWorld(*m);return true; } void idle0(){if(!IsMovieDone(theMovie)){Rect r;GetMovieNaturalBoundsRect(theMovie,r);if (r.right!=box.right || r.bottom!=box.bottom){box.right=r.right;box.bottom=r.bottom;UpdateMovieGWorld(theMovie);} MoviesTask (theMovie, 0);CGrafPtr port;GDHandle dev;GetMovieGWorld(theMovie,port,dev);char* pixels=port-portPixMap[0]-baseAddr;int pixels_width=port-portPixMap[0]-bounds.right;int
Re: [osg-users] Problems with loading model in OSG 2.2
Hi! I updated driver and the error didn't appear anymore. But I only loaded a simple box and the performance's still very low. When I run in debug mode, the frame rate is just 18-30 fps http://i58.photobucket.com/albums/g278/TTFTotti/2-1.png And in release mode, it's much better, about 600 fps http://i58.photobucket.com/albums/g278/TTFTotti/1-2.png I don't understand what's the problem! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with loading model in OSG 2.2
It is Expected for Release to be much faster than debug, that is normal, your difference though is quite high What is causing the difference is hard to say when one does not have access to your system but is could be Some things to consider 0) Search the mailing list archives to see if any past topic may shed some light on your issue 1) Your are picking up older libraries ( keep you path as simple as possible, use project settings to find libs rather than $PATH envs ) 2) Your mixing libs/ dll's built with different compilers ( you need to hae all your libs built using the same compiler) 3) your mixing release/debug libraries 4) Your not building your debug libraries Multi-threaded /MDd 5) On Windows you have STL iteration debugging turned on (this can hurt a lot) Google for _HAS_ITERATOR_DEBUGGING 6) your running in single threaded mode when running debug 7) you have a bad build, try a full clean and full rebuild 8) Turn on all exceptions, see if your throwing a lot for some reason 9) Check the OpenGl Vendor string to ensure you're not picking up Microsoft software driver for some reason __ Gordon Tomlinson Email : [EMAIL PROTECTED] YIM/AIM : gordon3dBrit MSN IM : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricky Sent: Saturday, July 05, 2008 5:49 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Problems with loading model in OSG 2.2 Hi! I updated driver and the error didn't appear anymore. But I only loaded a simple box and the performance's still very low. When I run in debug mode, the frame rate is just 18-30 fps http://i58.photobucket.com/albums/g278/TTFTotti/2-1.png And in release mode, it's much better, about 600 fps http://i58.photobucket.com/albums/g278/TTFTotti/1-2.png I don't understand what's the problem! ___ 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] osg and wxwidgets resizing
Hi, I have been trying out osg with wxwidgets, specifically playing with the osgViewerWX sample, and was wondering if it is possible to somehow maintain rendering whilst the wxFrame is resized. At the moment when the wxFrame is made bigger the rendering area is not redrawn until the next idle event, meaning it looks like the app has failed in someway (obviously it hasn't) until it is updated. Would it be inefficient to render every resize event? Or maybe snapshot the front buffer to create a image that is just resized (as if the user is resizing they aren't interacting with the rendering window, if so how?)? Thank you for any help\comments, appologies if my terminology is wrong, I'm a bit new to all this :-) -- James Dickson ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osg2.5.2 and CEGUI 0.6.1 ?
I use osg2.5.2 ,in example directory I'm not found osgcegui example. if osg2.5.2 support CEGUI0.6.1,please give me some url link or examples! Thanks in advance! - 雅虎邮箱,您的终生邮箱!___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] 回复: osg2.5.2 and CEGUI 0. 6.1 ?
Sorry,I found osgcegui example! 小 杨 [EMAIL PROTECTED] 写道:I use osg2.5.2 ,in example directory I'm not found osgcegui example. if osg2.5.2 support CEGUI0.6.1,please give me some url link or examples! Thanks in advance! - 雅虎邮箱,您的终生邮箱!___ 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