[Plib-users] Re: plib-users digest, Vol 1 #140 - 3 msgs
Brought to you by:
sjbaker
From: Kevin G. <av...@cu...> - 2000-11-01 19:11:00
|
First, apologies for replying to the digest. pli...@li... wrote: > Send plib-users mailing list submissions to > pli...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/mailman/listinfo/plib-users > or, via email, send a message with subject or body 'help' to > pli...@li... > > You can reach the person managing the list at > pli...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of plib-users digest..." > > Today's Topics: > > 1. Re: Loading AC Models and Textures (Wolfram Kuss) (Kevin Glass) > 2. Re: Re: Loading AC Models and Textures (Wolfram Kuss) (Steve Baker) > 3. R: [Plib-users] Re: Loading AC Models and Textures (Wolfram Kuss) (Paolo Leoncini) > > --__--__-- > > Message: 1 > Date: Mon, 30 Oct 2000 21:16:07 +0000 > From: Kevin Glass <av...@cu...> > Organization: Netscape Online member > To: pli...@li... > Subject: [Plib-users] Re: Loading AC Models and Textures (Wolfram Kuss) > Reply-To: pli...@li... > > > > > 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 > > > > > -- __--__-- > > > > --__--__-- > > Message: 2 > Date: Tue, 31 Oct 2000 02:49:29 -0600 > From: Steve Baker <sjb...@ai...> > Organization: Steve at Home > To: pli...@li... > Subject: Re: [Plib-users] Re: Loading AC Models and Textures (Wolfram Kuss) > Reply-To: pli...@li... > > 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. Ok, I didn't realise OpenGL wasn't thread-safe. I thought that loading textures and creating display lists could be done without interacting with anything being displayed? Is this something to do with the way glut works? I could create a list of objects that need to be loaded in the thread. Then when the glutIdle callback comes round I could the load the objects. Would this work? Can you see any problems with this? Cheers for any help, Kev PS. PLIB is really cool, thanks. > > > -- > 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 > > --__--__-- > > Message: 3 > From: "Paolo Leoncini" <p.l...@ci...> > To: <pli...@li...> > Subject: R: [Plib-users] Re: Loading AC Models and Textures (Wolfram Kuss) > Date: Tue, 31 Oct 2000 11:05:31 +0100 > charset="iso-8859-1" > Reply-To: pli...@li... > > > > >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. > I believe that pthreads are real windows threads. Whether windows has anything really thread like is another question. However, they don't show up as sepearte processes. > > > > > 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 don't think it is actually sharing. > > > 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 > > > > --__--__-- > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/mailman/listinfo/plib-users > > End of plib-users Digest_______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/mailman/listinfo/plib-users |