Hello there. I’m attempting to create a main menu for my game. I’ve began using Panda3D since few days ago. And I have two qeustions:
1.) I’ve seen that the final position is inconsistent, by that I mean that the button is not correctly positioned when using having a maximized window, or using a window with the default size. Is this a bug, or intended behiavour? If yes, what are the default bounds, and how should I attack a button to the 2D screen renderer?
2.) Is there a way to place 2D items with pixel coordinates? Like placing a image at (0.5 * ScreenX, 0*5 * ScreenY) That would be a great workaround for my issue.
I believe that one can, indeed: the space used by pixel2d is just the same as any other in Panda.
However, if you want to place things at pixel-coordinates, then integers would likely make the most sense, I think, as they would correspond to non-fractional pixels.