Thread: [Plib-users] Re: Loading AC Models and Textures (Wolfram Kuss)
Brought to you by:
sjbaker
From: Kevin G. <av...@cu...> - 2000-10-30 21:15:29
|
> > Today's Topics: > > 1. Re: Loading AC Models and Textures (Wolfram Kuss) > > --__--__-- > > Message: 1 > From: Wolfram Kuss <w_...@rz...> > To: pli...@li... > Subject: Re: [Plib-users] Loading AC Models and Textures > Date: Sun, 29 Oct 2000 20:12:54 +0000 > Organization: Hammes SW > Reply-To: pli...@li... > > Kevin wrote: > > >Sometimes I get warnings when loading the models saying that the > >textures can not be found. However, this does not happen consistantly. > >When I do get these messages, the directories being used are not the > >directory I set with model and texture path. > > Strange. Which directories do the error messages name and which do you > use? The error messages (when they do show up) pertain to the current directory, or rather, where I run it from. Its as though the texture path is just ignored. > > > >I'm using VC6.0 on Win98. The code is threaded using the pthread > >library, could this be the problem? Has anyone seen this before? > > I am using VC6.0 under Win NT and Win2K with no problems. > I don't think Win98 is to blame. > I didn't really mean Win98 was to blame, I'm pretty sure this is working fine. I'm more woried about the pthread stuff. > I don't think I use the pthread library, does that come with MSVC? > Have you tried compiling the example which works with pthread? > pthread is a library that gives windows users 'real' threads like those found on every other operating system, UNIX/LINUX, solaris and the like. I've tried some more stuff since mailing and found that if I load my models before I call glutMainLoop() they load fine. However, if I load model in a seperate thread it fails to load the textures. So, is PLIB thread safe? I've even tried running glutMainLoop in a seperate thread, and using the 'process' thread for loading models. This is also fails. > > >Kevin > > Bye bye, > Wolfram. > Cheers for the prompt responce, Kev > > --__--__-- > |
From: Steve B. <sjb...@ai...> - 2000-10-31 07:43:35
|
Kevin Glass wrote: > So, is PLIB thread safe? No. And there isn't a whole lot of point in trying to make it that way when OpenGL isn't thread-safe. You can go some way towards using threads with PLIB but you really have to know what's going on and do things like pre-load all the textures using loader callbacks to assign them to the model parts rather than letting the loader do the work. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |
From: Paolo L. <p.l...@ci...> - 2000-10-31 10:02:43
|
> > >I'm using VC6.0 on Win98. The code is threaded using the pthread > > >library, could this be the problem? Has anyone seen this before? As one can extrapolate from wgl function doc (e.g. http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/opengl/ntopn glr_6flf.htm for wglShareLists) OGL objects, as display lists and texture objects are, are not shared between processes. Well, are pthreads processes on Win9x? or are these just threads? Is there any difference? If pthread = process, then we have located the problem. > > pthread is a library that gives windows users 'real' threads like those > found on every other operating system, UNIX/LINUX, solaris and the like. > > I've tried some more stuff since mailing and found that if I load > my models > before I call glutMainLoop() they load fine. However, if I load model in a > seperate thread it fails to load the textures. > > So, is PLIB thread safe? > I don't think this is the actual problem. Rather it is the sharing of OGL object between processes. > I've even tried running glutMainLoop in a seperate thread, and using the > 'process' thread for loading models. This is also fails. > Answered above. Greetings to all - ---------------------------------------------------------------------------- - Paolo Leoncini phone: +39 (0823) 623134 Scientific Visualization & Virtual Reality fax: +39 (0823) 623126 CIRA - Italian Center for Aerospace Researches mailto:p.l...@ci... Via Maiorise - 81043 Capua (CE) Italy http://www.cira.it/research/vis > -----Messaggio originale----- > Da: pli...@li... > [mailto:pli...@li...]Per conto di Kevin Glass > Inviato: lunedì 30 ottobre 2000 22.16 > A: pli...@li... > Oggetto: [Plib-users] Re: Loading AC Models and Textures (Wolfram Kuss) > > > > > > > > Today's Topics: > > > > 1. Re: Loading AC Models and Textures (Wolfram Kuss) > > > > --__--__-- > > > > Message: 1 > > From: Wolfram Kuss <w_...@rz...> > > To: pli...@li... > > Subject: Re: [Plib-users] Loading AC Models and Textures > > Date: Sun, 29 Oct 2000 20:12:54 +0000 > > Organization: Hammes SW > > Reply-To: pli...@li... > > > > Kevin wrote: > > > > >Sometimes I get warnings when loading the models saying that the > > >textures can not be found. However, this does not happen consistantly. > > >When I do get these messages, the directories being used are not the > > >directory I set with model and texture path. > > > > Strange. Which directories do the error messages name and which do you > > use? > > The error messages (when they do show up) pertain to the current > directory, > or rather, where I run it from. Its as though the texture path is just > ignored. > > > > > > > >I'm using VC6.0 on Win98. The code is threaded using the pthread > > >library, could this be the problem? Has anyone seen this before? > > > > I am using VC6.0 under Win NT and Win2K with no problems. > > I don't think Win98 is to blame. > > > > I didn't really mean Win98 was to blame, I'm pretty sure this is working > fine. I'm more woried about the pthread stuff. > > > > I don't think I use the pthread library, does that come with MSVC? > > Have you tried compiling the example which works with pthread? > > > > pthread is a library that gives windows users 'real' threads like those > found on every other operating system, UNIX/LINUX, solaris and the like. > > I've tried some more stuff since mailing and found that if I load > my models > before I call glutMainLoop() they load fine. However, if I load model in a > seperate thread it fails to load the textures. > > So, is PLIB thread safe? > > I've even tried running glutMainLoop in a seperate thread, and using the > 'process' thread for loading models. This is also fails. > > > > > > > >Kevin > > > > Bye bye, > > Wolfram. > > > > Cheers for the prompt responce, > > Kev > > > > > --__--__-- > > > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/mailman/listinfo/plib-users > |