Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supercube-style stickering (distinct center pieces for all puzzles) #180

Open
brandonwong55 opened this issue Mar 30, 2022 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@brandonwong55
Copy link

brandonwong55 commented Mar 30, 2022

It would be nice if we could have the option to turn on supercube-style stickering for all puzzles so that center pieces are distinguishable.

@brandonwong55 brandonwong55 added the enhancement New feature or request label Mar 30, 2022
@lgarron
Copy link
Member

lgarron commented Mar 30, 2022

Does https://experiments.cubing.net/cubing.js/twisty/supercube.html work for you?

You can already do that today with:

<script type="module" src="https://cdn.cubing.net/js/cubing/twisty"></script>

<twisty-player
  experimental-stickering="picture"
  experimental-sprite="./supercube-sprite.png"
></twisty-player>

(You can use https://experiments.cubing.net/cubing.js/twisty/supercube-sprite.png or make your own, just make sure to serve the image from a web server on the same domain as your page.)

@lgarron
Copy link
Member

lgarron commented Mar 30, 2022

Also, we don't have a 5x5x5 image right now, but it should be easy to adapt Stefan's if you want.

@brandonwong55
Copy link
Author

brandonwong55 commented Mar 30, 2022 via email

@rokicki
Copy link
Contributor

rokicki commented Mar 30, 2022 via email

@lgarron
Copy link
Member

lgarron commented Apr 5, 2022

I wonder if a generic gradient might work here. Each sticker would have a distinct full gradient so for instance on an nxnxn all yellow stickers would be identical but have a clear direction.

I have some screenshots of an earlier experiment with this:
megaminx  __ Scramble_R++ D-- R++ D-- R++ D-- R++ D++ R-- D-- U'_R-- D++ R++ D++ R++ D++ R++ D-- R++ D++ U'_R-- D++ R-- D++ R++ D-- R-- D-- R-- D++ U_R-- D-- R-- D++ R++ D++ R-- D-- R-- D-- U'_R-- D++ R-- D++ R-- D-- R++ D++ R-- D++ U'_R++

Personally, I think this doesn't look too great. It looks like some sort of mis-applied shading, and is too subtle if the gradient goes across an entire face. But if you make the gradient go across each sticker, that also looks really harsh.

I'd personally rather hold off on implementing something beyond sprite support until we can go with something like Pochmann-style or come up with another nice alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants