Vertex Color and Alpha in .B3D?

Blitz3D Forums/Blitz3D Programming/Vertex Color and Alpha in .B3D?

jfk EO-11110(Posted 2004) [#1]
Can somebody please explain me how to store Vertex Color and Alpha Information in the B3D Format?


Perturbatio(Posted 2004) [#2]
the VRTS chunk has a provision for vertex colour and vertex alpha



VRTS:
int flags ;1=normal values present, 2=rgba values present
int tex_coord_sets ;texture coords per vertex (eg: 1 for simple U/V) max=8
int tex_coord_set_size ;components per set (eg: 2 for simple U/V) max=4
{
float x,y,z ;always present
float nx,ny,nz ;vertex normal: present if (flags&1)
float red,green,blue,alpha ;vertex color: present if (flags&2)
float tex_coords[tex_coord_sets][tex_coord_set_size] ;tex coords
}




jfk EO-11110(Posted 2004) [#3]
Thanks a phantastillion!