improved Tortoise graphics in 3D, Baby Tortoises appear

This commit is contained in:
Zeno Rogue 2019-06-24 13:46:10 +02:00
parent 2c16564663
commit 8ec38e36e2
2 changed files with 11 additions and 4 deletions

View File

@ -1069,8 +1069,15 @@ void geometry_information::make_3d_models() {
for(int a=0; a<5; a++) shift_shape(shZebra[a], FLOOR);
for(int t=0; t<13; t++) for(int u=0; u<6; u++)
shift_shape(shTortoise[t][u], FLOOR - human_height * (t+1) / 120);
auto tortz = [] (int t) {
if(t == 0) return 2;
else if(t < 8) return 3;
else if(t == 13) return 2;
else return 1;
};
for(int t=0; t<13; t++) for(int u=0; u<4; u++)
shift_shape(shTortoise[t][u], FLOOR - human_height * tortz(t) / 120);
make_revolution_cut(shStatue, 60);

View File

@ -860,8 +860,8 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int pti
if(WDIM == 3 && c == viewctr.at->c7 && pmodel == mdPerspective && hdist0(tC0(V)) < cgi.orbsize * 0.25) return false;
transmatrix Vit = V;
if(GDIM == 3 && WDIM == 2 && c) Vit = mscale(V, cgi.STUFF);
if(DIM == 3 && c) Vit = face_the_player(Vit);
if(GDIM == 3 && WDIM == 2 && c && it != itBabyTortoise) Vit = mscale(V, cgi.STUFF);
if(DIM == 3 && c && it != itBabyTortoise) Vit = face_the_player(Vit);
// V * cspin(0, 2, ptick(618, 0));
if(c && conformal::includeHistory && conformal::infindhistory.count(c)) poly_outline = OUTLINE_DEAD;