Rumo
16th May 2011, 00:45
Hi,
I'm having a problem with the bounds of a map consists of hexagons. The hexagons were added to a QGraphicScene and this is shown in a QGraphicsView. For the first everything is right.
6419
But in my case I want to have a game with pixel detailed unit movements. And so the bounds of the map are not so proper. I want to cut the bounding hexagons so that there's no background color to see.
So my question is: What is the best way to improve the bounds to have a game in which the hexagons are only for land type information and units are able to move pixel accurate.
For my there are two ways. First is to draw "cutted" bound hexagons and the second is to "clip" the QGraphicScene or to setSceneRect. But setSceneRect does'nt work in the right way.
Thank you
Rumo
I'm having a problem with the bounds of a map consists of hexagons. The hexagons were added to a QGraphicScene and this is shown in a QGraphicsView. For the first everything is right.
6419
But in my case I want to have a game with pixel detailed unit movements. And so the bounds of the map are not so proper. I want to cut the bounding hexagons so that there's no background color to see.
So my question is: What is the best way to improve the bounds to have a game in which the hexagons are only for land type information and units are able to move pixel accurate.
For my there are two ways. First is to draw "cutted" bound hexagons and the second is to "clip" the QGraphicScene or to setSceneRect. But setSceneRect does'nt work in the right way.
Thank you
Rumo