Board Size & Bitmaps

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Board Size & Bitmaps

Postby Gabriel_Ruan » 10 Jun 2021, 19:56

Hello. Is it possible to play Shatranj at board size Large? I made 80px bitmaps that work in 'normal' chess but not variants it seems.

As an aside, I was wondering whether or not it is possible to use custom bitmaps in lieu of text at large sizes, in the case of Chu Shogi for instance.

Update: enabling font-based pieces allows me to scale the window as much as I want, but otherwise it is capped at size Medium for some reason.

Update #2: I created a second set of piece graphics for use in Shatranj at a size of 64px, which is reportedly the medium board size, but alas they don't display either.

Update #3: I can't make sense of the board sizes. I think they were capped at medium for some reason, but in fact smaller sizes don't work the way you'd expect them to either.

Thank you.
Last edited by Gabriel_Ruan on 04 Dec 2022, 21:22, edited 1 time in total.
Gabriel_Ruan
 
Posts: 9
Joined: 22 Sep 2018, 23:41

Re: Board Size & Bitmaps

Postby Gabriel_Ruan » 04 Dec 2022, 21:21

I figured it out, kinda. It would seem Shatranj, unlike "normal" chess, is only playable at a few board sizes. I don't know what these board sizes are, except that all settings at or above Medium equal Bulky (bitmaps 72px wide).
It is therefore not possible to use high resolution piece graphics in this variant.

H.G.Muller, is there a workaround? Thank you.
Gabriel_Ruan
 
Posts: 9
Joined: 22 Sep 2018, 23:41

Re: Board Size & Bitmaps

Postby H.G.Muller » 05 Dec 2022, 10:28

I must have overlooked your initial posting on this; sorry about that. The sizes are Petite (33x33), Middling (49x49) and Bulky (72x72). WinBoard by default uses built-in bitmaps for the piece images, and only the images of the 6 orthodox pieces are available in all of the 18 sizes. The Elephant and Ferz that are needed for Shatranj only exists in the mentioned sizes, which is why WinBoard rounds the requested size to one of the mentioned in Shatranj and most other variants.

There is no need to do this when using external bitmaps, though. I thought I had disabled this rounding when a pieceImageDirectory is specified. But apparently not. I will look into it. One problem is that even in the WinBoard-AA package, which is configured to use external piece bitmaps, most fairy pieces are still only available in the metioned 3 sizes, in the bmaps folder. So rounding the size there still makes sense. But perhaps the rounding could be made subject to required pieces of the requested size not being available in the specified directory.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Board Size & Bitmaps

Postby Gabriel_Ruan » 20 Feb 2023, 18:51

Is it the case that not all piece graphics can be replaced, at all board sizes? What of shogi and the like? Thanks.
Gabriel_Ruan
 
Posts: 9
Joined: 22 Sep 2018, 23:41

Re: Board Size & Bitmaps

Postby Josh Pettus » 21 Feb 2023, 04:57

Don't know how bit of a tinkerer you are, but in this modern day of WSL, I wouldn't be surprised if you could get gtk xboard itself working on windows. In Xboard you aren't limited to specific board size as it will scale SVG and PNG files to any size. I for one should definitely give it a try.
Josh Pettus
 
Posts: 317
Joined: 11 Mar 2009, 01:11


Return to Winboard and related Topics

Who is online

Users browsing this forum: Google [Bot] and 16 guests