i know this one is old, but...
i tried the shader and i get it to work that its always infront of the camera. but how can i let it project just down from the top? I replaced the positions with a model but that doesnt work either:




entity* ptrproject;

action projector
{
my.invisible = on;
my.passable = on;
ptrproject = me;
}



material* tempMat;

action actProjector
{
var saveCamX[3];
var saveCamAng[3];

while(!ptrproject) { wait(1); }

my.material = matProjector;

while (1) {

vec_set(saveCamX.x, ptrproject.x);
vec_set(saveCamAng.pan, ptrproject.pan);

vec_set(ptrproject.x, my.x);
vec_set(ptrproject.pan, my.pan);

tempMat = my.material;

mat_set(tempMat.matrix, matView);

vec_set(ptrproject.x, saveCamX.x);
vec_set(ptrproject.pan, saveCamAng.pan);

wait(1);
}
}


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig