   more directx
  I am doing some 2d stuff with directx and I have used the sprite functions of course the most. I actually want to use more directx but all I see for 2d stuff is the sprite functions.There is no need for lighting, meshes or any 3d stuff in 2d.I want to use and learn more of directx but for 2d it seems you don't use or need much.Is there anything else I could use for 2d directx?   
  Implement sprites using textured quads and shaders. Then the possibilities will be endless.   ;  You could try some shader programmingEdit: Doh... Beaten to it   ;  I found these tutorials the other day.Some of the demos is doing "funny stuff" with 2D.   ;Quote:Original post by darkelf2k5Implement sprites using textured quads and shaders. Then the possibilities will be endless.Do you mean setting up a sprite with vertices and a texture and mapping each triangle/quad witha texture using coordinates between 0 and 1.0.I know how to do this already with 3d work as I can do that. With a sprite it makes for crappy graphics compared to a regular sprites. ;Quote:Original post by jagguyI know how to do this already with 3d work as I can do that. With a sprite it makes for crappy graphics compared to a regular sprites.Be sure to forcefully disable anti-aliasing when drawing 2D/UI.m_pDirect3DDevice->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS, FALSE );-Alamar   ;  Yeah, this is what ID3DXSprite is doing under the scenes anyway AFAIK.As Alamar said, you do need to set up Direct3D correctly but I've found that if I pass D3DFILTER_NONE to D3DXCreateTextureFromFileEx and make sure the size of my quad is the same as the size of the image, it displays perfectly.   ;  ID3DXSprite is what I am using and the sprites are created elsewhere. I don't want to bother with using directx to create graphics for sprites as i don't see the benefit. Sprites can be created at a professional level outside directx easy enough, it seems harder coding 2d sprites in directx anyway eg vertices, textures etc.I was thinking more about anything else I don't know about, before I do some more 3d stuff.I can 2d stuff where you get screen scrolling with tile map, cause collisions, have sprites on the screen , all at a basic level.   ;  Well, I'm not suggesting there is anything wrong with ID3DXSprite, but I'm currently trying to roll out my own Direct3D sprite library for 2D stuff because I felt that it would be good preparation for approaching the 3D stuff.I'm fairly sure that learning to use vertex buffers, index buffers and managing your own batching and so on for 2D graphics is a good way to start to learn the stuff you need for 3D graphics.Be interested to know if anyone else has any thoughts on this.   ;  I already know how to do some 3d stuff, eg vertices, index buffers,textures,lights,static mesh, camera .Using the sprite class interface seems the only thing you can do in directx as the rest seems to be for 3d.I haven't done shading or anything like that as it doesn't seem to improve upon 2d sprite creations.   