0 Replies - 458 Views - Last Post: 04 October 2012 - 12:04 AM Rate Topic: -----

#1 inkane   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-October 12

GDI: Adding an overlay?

Posted 04 October 2012 - 12:04 AM

I'll try to explain this the best I can.

There's a flash game where players control a mouse through each "map", finding the cheese, and then returning to the hole. Maps are saved as XML, and I've made a program to draw a picture of given its XML. One issue I haven't been able to figure out though is that some grounds have a shading overlay put on top of them: http://i.imgur.com/4wOuj.png

This is set to a blending mode called "overlay" in Flash and Photoshop (I don't know much about image editing D:) You can see what these grounds look like without it (the top two) and what they actually look like in the game with it (bottom two) here: http://i.imgur.com/LRpos.png

After lots of googling I've only only been able to find info on how to fade images together, but overlay blending makes the color lighter in the white parts and darker in the black parts rather than simply fading them together. Would I use a ColorMatrix for this? is there a specific formula I need to apply to each pixel vs the overlay's pixel?

Any help would be appreciated.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1