5 Replies - 6779 Views - Last Post: 08 January 2013 - 08:27 AM Rate Topic: -----

#1 PastaPojken  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-October 12

C++/SDL "fog of war" effect

Posted 04 January 2013 - 03:29 PM

Hi everyone!

I'm trying to create something like a "fog of war" effect but I don't really know how to do it...
I've found this: http://stackoverflow...cles-fog-of-war
but I don't really understand it. Thanks for any help or suggestion ^^

Is This A Good Question/Topic? 0
  • +

Replies To: C++/SDL "fog of war" effect

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9204
  • View blog
  • Posts: 34,577
  • Joined: 12-June 08

Re: C++/SDL "fog of war" effect

Posted 04 January 2013 - 03:38 PM

So.. what do you want people to help you with?
Was This Post Helpful? 0
  • +
  • -

#3 PastaPojken  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-October 12

Re: C++/SDL "fog of war" effect

Posted 04 January 2013 - 03:44 PM

View Postmodi123_1, on 04 January 2013 - 03:38 PM, said:

So.. what do you want people to help you with?


Sorry if I wasn't clear, I would really appreciate if someone could give me any hints or maybe explain in a more clearly way what the guy in the link is doing :)
Was This Post Helpful? 0
  • +
  • -

#4 jimblumberg  Icon User is online

  • member icon


Reputation: 4071
  • View blog
  • Posts: 12,559
  • Joined: 25-December 09

Re: C++/SDL "fog of war" effect

Posted 04 January 2013 - 04:17 PM

I suggest asking a question in that forum.

Jim
Was This Post Helpful? 0
  • +
  • -

#5 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1344
  • View blog
  • Posts: 4,613
  • Joined: 19-February 09

Re: C++/SDL "fog of war" effect

Posted 07 January 2013 - 12:05 PM

The poster is using the alpha channel at pixel-level. SDL can use surface-level alpha and pixel-level alpha.

Here is a surface level tutorial to give you an idea.

Alpha Blending
Was This Post Helpful? 1
  • +
  • -

#6 PastaPojken  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-October 12

Re: C++/SDL "fog of war" effect

Posted 08 January 2013 - 08:27 AM

View Post#define, on 07 January 2013 - 12:05 PM, said:

The poster is using the alpha channel at pixel-level. SDL can use surface-level alpha and pixel-level alpha.

Here is a surface level tutorial to give you an idea.

Alpha Blending


Thank you!!! :D That really helps! :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1