Thread: [Plib-users] (no subject)
Brought to you by:
sjbaker
From: Srikanth.K.P <kps...@cs...> - 2000-05-26 03:43:28
|
I tried to compile plib1.0.20 on my onyx RealityEngine2 workstation with OS IRIX 5.3. configure was successful. When i do a make, I get errors - glBindTextureEXT(GL_TEXTURE_2D, texture) and glDeleteTexturesEXT(1, &texture) undefined in pu.cxx file and the compilation stops. How to get over this problem ? Is my OpenGL version old ? I am not able to find out which version of OpenGL my machine has. If it is old, where can i get the latest version ? Is OpenGL module of IRIX 5.3 upgradable without upgrading the OS ? Srikanth |
From: LANIUS <la...@ma...> - 2000-11-19 17:38:10
|
Hi i'm new at plib how do i make the cpu go idle for example if i want to write ordernery application (no game ) thanks lanius |
From: Steve B. <sjb...@ai...> - 2000-11-19 20:08:49
|
> LANIUS wrote: > > Hi > i'm new at plib how do i make the cpu go idle for example > if i want to write ordernery application (no game ) You mean you just want to yield some CPU time for other applications to use? You could use ulMilliSecondSleep(x) where x is the number of milliseconds to delay. -- 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: LANIUS <la...@ma...> - 2000-11-19 21:08:33
|
Hi I mean if i write a ordinarily application i dont want the cpu to work at max . i am not trying to write a graphic application just a ordinarily application like notepad(win) and only update when something happens thanks lanius |
From: Steve B. <sjb...@ai...> - 2000-11-19 23:04:27
|
LANIUS wrote: > I mean if i write a ordinarily application i dont want the cpu to work at > max . > i am not trying to write a graphic application just a ordinarily application > like notepad(win) and only update > when something happens So only call the relevent PLIB redraw routines when some user action happens (a mouse click or keystroke for example). -- 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: <ha...@sl...> - 2000-11-19 23:16:24
|
Use the aformentioned sleep function, when you come out of it check for events (to see if something happened), if nothing happened, go back into the sleep without updating the display. -- Brian >Hi >I mean if i write a ordinarily application i dont want the cpu to work at >max . >i am not trying to write a graphic application just a ordinarily application >like notepad(win) and only update >when something happens > >thanks >lanius > >_______________________________________________ >plib-users mailing list >pli...@li... >http://lists.sourceforge.net/mailman/listinfo/plib-users > |
From: Steven C. <ste...@nt...> - 2002-06-05 18:07:28
|
Hi if anyone wants to see my project that i was working on I have just finished it. So if anyone want to have a look it's on. http://homepage.ntlworld.com/steven.clark4/ Any comments or errors would be very much welcome, well not errors but you understand. Steven |
From: Antonio L. <sup...@ho...> - 2002-09-11 00:18:15
|
Hello everybody, I'm programming a stunt racing game but I have graphics problems - I'm using plib1.6.0 on win$ - I tried tuxkart and no such problem occour so it's my mistake for sure. Please look at members.xoom.virgilio.it/Devas fot the files snapshot1.jpg , snapshot2.jpg and snapshot3.jpg. In short, polygons are disappearing and reappearing and I don't understand if I have to tune some params (I checked that near and far plane are 0.01 and 1000 so this clipping should not be related to it). What I would liked to achieve in the shots was to have my car inside a big box, modeled in my favourite 3d proggy (blender) and exported to ac format. The lower face of the box (the one where the car sits on) has more triangles as I have modeled a terrain. The normals of the faces are toward the inside of the box. I have also placed a model of a "ramp", the orange polygons. As you can see triangles disappear, the ramp become segmented as soon as I move a bit the point of view (see difference between snapshot3 and snapshot2)... if I make the box bigger, it completely disappear (even the floor, which is near the camera, is not visible) any suggestion would be greatly appreciated!! _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |
From: Jailall, R. R. <Rob...@jh...> - 2005-12-27 23:11:27
|
I am a new user of pui. I could not figure out how to do the following from the pui documentation: =20 I start off with a puGroup that has been constructed in a parent class. I want to add a new group of objects to this puGroup in a child class. How can I add this new group as a child node and have the existing child nodes slide over and resize the parent window? =20 To this end, I have tried using the puObject.add() function to add my new child puGroup from the child class. Then, I have tried to manually resize the window, calculate, and set what the new positions of the existing objects *should* be. =20 However, for reasons that are unknown to me, the parent window does not respond to the setSize command. Furthermore, getPosition only returns zero values when I use it on some of the existing child nodes in the parent group (interestingly, getSize brings back correct values). Thus, when I calculate the position of my new object, it ends up being (0,0). =20 Example (this is the order in which I would like things to display on the screen. Coords are (x,y) with the left and bottom of the window being zero): =20 start (from parent class): a (0,1) c (0,0) =20 end (in child class): a (0,2) b < insert (0,1) c (0,0) =20 Thanks for any help you can give. =20 Robert =20 |
From: <se...@ju...> - 2006-04-30 21:39:10
|
I'm looking for a good toolset to do some OpenGL work on an embedded pla= tform (PPC) using the GreenHills Integrity OS. How difficult would it be= to get PLIB working in this environent? Thanks all. ________________________________________________________________________= Try Juno Platinum for Free! Then, only $9.95/month! Unlimited Internet Access with 1GB of Email Storage. Visit http://www.juno.com/value to sign up today! |
From: Tinoshi K. <ti...@li...> - 2006-05-03 22:56:30
|
Hi everybody! I'm developing some OpenGL application that requires a C# User Interface (Windows Form etc...). The application has three windows used to display OpenGL things... To make OpenGL work I've just wrapped the .dll within a C# class using PInvoke... and that's easy... Now I'd like to use PLIB... Do you think it is possible? I mean, which is the shorter way to 'wrap' PLIB so that I can use them in a C# application? Do I have to create a .dll for each .lib and do the same wrapping thing that I did with gl.dll??? Is there another way??? I think that it is a quite hard thing to do... probably the easiest way would be to modify the source code to make it suitable for C# (and managed) and re-compile it... but I think that it will take years! :-P Thank you for any suggestion!!! |
From: Hemalatha S. <hem...@re...> - 2006-07-20 04:32:31
|
=A0=0AHi,=0AI am mailing again.=0AThere was no reply for my query.=0APlz..= .........do reply =0AI need to convert from geodetic data to screen coordin= ates.=0AHow can i do it?=0A=0AThere is a function in SimGear(SgGeodToCart) = which converts geodetic lat,long to cartesian form.=0ABut How do i convert = from catesian to screen cartesian form.=0A=0A=0AThanks & Regards=0AHemalath= a =0A=0A=0A |
From: steve <sjb...@ai...> - 2006-07-20 15:18:54
|
Hemalatha Sharma wrote: > > Hi, > I am mailing again. > There was no reply for my query. All four(!) copies of your email arrived simultaneously - you need to exhibit some more patience. > I need to convert from geodetic data to screen coordinates. > How can i do it? > > There is a function in SimGear(SgGeodToCart) which converts geodetic > lat,long to cartesian form. > But How do i convert from catesian to screen cartesian form. Geodetic to cartesian is definitely not a PLIB thing - so you're right to seek help in SimGear. Cartesian to screen coordinates is probably best handled by the OpenGL function 'gluProject'...so this isn't really a PLIB question either. However: GLint gluProject ( GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* winX, GLdouble* winY, GLdouble* winZ); Where: (objX, objY, objZ) is the cartesian coordinate you are concerned about. model, proj are the OpenGL modelview and projection matrix. You can either get these by doing a glGetMatrix() or inside SSG you can use ssgContext::getProjectionMatrix() and ssgContext::getModelviewMatrix(). view is an array containing the viewport parameters. You get this with glGetFloatv(GL_VIEWPORT,...). (winX, winY, winZ) are pointers to where you'd like the return results placed. |
From: Hemalatha S. <hem...@re...> - 2006-07-20 04:32:31
|
=A0=0AHi,=0AI am mailing again.=0AThere was no reply for my query.=0APlz..= .........do reply =0AI need to convert from geodetic data to screen coordin= ates.=0AHow can i do it?=0A=0AThere is a function in SimGear(SgGeodToCart) = which converts geodetic lat,long to cartesian form.=0ABut How do i convert = from catesian to screen cartesian form.=0A=0A=0AThanks & Regards=0AHemalath= a =0A=0A=0A |
From: Hemalatha S. <hem...@re...> - 2006-07-20 04:32:35
|
=A0=0AHi,=0AI am mailing again.=0AThere was no reply for my query.=0APlz..= .........do reply =0AI need to convert from geodetic data to screen coordin= ates.=0AHow can i do it?=0A=0AThere is a function in SimGear(SgGeodToCart) = which converts geodetic lat,long to cartesian form.=0ABut How do i convert = from catesian to screen cartesian form.=0A=0A=0AThanks & Regards=0AHemalath= a =0A=0A=0A |
From: Steve B. <sjb...@ai...> - 2000-05-26 05:06:16
|
"Srikanth.K.P" wrote: > > I tried to compile plib1.0.20 on my onyx RealityEngine2 workstation with > OS IRIX 5.3. configure was successful. When i do a make, I get errors - > > glBindTextureEXT(GL_TEXTURE_2D, texture) and > glDeleteTexturesEXT(1, &texture) > > undefined in pu.cxx file and the compilation stops. How to get over this > problem ? > > Is my OpenGL version old ? I am not able to find out which version of > OpenGL my machine has. If it is old, where can i get the latest version ? > Is OpenGL module of IRIX 5.3 upgradable without upgrading the OS ? Well, it's possible that you have a really ancient OpenGL - SGI were shipping OpenGL 1.0 back then - and all of the rest of the world is up to rev 1.1 or 1.2. OpenGL 1.0 doesn't implement the glBindTexture stuff that was added into OpenGL 1.1 - however, I thought that SGI had added extension functions to cover for the 'missing' functionality. That's why PLIB is looking for glBindTextureEXT ... the 'EXT' part describes an OpenGL extension. Anyway, if your OpenGL is *so* old that it doesn't even have the BindTexture extension then I'm afraid it's too old to run PLIB. You can verify that you have OpenGL 1.0 by running this: grep VERSION /usr/include/GL/gl.h ...if you have version 1.1 or later, you'll see: #define GL_VERSION_1_1 1 ...if you don't see that then you have 1.0 (I'm *certain* that's true under IRIX 5.3 - so you don't really need to check). What I'm suprised about is that although you have 1.0, it doesn't have those extensions...still. the compiler wouldn't complain if they were there - so you evidently don't have them. I don't think SGI offer a way to upgrade your OpenGL to 1.1 - or even to a version of 1.0 with the BindTexture extensions unless you are prepared to do a complete IRIX upgrade. If you are desperate - you could hack PLIB's texture loader to make this work. You have to create an OpenGL display list, issue all the texture commands (without the missing extension functions) and store the display list handle where PLIB normally stores the texture ID. Then where PLIB applies the texture, you call the display list instead of doing that second glBindTextureEXT. You can find all the relevent sections in the code by searching for '#ifdef GL_VERSION_1_1'. There will be at least three places in the code where this happens - twice in SSG and one in FNT if my memory serves me correctly. Alternatively, toss out your RealityEngine2 and get a modern PC with an nVidia-2 card - it'll cost you about $1000 to do it and it'll be easily ten times faster. Run Linux and you'll hardly know you've switched systems! -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |