RE: [AD] Proposal for new matrix functions

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> -----Oorspronkelijk bericht-----
> Van: alleg-developers-admin@xxxxxxxxxx
> [mailto:alleg-developers-admin@xxxxxxxxxx Eric
> Botcazou
> Verzonden: dinsdag 4 maart 2003 8:36
> Aan: alleg-developers@xxxxxxxxxx
> Onderwerp: Re: [AD] Proposal for new matrix functions
> 
> 
> > How about two new matrix functions..
> >
> > void apply_matrix_translation(MATRIX* m, float x, y, z, float* 
> xout, yout,
> > zout);
> >
> > 	Applies the translation part only. Polygons in OXY plane will always
> > 	face the screen. Usefull when doing billboarding (powerups, etc).
> >
> > void apply_matrix_rotation(MATRIX* m, float x, y, z, float* xout, yout,
> > zout);
> >
> > 	Applies the matrix to the 3D (not padded with 1.0) vector 
> with the 3z3
> > 	rotational part. Usefull to rotate normals, etc.
> 
> Do you really need the functions? Can't you use specialized 
> matrices built 
> with get_translation_matrix() and get_rotation_matrix() or 
> get_vector_rotation_matrix() ?



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/