1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-05 16:54:08 +00:00

rogueviz:: fixes in noniso visualizations

This commit is contained in:
Zeno Rogue 2020-05-01 10:49:06 +02:00
parent c9650cda2c
commit fcad5d3f34
3 changed files with 8 additions and 5 deletions

View File

@ -281,6 +281,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)
[] (presmode mode) { [] (presmode mode) {
setCanvas(mode, '0'); setCanvas(mode, '0');
slidecommand = "animation";
if(mode == pmKey) { if(mode == pmKey) {
tour::slide_backup(cylanim, !cylanim); tour::slide_backup(cylanim, !cylanim);
} }

View File

@ -150,6 +150,7 @@ void snow_slide(vector<tour::slide>& v, string title, string desc, reaction_t t)
[t] (presmode mode) { [t] (presmode mode) {
setCanvas(mode, '0'); setCanvas(mode, '0');
slidecommand = "auto-movement";
if(mode == pmKey) { if(mode == pmKey) {
using namespace anims; using namespace anims;
tour::slide_backup(ma, ma == maTranslation ? maNone : maTranslation); tour::slide_backup(ma, ma == maTranslation ? maNone : maTranslation);
@ -238,7 +239,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
+ addHook(rvtour::hooks_build_rvtour, 140, [] (vector<tour::slide>& v) { + addHook(rvtour::hooks_build_rvtour, 140, [] (vector<tour::slide>& v) {
v.push_back(tour::slide{ v.push_back(tour::slide{
cap+"intro", 10, tour::LEGAL::NONE | tour::QUICKSKIP, cap+"snowball visualization", 10, tour::LEGAL::NONE | tour::QUICKSKIP,
"Non-Euclidean visualizations usually show some regular constructions. Could we visualize the geometries themselves? Let's distribute the snowballs randomly." "Non-Euclidean visualizations usually show some regular constructions. Could we visualize the geometries themselves? Let's distribute the snowballs randomly."
"\n\n" "\n\n"
"You can use mouse to look in different directions. Press 5 to turn the automatic movement on or off. Press 'o' to change density and shape." "You can use mouse to look in different directions. Press 5 to turn the automatic movement on or off. Press 'o' to change density and shape."
@ -291,16 +292,17 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
tour::slide_backup(snow_shape, 2); tour::slide_backup(snow_shape, 2);
snow_lambda = 5; snow_lambda = 5;
}); });
snow_slide(v, "SL(2,R)", "Here is SL(2,R), like Nil but based on hyperbolic plane instead. Geometric lensing effects are strong in both Nil and SL(2,R). (Starting with spherical plane yields spherical geometry.)", [] { snow_slide(v, "SL(2,R)", "Here is SL(2,R), like Nil but based on hyperbolic plane instead. Geometric lensing effects are strong in both Nil and SL(2,R). (Starting with S^2 yields spherical geometry.)", [] {
set_geometry(gNormal); set_geometry(gNormal);
set_variation(eVariation::pure); set_variation(eVariation::pure);
set_geometry(gRotSpace); set_geometry(gRotSpace);
snow_lambda = 5; snow_lambda = 5;
}); });
#if CAP_SOLV #if CAP_SOLV
snow_slide(v, "Solv", "Solv geometry. Like the non-isotropic hyperbolic space (#4) but where the horizontal and vertical curvatures work in the other way.", [] { snow_slide(v, "Solv", "Solv geometry. Like the non-isotropic hyperbolic geometry but where the horizontal and vertical curvatures work in the other way.", [] {
set_geometry(gSol); set_geometry(gSol);
snow_lambda = 20; // tour::slide_backup(snow_shape, 2);
snow_lambda = 3;
}); });
#endif #endif
}); });

View File

@ -523,7 +523,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)
else if(argis("-tri-net")) { else if(argis("-tri-net")) {
on = true; net = true; on = true; net = true;
} }
else if(argis("-tri-net")) { else if(argis("-tri-one")) {
on = true; net = false; on = true; net = false;
} }
else return 1; else return 1;