drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.3k stars 57 forks source link

Feature: Globally zoom object #114

Open elmodor opened 1 year ago

elmodor commented 1 year ago

Is your feature request related to a problem? Please describe. Sometimes cards or other objects can be very tiny when they are on the table (especially if they have text on them). Currently it's only possible to zoom into cards which are on the players hand.

Describe the solution you'd like Any object should be displayed bigger (via the popup) when hovering over with the mouse and the specific button is pressed, not only cards on the hand.
Furthermore it should be possible to change the size of the zoomed in popup by using the scrollwheel (to increase/decrease the size of the zoomed in objects).

Describe alternatives you've considered The player would need to zoom into the whole board to read cards on the table if the text on the cards are too tiny to read from the currently perspective.

drwhut commented 1 year ago

Cool, I've got a few questions as to how this would work:

elmodor commented 1 year ago

Right, maybe lets stick to cards, tokens and dice. Those have text on them while other objects usually do not.

What does this functionality solve, that zooming into the table doesn't?

It's basically just some nice to have usability? Of course you can zoom in to the table and pan to the object just to read the text on it. Zoom out, pan to your previous position. With this functionality, you can just stay where you are, press the key to quickly get a bigger picture of the card and continue where you left of.

I guess this just depends on the playstyle.

drwhut commented 1 year ago

Those are some good ideas to prevent cheating!

I guess yeah, it's just to add another option for looking at something on the table. But since it could be potentially quite tricky to implement for 3D objects like dice (which can't really use the same system as previewing cards, tokens we might be able to get away with since they have a standard UV mapping), I might implement this later down the line, since it only provides an alternative way of doing something that's already possible.

elmodor commented 1 year ago

Well you could start with cards (and maybe tokens) and add other further down the line. I guess text is the most difficult to read sometimes which is mostly only on cards anyway.