Re: [PyOpenGL-Users] glTexImage2d size
Brought to you by:
mcfletch
From: JoN <jo...@we...> - 2006-11-13 23:10:28
|
Hi guys, AFAIK the ability to support non-power-of-2 (NPO2 or NPOT) textures is a card-specific thing, and hence their OpenGL driver thing. I _think_ NPO2 texture support is supposed to be a standard feature of Op= enGL 2.X, but I don't think all cards support it. Jon Quoting Matt Bailey <ma...@rt...>: > Oh, cool, I didn't know about that function, might have to check that o= ut. In >=20 > my current game I'm just making them all a power of 2, which works well= =20 > enough for most things (I like having the extra space to work with in t= he=20 > image just in case I or someone else chooses to edit the look of things= a bit >=20 > later on), but to save disk space/memory I re-sized my player's weapon = images >=20 > some to make them a power of 2, and then expand the OpenGL surface out = to the >=20 > aspect ratio of the "correct" original gun image....since I'm downsizin= g the >=20 > image in one dimension, I lose some detail. >=20 > -Matt Bailey >=20 > On Monday 13 November 2006 14:26, Andrew Wilson set 1,000 monkies in fr= ont of >=20 > keyboards and the following appeared: > > Hello, > > You are correct, I would like to use textures that are not of power= 2 in > > dimension. I have an Nvidia Quadro FX 3450 that mysteriously support= s it. > > I seem to have found a work around using the gluBuild2DMipmaps call, = the > > appear to automatically pad the image correctly. I guess I should re= ad > the > > documentation a little closer! > > Thanks > > Andrew > > > > On 11/13/06, Matt Bailey <ma...@rt...> wrote: > > > Hrrrmmm, OpenGL textures should always have dimensions that are a p= ower > > > of 2. > > > Are you saying you want to use images that do not conform to this? = This > > > normally is not possible, I don't know of a way around it. If that'= s > what > > > you're trying to do, I'm surprised it works on any video card at al= l. > > > > > > -Matt Bailey >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users >=20 -------------------------------------------------------------------- Come and visit Web Prophets Website at http://www.webprophets.net.au |