Recommend
 
 Thumb up
 Hide
3 Posts

Duel of Ages II» Forums » Variants

Subject: Board image files? rss

Your Tags: Add tags
Popular Tags: [View All]
Chris Kessel
United States
Beaverton
Oregon
flag msg tools
badge
mbmbmbmb
I suspect these are secret and proprietary to Worldspanner, but are there image files of the board available?

I'm toying with trying to create a Line of Sight program, but I'd need images of the board to try and determine whether a line intersects any non-transparent image pixels.

I suppose I could scan a board and manually repair each pixel, but that'd be pretty tedious.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Johan Haglert
Sweden
Örebro
flag msg tools
Avatar
mbmbmbmbmb
ckessel wrote:
I suspect these are secret and proprietary to Worldspanner, but are there image files of the board available?

I'm toying with trying to create a Line of Sight program, but I'd need images of the board to try and determine whether a line intersects any non-transparent image pixels.

I suppose I could scan a board and manually repair each pixel, but that'd be pretty tedious.
What you mean with repair?

It need to be exactly as in print / their image files?

Oh, or you want layered images where it's known what objects sit on top of the background?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Chris Kessel
United States
Beaverton
Oregon
flag msg tools
badge
mbmbmbmb
aliquis wrote:
What you mean with repair?

It need to be exactly as in print / their image files?

Oh, or you want layered images where it's known what objects sit on top of the background?

I think the latter. I'm not on the UI side of things when I work, but I have worked with images with transparent pixels.

So, yea, I need the layer with all the terrain assets that sit on top of the base background for that board (e.g. pink for future). Then when I'm computing pixel collision with a line, I compare it against just the image with the terrain. What'd draw on the screen would be everything, layering one image draw on top of another (background, then terrain, then LOS line), so it'd look normal to the user.

If I scan it, I think I'd have to manually mark each background pixel as transparent to achieve the same effect. The backgrounds aren't one solid color, so I can't just mark all pink (for future) pixels as transparent.

Again, not a GUI guy, so maybe there's an easier way to do this somehow from a scan. I'm a really good software programmer and I understand the algorithms for pixel collision detection between images, but getting that image in the first place...that's the hard part right now

Edit: I have no idea how I'm going to handle mesas. Strict pixel collision isn't that hard, but mesas involve quite a bit of logic about whether a collision is even relevant since it can look over some terrain.

Edit 2: Talked with a GUI friend of mine and it's not really feasible without creating layers with the underlying artwork so you can do collision just on the terrain elements. That'd be beyond painful recreate from a scan.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.