Posted By: tompo
Effect problem - 04/20/07 12:12
First a little introduction 
I have a spaceship with laser and 3rd person camera.
Ship is rotating by:
c_rotate (me, vector(mose_hor *time_step,mouse_vert *time_step, 0), USE_AXISR);
moving by:
c_move(me,vector(my.speed *time_step *10,0,0),nullvector,GLIDE);
and targeting from player to ahead by:
temp.x = MOUSE_POS.x; temp.y = MOUSE_POS.y; temp.z = 1000;
vec_for_screen(temp,CAMERA); vec_set(my.x, temp); then trace.
Everything work very well and I have full freedom by moving ship in whole sphere with the mouse.
The problems are...
1. how to create effect (laser effect) with bmap using streak function and/or vel_x/y/z from player.pos to target.pos where this bmap is moving along this vector?!
I've tried with: vec_diff (along_vec,player.x,target.x) vec_add(my.vel_x,along_vec) but it doesn't work.
2. how to create good looking trail from player.x. I've tried create little sparkle.pcx in player.pos every while loop and then decrease the alpha, but the sparkles was separately. So i need streak in this case too, I think.
HELP!

I have a spaceship with laser and 3rd person camera.
Ship is rotating by:
c_rotate (me, vector(mose_hor *time_step,mouse_vert *time_step, 0), USE_AXISR);
moving by:
c_move(me,vector(my.speed *time_step *10,0,0),nullvector,GLIDE);
and targeting from player to ahead by:
temp.x = MOUSE_POS.x; temp.y = MOUSE_POS.y; temp.z = 1000;
vec_for_screen(temp,CAMERA); vec_set(my.x, temp); then trace.
Everything work very well and I have full freedom by moving ship in whole sphere with the mouse.
The problems are...
1. how to create effect (laser effect) with bmap using streak function and/or vel_x/y/z from player.pos to target.pos where this bmap is moving along this vector?!
I've tried with: vec_diff (along_vec,player.x,target.x) vec_add(my.vel_x,along_vec) but it doesn't work.
2. how to create good looking trail from player.x. I've tried create little sparkle.pcx in player.pos every while loop and then decrease the alpha, but the sparkles was separately. So i need streak in this case too, I think.
HELP!



