Quote:

what does these things mean?
Could anyone please explain what is happening here?

COLOROP[0] = dotproduct3;
COLORARG1[0] = texture;
COLORARG2[0] = diffuse;
COLOROP[1] = modulate;
COLORARG1[1] = texture;
COLORARG2[1] = current;

In MSDN2001 there is no explanation

Is there a documentation available on these?




The ColorOp is the operation that is being applied to the texture in the given stage. This gets it's arguments from ColorArg1 & ColorArg2.

For your example:

Stage [0] is:
ColorArg1[0] is saying to use the texture color from this stage
ColorArg2[0] is saying to use the diffuse color from the vertex components
Colorop[0] is going to apply the Dot3 bumpmapping operation using ColorArg1 & 2.

Stage [1] is:
ColorArg1[1] is saying to use the texture color from this stage
ColorArg2[1] is saying to use current texture which is the result of the previous stage.
ColorOp[1] is going to modulate (modulate does a multiply) between ColorArg1 & 2.

Like it's said, the Dx SDK or MSDN site is the best bet for learning these.