[BUG] 3D dice display error (d100, d4, d6)
Describe the bug I identified three issues while using 3D dice. All three occurred on remote deployment sites, but the second issue also persists in local environments such as http://127.0.0.1:8000.
Below is a detailed breakdown:
- 3D dice drop issue: When using a d100 dice, in the majority of cases only one d10 dice drops, while both dice drop simultaneously in rare instances. The problem of dice drop often makes the web page stuck.
- d4 dice numerical mismatch: The displayed result of the 3D dice consistently fails to match the numerical result.
- d6 dice display tilting: The 3D dice tilts during rendering, preventing correct result visualization.
Reproduction steps for all issues will include graphical illustrations.
To Reproduce Steps to reproduce the behavior:
- Go to 'dice'
- Click on '3D Dice On'
- Then click on 'd100' or 'd4' or 'd6'
- See error
Expected behavior It is expected that the 3D dice can display the results normally on the remote deployment site.
Screenshots
Problem 1:
Problem 2:
Problem 3:
Desktop (please complete the following information):
- OS: Windows
- Browser Edge
- Version 138.0.3351.65 (Official buil) (64-bit)
Additional context Add any other context about the problem here.
Which version of PA are you using? Because when I roll dice on 2025.2.2 they are always thrown in?
I can reproduce the d4 indeed being wrong, the other 2 I haven't been able to reproduce yet.
Do you have the same behaviour on another browser or device?
The d4 issue was actually already reported in november in the pa-dice repo itself. (this issue has also been resolved by now in the dev branch of PA)
I'll use that ticket is the prime ticket for that issue, and keep this ticket for your other issues.
It's very strange. After this period of testing, I found that I can no longer reproduce Issue 1 and Issue 3 either. However, the issues did exist at the time. Perhaps I will follow up with you again when I rediscover the trigger conditions.
Well, I gave it another try now, and this time there's a new issue. I'm using the latest version of PA, which is 2025.2.2. I'll demonstrate the specific problem via a GIF.
Are there any errors in your browser console when this happens? Does this by any chance only happen after resizing the screen or moving monitors or something?
I did not find any related errors in the browser console. Currently, it displays:
Currently, what is related to the dice is Babylon, and the displayed content is precisely BJS......
It probably isn't due to resizing the screen, but I still need to test whether it is related to the monitor or if it can be reproduced on other computers. I will get back to you after testing.
That is so weird. I have never seen the dice dropped from above like that, and to disappear into infinity smacks of some sort of layering issue?
I'd be really curious to know the cause of that effect just for my own knowledge base really.
I fiddled a bit with the dice physics during the dice tool reskin, so I'm hoping something I did didn't cause breakage. Does any of this behavior also happen when in 'Box' mode, or only when in 'On'?