1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 19:48:06 +00:00

3d:: converting the old vector graphics into 3D models

This commit is contained in:
Zeno Rogue
2019-04-21 01:21:03 +02:00
parent cb2e870a99
commit 596b4ce786
5 changed files with 1628 additions and 13 deletions

View File

@@ -1714,6 +1714,8 @@ hpcshape
shAsymmetric,
shPBodyOnly, shPBodyArm, shPBodyHand, shPHeadOnly,
shDodeca;
vector<hpcshape> shPlainWall3D, shWireframe3D, shWall3D, shMiniWall3D;
@@ -2683,6 +2685,8 @@ void configure_floorshapes() {
generate_floorshapes();
}
extern void make_3d_models();
void buildpolys() {
symmetriesAt.clear();
@@ -2923,6 +2927,11 @@ void buildpolys() {
bshape(shFemaleDress, PPR::MONSTER_ARMOR0, scalefactor, 97);
bshape(shDemon, PPR::MONSTER_HAIR, scalefactor, 98);
bshape(shPBodyOnly, PPR::MONSTER_BODY, scalefactor, 389);
bshape(shPBodyArm, PPR::MONSTER_BODY, scalefactor, 390);
bshape(shPBodyHand, PPR::MONSTER_BODY, scalefactor, 391);
bshape(shPHeadOnly, PPR::MONSTER_HEAD, scalefactor, 392);
bshape(shTrylobite, PPR::MONSTER_BODY, scalefactor, 99);
bshape(shTrylobiteHead, PPR::MONSTER_HEAD, scalefactor, 100);
bshape(shTrylobiteBody, PPR::MONSTER_BODY, scalefactor, 308);
@@ -3093,6 +3102,8 @@ void buildpolys() {
bshape(shBead1, PPR(20), 1, 251);
bshape(shArrow, PPR::ARROW, 1, 252);
make_3d_models();
bshapeend();
prehpc = isize(hpc);
@@ -4094,6 +4105,11 @@ NEWSHAPE, 386, 3, 1, 0.173768,0.275379, 0.340287,0.116342, 0.229291,-0.115277,
NEWSHAPE, 387, 7, 1, 0.315263,-0.310217, 0.085056,-0.287538,
NEWSHAPE, 388, 1, 1, 0.046590,0.284199, 0.028110,0.325611, 0.098711,0.333738, 0.088761,0.294314, 0.090351,0.227036, 0.092387,0.196322, 0.129546,0.192006, 0.168982,0.166667, 0.173088,0.117700, 0.022882,0.091527, 0.004586,0.133004, 0.022981,0.160866, 0.052990,0.184313, 0.085413,0.193910, 0.055297,0.184324,
NEWSHAPE, 389, 1, 2, -0.127943,0.000000, -0.121732,0.008437, -0.120752,0.047093, -0.114785,0.065246, -0.096531,0.082051, -0.079664,0.100183, -0.087015,0.156872, -0.056388,0.171466, -0.021870,0.150662, -0.022997,0.136774, -0.004819,0.120485, 0.007204,0.104455, 0.016748,0.083741, 0.026225,0.054833, 0.033323,0.030943, 0.034483,0.001189, 0.034483,-0.001189,
NEWSHAPE, 390, 1, 1, -0.079664,0.100183, -0.087015,0.156872, -0.090442,0.188317, -0.085023,0.215058, -0.078296,0.241201, -0.070101,0.263835, -0.062700,0.273833, -0.053763,0.276497, -0.037212,0.273273, -0.026261,0.230095, -0.024880,0.217700, -0.022225,0.198787, -0.020850,0.180288, -0.021870,0.150662, -0.022997,0.136774, -0.036634,0.100744,
NEWSHAPE, 391, 1, 1, -0.063645,0.226806, -0.078296,0.241201, -0.070101,0.263835, -0.062700,0.273833, -0.053763,0.276497, -0.030638,0.274461, -0.015319,0.275737, 0.001277,0.277150, 0.020384,0.271369, 0.038101,0.262896, 0.045596,0.255842, 0.062388,0.263558, 0.085371,0.258660, 0.084235,0.228817, 0.071073,0.213220, 0.048603,0.218088, 0.042541,0.228972, 0.028749,0.228742, 0.011222,0.224439, -0.012498,0.229969, -0.026261,0.230095,
NEWSHAPE, 392, 1, 2, 0.060794,0.001192, 0.058426,0.023847, 0.050054,0.030986, 0.042896,0.038130, 0.044109,0.042917, 0.032180,0.050058, 0.017884,0.059612, 0.005963,0.064401, -0.009546,0.068015, -0.022689,0.070455, -0.053753,0.053753, -0.065710,0.040621, -0.074098,0.028683, -0.088611,0.020357, -0.087387,0.017956,
NEWSHAPE
};
#endif