PDA

View Full Version : Advanced use of Textures


Prey
07-30-2007, 10:12 AM
Hi,
Was wondering if anyone could point me in the right direction for rendering bump, cube and detail maps using the fixed-function pipeline. Or if thats not possible, with HLSL.

Also I was wondering about something: As I have created my own VertexDeclaration that can support up to 4 textures at once, do I have to manually set what textures use what coordinates, with

Dev.TextureStates[0].TextureCoordinates = 0;

..? That code was just off the top of my head by the way, but I think that's right. Anyway I'm using the DirectX API with C#. (But if you know the answer in VB or C++ then thats fine too, I can convert)

Thanks for anything.