mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 00:23:08 +00:00
more detailed Euclidean embedding parameters
This commit is contained in:
1 parent
731fcee7ce
commit
2182f442d9
5 files changed
+66
-30
No files matched your search
+15
-2
@@ -838,10 +838,19 @@ EX void initConfig() {
|
||||
addsaver(vid.always3, "3D always", false);
|
||||
|
||||
param_f(geom3::euclid_embed_scale, "euclid_embed_scale", "euclid_embed_scale")
|
||||
-> editable(0, 2, 0.05, "Euclidean embedding scale", "How to scale the Euclidean map, relatively to the 3D absolute unit.", 'F')
|
||||
-> editable(0, 2, 0.05, "Euclidean embedding scale", "How to scale the Euclidean map, relatively to the 3D absolute unit.", 'X')
|
||||
-> set_sets([] { dialog::bound_low(0.05); })
|
||||
-> set_reaction([] { if(vid.always3) { geom3::switch_fpp(); geom3::switch_fpp(); } });
|
||||
|
||||
param_f(geom3::euclid_embed_scale_y, "euclid_embed_scale_y", "euclid_embed_scale_y")
|
||||
-> editable(0, 2, 0.05, "Euclidean embedding scale Y/X", "This scaling factor affects only the Y coordinate.", 'Y')
|
||||
-> set_sets([] { dialog::bound_low(0.05); })
|
||||
-> set_reaction([] { if(vid.always3) { geom3::switch_fpp(); geom3::switch_fpp(); } });
|
||||
|
||||
param_f(geom3::euclid_embed_rotate, "euclid_embed_rotate", "euclid_embed_rotate")
|
||||
-> editable(0, 360, 15, "Euclidean embedding rotation", "How to rotate the Euclidean embedding, in degrees.", 'F')
|
||||
-> set_reaction([] { if(vid.always3) { geom3::switch_fpp(); geom3::switch_fpp(); } });
|
||||
|
||||
param_enum(embedded_shift_method_choice, "embedded_shift_method", "embedded_shift_method", smcBoth)
|
||||
-> editable({
|
||||
{"geodesic", "always move on geodesics"},
|
||||
@@ -2316,7 +2325,11 @@ EX void show3D() {
|
||||
}
|
||||
|
||||
if(WDIM == 2) {
|
||||
if(geom3::euc_in_noniso()) add_edit(geom3::euclid_embed_scale);
|
||||
if(geom3::euc_in_noniso()) {
|
||||
add_edit(geom3::euclid_embed_scale);
|
||||
add_edit(geom3::euclid_embed_scale_y);
|
||||
add_edit(geom3::euclid_embed_rotate);
|
||||
}
|
||||
add_edit(embedded_shift_method_choice);
|
||||
add_edit(vid.camera);
|
||||
if(GDIM == 3)
|
||||
|
||||
Reference in new issue
Block a user