i think in lite-c it could be done very similarly to that source code (probably a one pass solution has to be used though instead of the multiple passes they use in the demo). all the needed D3DX functions should also be available.
D3DXVECTOR3 vZ = vTarget - vSource;
but since lite-c doesn't support oo features you have to convert such stuff to:
D3DXVECTOR3 vZ;
D3DXVec3Subtract(&vZ, &vTarget, &vSource);
i am also very interested in getting this running in gamestudio but i only have started to read the paper as yet.
