Hi community
I need your help
I try to get a view on a model but it still dont work frown
I searched in the aums and found a script but this only works on sprites how can ic chnage it that it works on models also ?

Code:
Q: Is it possible to render a view on a target like a model, a texture or a bmap? I'd like to use that as a mirror, for example.

A: Sure, take a peek.

 

ENTITY* mirrorsprite;

 

VIEW* mirror_view;

 

action mirror_sprite() // attach this action to a sprite / model that will be used for the mirror

{

       mirrorsprite = my;        

       set (my, PASSABLE | DECAL);

}

 

function mirror_startup()

{

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

       mirror_view = view_create(10); // set the layer value for the new view to 10

       wait (2);

       set (mirror_view, SHOW);

       mirror_view.size_x = 128;

       mirror_view.size_y = 128; // the mirror sprite has 128x128 pixels

       mirror_view.bmap = bmap_for_entity(mirrorsprite, 0);

       vec_set(mirror_view.x, vector(1000, 500, 100)); // set the position of the mirror "eye"

       vec_set(mirror_view.pan, vector(0, -10, 0)); // set the angles of the mirror "eye"

}



When i apply this to a model nothing changes you can not see a view on it.
When i use a sprite it works perfectly
Can you explain me from step to step how to do that.
How many skins shell the model have?
Because i think iam doing something wrong


I really need your help!!
Thanks for reading this and also for your help laugh
WFG Progger laugh

Last edited by Progger; 11/20/11 11:26.

asking is the best Way to get help laugh laugh laugh