   Texture size restriction for images?
  Is there a texture size restriction for dx images like there is in opengl?  Ex: 512x512Are textures the fastest way to draw with dx? 
  I thought that max texture size is limited only by hardware (my Riva TNT 2 & G-Force 4 MX 440 can use textures of max size = 2048x2048). I''m using programs based on OpenGL that are using 1024x1024 textures & some programs can use bigger textures. ;quote:Is there a texture size restriction for dx images like there is in opengl?  Ex: 512x512That is completely hardware dependent. Check the D3DCAPS for details. The newest GeForces can go up to 4096 and the newest Radeons go up to 2048. However, 256 is still the most optimized, and is compatible with almost any old card.quote:Are textures the fastest way to draw with dx?Hmm...what do you mean?[edit] I feel like mentioning that future video cards (supporting the next version of DirectX) will very possibly have no   texture size limitation, only being limited by the amount of video memory. It will be slower to use the memory as a cache though, and so there will still be a maximum you should try not to go over.   [edited by - Raloth on February 17, 2004 3:05:43 PM];  In opengl glDrawPixels is slow compared to using textures.You misinterpreted my question.  I''d like to use images as they are and not as squares all the time.  If I have an image that is 640x480 it would be easiest to draw as is without modifying it to make it square. ;  DirectX has direct access to graphics memory through DirectDraw (From DX8 it is called DirectGraphics). It should be faster than OpenGL. ;quote:If I have an image that is 640x480 it would be easiest to draw as is without modifying it to make it square. I have found that DX (or actually, the video card) will accept a texture size of 640x480 but it actually scaled the texture up to the next power of 2...at least with my card.If you are simply just wanting to display a static background then I would make it square.  The extra blank area will compress way down.cb   ~ c  o l ec o ~  Rock the cradle of love!You stupid WANKER!S i g n a l D E V .comMetroid Classic;  Ok, so the texture question is answered; it is like opengl.  Thanks. ;  256x256 is for Voodoo 1,2,3 I believe. Some wimpy cards like a kyro 2 or intel integrated (i860?) only do 1024x1024 but 2048x2048 has been around since the TNT1 card from 1998. 