- second change in vrml file writing. Thanks to testing of a user (don't have good

vrml viewer here) I could make the UV coords in the right order.

  seems to look good now, but will keep in touch with the tester for verification
This commit is contained in:
2003-07-03 12:31:19 +00:00
parent dfa7a48407
commit a41069b954

View File

@@ -2447,9 +2447,9 @@ static void write_mesh_vrml(FILE *fp, Mesh *me)
while(a--) { while(a--) {
if(mface->mat_nr==b) { if(mface->mat_nr==b) {
fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[0][0], tface->uv[0][1]); fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[0][0], tface->uv[0][1]);
fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[3][0], tface->uv[3][1]); fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[1][0], tface->uv[1][1]);
if(mface->v3) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[2][0], tface->uv[2][1]); if(mface->v3) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[2][0], tface->uv[2][1]);
if(mface->v4) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[1][0], tface->uv[1][1]); if(mface->v4) fprintf(fp, "\t\t\t\t %f %f,\n", tface->uv[3][0], tface->uv[3][1]);
} }
mface++; mface++;
tface++; tface++;