Fog of war

I tried to implement the fog of war for a game that I do. I tried several approaches, but none have been successful.

Tiles alpha:

It was the first thing I tried, unfortunately covering the screen in this many tiles with a level of alpha caused too much lag and I gave up.

Vector drawings and blending mode:

Then, I tried to draw a black rectangle and Blendmode.ERASE in things, I want the player to see. With multiple light sources, it gets laggy and becomes horrible if I apply a blur filter.

Masks:

Finally I tried to masks, unfortunately they are not very flexible (one mask by movieClip and other). They do not fit the Bill.

You have suggestions/alternative methods to make this work?

Create a new BitmapData transparent, then use copyPixels() or draw() your foh on this. See http://www.developria.com/2010/02/dealing-with-bitmapdata.html for more information.

Some examples of my blog to work with pixels that you might find useful http://flexdiary.blogspot.com/search/label/BitmapData

Tags: Adobe Animate

Similar Questions

  • Questions of Age Of Mythology

    Original title: Age Of Mythology

    I'M it seems to work fine except when in the gameplay, the fog of war is not there and the black area has been cut off.  buildings do not place correctly and not turns not red on you can't build on areas.  It really affects gameplay... can someone help to...

    also just along the coast it is blue right no true sand coloring and waves washing on the line of the beach just a colorful blue area throughout the shore...

    Hello

    It could be a video problem with the "Age Of Mythology" computer game.

    I want to tell you that this game is not compatible with Windows 7. You can check the link for:

    http://www.microsoft.com/en-us/windows/compatibility/win7/CompatCenter/ProductViewerWithDefaultFilters?TempOsid=win7&Locale=en-us&TextSearch=age%2Bof%2Bmythology&Type=Both&CurrentPage=0&TotalPages=1&ShowCriteria=0&SortCriteria=Relevance&Compatibility=Unknown&LastRequested=14

    I suggest you check out the link to try to resolve the problem:

    http://support.Microsoft.com/kb/331147

    For further assistance, you can contact the game support team. Check out the link:

    http://support.Microsoft.com/ph/7745

    Please let us know if you have more queries on Windows.

  • Star Wars: Republic Commando. Worked on Vista, the problem is that when the game tries to load the first mission, he leaves the game

    Star Wars: Republic Commando. Worked on Vista, the problem is that when the game tries to load the first mission (the only one available for a new player) outputs of the game and gives the following. I hope this info is useful to anyone who is willing to take the time to help me. Thank you-Zachert45

    Details:

    Problem event name: APPCRASH

    Application name: SWRepublicCommando.exe

    Application version: 0.0.0.0

    Application timestamp: 41f707e4

    Fault Module name: StackHash_1a02

    Fault Module Version: 0.0.0.0

    Fault Module Timestamp: 00000000

    Exception code: c0000005

    Exception Offset: 6 c 707544

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 1033

    Information additional 1: 1a 02

    More information 2: 1a022ea3469ead417de7f3ac704042e3

    3 more information: aa4f

    Additional information 4: aa4f8516a5b4c2bae31f69214dbeb837

    In addition, the game made a newspaper that it lasted, if an error occurred. NOTE: Windows verson shown here was one of the many tests bring made, all ended the same way.

    Uninitialized: open the log file, 08/09/12 19:20:48
    Uninitialized: name subsystem initialized
    Init: Detected: Windows NT 6.0 (Build: 6000)
    Init: Build: 139
    Init: Version of the engine: 2226
    Init: Update: January 25, 2005
    Init: command line:
    Init: Base Directory: C:\Program Files (x 86) \LucasArts\Star Wars Republic Commando\GameData\System\
    Init: Character set: ANSI
    Journal: Related to Window.dll
    Journal: Related to Core.dll
    Journal: Related to frengine.dll
    Init: Subsystem of the initialized object
    Init: Computer: ZACHERT45HP
    Init: User: Zachert45
    Init: Of CPU Page size = 4096, processors = 4
    Init: CPU detected: type processor PentiumPro (GenuineIntel)
    Init: CPU features: FPU CMov EAP RDTSC MMX, SSE
    Init: CPU @ 2694 MHz
    Init: Total memory: Phys = 1048575 K Pagef = 2097151 K Virt = 2097024K
    Init: Working together: 32000 / 159000
    Init: Physical memory: 1023 MB
    Init: D3D Device: video memory onboard: 1008
    Caution: Charge Dynamics Engine.GameEngine
    Journal: Bound to CTGame.dll
    Journal: Bound to Gameplay.dll
    Journal: Related to IpDrv.dll
    Journal: Related to XInterface.dll
    Journal: Related to XGame.dll
    Init: Unreal engine initialized
    Journal: Related to WinDrv.dll
    Init: Client initialized
    Journal: Related to D3DDrv.dll
    Init: Direct3D detected adapters:
    Journal: aticfx32.dll/Radeon HD 6470 M
    Init: D3D Driver: MaxTextureBlendStages = 8
    Init: D3D Driver: MaxSimultaneousTextures = 8
    Init: D3D Driver: MaxActiveLights = 8
    Init: D3D Driver: MaxPrimitiveCount = 5592405
    Init: D3D Driver: MaxVertexIndex = 16777215
    Init: D3D Driver: MaxStreams = 16
    Init: D3D Driver: MaxStreamStride = 508
    Init: D3D Driver: MaxVertexShaderConst = 256
    Init: D3D Driver: VertexShaderVersion = 1.1
    Init: D3D Driver: PixelShaderVersion = 1.4
    Init: D3D Driver: support AGP detected
    Init: D3D Driver: using w-pixel fog
    Init: D3D Driver: trilineaires media
    Init: D3D Driver: supports BLENDDIFFUSEALPHA
    Init: D3D Driver: Supports LOD bias
    Init: D3D Driver: Supports Z polarization
    Init: D3D Driver: supports D3DTOP_ADDSIGNED2X
    Init: D3D Driver: supports D3DTOP_BUMPENVMAP
    Init: D3D Driver: supports D3DTOP_BUMPENVMAPLUMINANCE
    Init: D3D Driver: supports D3DTOP_DOTPRODUCT3
    Init: D3D Driver: supports D3DTOP_MODULATEALPHA_ADDCOLOR
    Init: D3D Driver: supports D3DTOP_MODULATECOLOR_ADDALPHA
    Init: Unreal Engine Direct3D support - internal version: SB3
    Init: D3D Device: szDriver = aticfx32.dll
    Init: D3D Device: szDescription = Radeon HD 6470 M
    Init: D3D Device: wProduct = 8
    Init: D3D Device: wVersion = 17
    Init: D3D Device: wSubVersion = 10
    Init: D3D Device: wBuild = 1065
    Init: D3D Device: dwVendorId = 4098
    Init: D3D Device: dwDeviceId = 26464
    Init: D3D Device: dwSubSysId = 370806844
    Init: D3D Device: dwRevision = 0
    Init: D3D detected: ATI video card
    Init: D3D Device: using cubemap [with mipmaps]
    Caution: Charge Dynamics BumpTex.StaticEnvmaps.StaticDiffuse
    Caution: Charge Dynamics BumpTex.StaticEnvmaps.StaticSpecularMatte
    Caution: Charge Dynamics BumpTex.StaticEnvmaps.StaticSpecularDull
    Caution: Charge Dynamics BumpTex.StaticEnvmaps.StaticSpecularPolished
    Caution: Charge Dynamics BumpTex.StaticEnvmaps.StaticSpecularShiny
    Journal: (Karma): Karma from beginning of game.
    Journal: (Karma): creation of MeAssetDB.
    Journal: (Karma): loading: ambient.ka
    Journal: (Karma): loading: clone.ka
    Journal: (Karma): loading: droid.ka
    Journal: (Karma): loading: geonosian.ka
    Journal: (Karma): loading: rasanimprops.ka
    Journal: (Karma): loading: trandoshan.ka
    Journal: (Karma): loading: turrets.ka
    Journal: (Karma): loading: vehicles.ka
    Journal: (Karma): loading: wookiee.ka
    Journal: (Karma): finished creating MeAssetDB (27 properties).
    Log: Watermark memory pre load: 0
    Journal: Preload for entry Stats: 58 opened, looking for 269, dumpsters 954, bed 46950 KB / 4329, serialize 44419 KB / 1615039
    Journal: LoadMap: entry 08/09/12 19:20:49
    Log: Watermark memory pre load: 1
    Caution: Charge Dynamics Entry.myLevel
    Journal: Loading times for the entry: 0.000 sec total, 0.000 app
    Connection: Time entry init actor coll: 0.000 sec total, 0.000 app
    Journal: Play class is "GameInfo."
    Newspaper: The level is level Entry.myLevel
    Newspaper: * WARNING - paths is maybe NOT INVALID *.
    Journal: What is the Entry.myLevel level to play (0) 08/09/12 19:20:49...
    ScriptLog: InitGame:
    ScriptLog: Mutator database is Entry.InGameTempName
    ScriptLog: GameInfo::InitGame: bEnableStatLogging False
    ScriptLog: MusicStat is InGameTempName
    Connection: Time entry init BeginPlay: 0.000 sec total, 0.000 app 08/09/12 19:20:49
    Log: Watermark memory Post charge: 2
    Connection: Time entry init: 0.000 sec total, 0.000 app
    Journal: Entry file load stats: opens 2, looking for 4, 9 trucks, 31KO bed / 16, serialize 7KO / 2092
    Connection: Exit LoadMap 08/09/12 19:20:49
    Caution: Charge Dynamics UDebugMenu.UDebugRootWindow
    Caution: Charge Dynamics UDebugMenu.UDebugBlueLookAndFeel
    Journal: Related to ALAudio.dll
    Init: AL_VENDOR: Creative Labs Inc.
    Init: AL_RENDERER: software
    Init: AL_VERSION: OpenAL 1.0
    Init: AL_EXTENSIONS: EAX 2.0, EAX, EAX, EAX 4.0 3.0 unified and EAX - AC3
    Journal: 16 Sources AL Audio created!
    Init: ALAudio: initialized subsystem.
    ScriptLog: 255 team
    Journal: (Karma): KInitSkeletonKarma: framework, but not of the world.
    Init: System initialized to input InGameTempName
    Journal: Open window
    Journal: Couldn't put the window in the foreground.
    Journal: Enter SetRes: 1024 x 768 full screen 0
    Journal: Using back buffer 22 (32-bit) format
    Journal: Using format 77 (32-bit) depth buffer
    Journal: Creation of device
    Init: D3D Driver: CreateDevice: will use the hardware transformation and lighting.
    Init: D3D Driver: CreateDevice: will use hardware vertex processing
    Journal: Create context of the EMI.
    Init: Init game engine time: seconds 1,366000 total 1.014007 app
    Journal: Game init load stats: opens 2, looking for 11, 61 Skips, bed 445 KB / 141, serialize 268 KB / 190555
    ScriptLog: MenuOpen: XInterfaceCTMenus.CTStartPCMenu (RESET)
    Caution: Charge Dynamics GUIContent.Menu.RC_title_bg
    Journal: StartMovie with m_PlaybackRect (0, 0), (1024, 768)
    Connection: Start time: 1,177000 seconds
    Newspapers: Lots static mesh: 0 bytes of vertex, 0 bytes index
    Journal: StartMovie with m_PlaybackRect (0, 0), (1024, 768)
    Journal: Precaching: Entry.LevelInfo0
    Journal: Allocation of the dynamic index buffer 16384 bytes.
    Log: Precache time geometry: 0.006 sec total, 0.000 app
    Journal: Texture precache time: 0.009 s total, 0.000 app
    Journal: Statistics of load precache entry: opens 5 to 0, seeks 10 jumps, bed 1512 KB / 28, serialize 1496 KB / 142
    Journal: 131072 bytes dynamic vertex buffer Allocation.
    Caution: Charge Dynamics XInterfaceCTMenus.CTMenuMain
    Journal: GotoMenu (InGameTempName)
    Journal: StartMovie
    Journal: CallMenu (InGameTempName)
    Journal: GotoMenu (InGameTempName)
    Journal: CloseMenu()
    Journal: Browse: PRO? Name = zach? Class = CTCharacters.PlayerCommando? Team = 255 08/09/12 19:21
    Log: Watermark memory pre load: 2
    LOG: Preload PRO Stats: 2 opens, looking for the 14, 15 jumps, bed 1315 KB / 56, serialize 1289 KB / 23365
    Journal: LoadMap: new level of loading. Pause/stop implementing caching of files.
    Journal: Unloading: PRO package
    Journal: LoadMap: PRO? Name = zach? Class = CTCharacters.PlayerCommando? Team = 255 08/09/12 19:21
    ScriptLog: stop menu movie
    Journal: Garbage collection
    Journal: Serving garbage
    Journal: Garbage: objects: 23768-> 23528; REF.: 232574
    Journal: FName High Watermark: 33191
    Journal: Number current FName: 30109
    Journal: FName slots available: 3082
    Journal: UObject High Watermark: 23774
    Log: Watermark memory pre load: 3
    Caution: Charge Dynamics PRO.myLevel
    Journal: 131072 bytes dynamic vertex buffer Allocation.
    Journal: (Karma): initialization Karma for the level.
    Journal: (Karma): Autodetecting CPU SSE
    Journal: (Karma): using SSE optimizations
    Newspapers: Loading PRO time: 0,356 total sec, 0,328 app
    Connection: Hour PRO init actor coll: 0.000 sec total, 0.000 app
    Journal: Play class is 'CTGameInfoSP '.
    Newspaper: The level is level PRO.myLevel
    Journal: What is the PRO.myLevel level to play (0) 08/09/12 19:21...
    ScriptLog: InitGame?: Name = zach? Class = CTCharacters.PlayerCommando? Team = 255
    ScriptLog: Mutator is PRO. InGameTempName
    ScriptLog: GameInfo::InitGame: bEnableStatLogging False
    ScriptLog: MusicStat is InGameTempName
    WARNING: PlayAnim: not found "ActionBreathe" sequence for the mesh "CloneBoy."
    ScriptWarning: PawnFactory PRO. PawnFactory2 (function CTGame.Factory.PostBeginPlay:0058) Factory PRO. PawnFactory2 has no prototype!
    WARNING: PlayAnim: not found "ActionBreathe" sequence for the mesh "GunshipBall."
    ScriptWarning: PawnFactory PRO. PawnFactory0 (function CTGame.

    I read the fix below on three different forums.
    Seems to work for some. Especially those with Pentium cpu.

    "In the main Menu, select Options-> graphics. Variation in the quality of the low relief map. When I have it on medium or high, it crashes. »

    The game was released in ' 05, a bad year for compatibility issues with different
    DRM and Win7. If the problem is with the Launcher, then a noCD fix would be a good solution.
    http://MegaGames.com/games/Star-Wars-Republic-Commando

    .

  • Ransom ware

    the data on my time capsule is course ware ransom

    Take a look at this thread How do we protect ourselves 'Ransomware'

  • Star Wars series

    A lot of new books Star Wars canon are part of the 'Star Wars' series. A lot of books, however, is excluded. It is lost by Claudia Gray stars and most of the path of Force wakes up short stories. Who is the best person to contact to get these books included in the series.

    This has happened once before with my Hunger Games books. Customer support Apple has learned from him, and less than a month, my Hunger Games book has been included in the series 'Hunger Games'.

    Is it just a matter of point out the differences to Apple?

    The best people to contact are the Publisher/owner of the rights to these books, Apple can sell in a country that they are allowed to sell - you can try only asking them through iTunes, but Apple cannot do anything without the consent of the rights holder: http://www.apple.com/feedback/itunes.html

  • iPhone Sync with PCI trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    I am trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    Mac or Windows?

  • If I pre-order the Captain America civil war right now I'll be able to watch tonight from sound to cinema?

    IF I pre-order the Captain America civil war on iTunes can I watch it tonight since its theatrical release?

    No, you will be able to watch it when it was released on iTunes Store from your country

  • Star Wars Comics on iBooks

    How is it are not communicated to the only question of the any of the Comics Marvel Star Wars on iBook?  Only the largest volume of releases are out there. The descriptions are not useful as to what issues are in each comic and some volumes; for example, Vader 1 missing in the collection. Is it a problem to Apple, or is this a decision of Marvel?

    It is the decision a Marvel / rights holder, Apple can sell content where they are allowed to sell it. You can try to contact Marvel and ask them to let Apple sell them and you can also try asking them by Apple (but without the agreement of the holder of the rights, Apple will not be able to do anything): http://www.apple.com/feedback/itunes.html

  • STAR WARS 15-an001na HP: slot m2 15-an001na HP STAR WARS SPECIAL EDITION?

    Hello.

    I would like to ask any SSD on my STAR WARS 15-an001na HP, but I can't find record of ditailed to see if the MB has additional location SATA or m2. Can u pls addvise.

    THX.

    Yes, he sees s. 53 of the Manual:

    Star Wars laptop manual

    Remove the bottom cover to access the slot, but it can take a drive SATA M.2 2280 mm module.

    If it's 'the Answer' please click on 'Accept as Solution' to help the other ifnd it.

  • Store the Spanish: Star Wars in English

    A few comments. I am British and live in Spain. I suffer by your Spanish store with her Spanish dubbed movies that sometimes are not available in their original language. Despite the fact that you're the best option I have, the Microsoft store and Google game store had little English movies in Spain. I bought in the ecosystem Apple films last month and so far most of the purchases have been great, but the Star Wars we were horrible. Yes, the film is available in English, but you have committed the horror and betrayal Act to leave the famous Star Wars text roll all in Spanish with English subtitles. Terrible! My iTunes client is fully in English. My OS (Windows 10) is also defined entirely in English. In a digital market these things to note and Star Wars nerds like myself should not be exposed to the HORROR of a foreign language imposed on the Star Wars text roll. Please watch in solve this in the future if I get good English through and through.

    As a story aside, I think you should reconsider your encoding, your version of the movie is ok, but it lacks the detail I saw in other editions of HD film on my TV screen.

    You're talking about other users on these forums of users, no support or Apple iTunes.

    The film studio/holder of rights decides which language (s) and/or subtitles and/or features a particular movie has in the Bank of a country, not Apple. You can try to contact the rights holder

  • Satellite C50-A-1 - game "Star Wars: the old Republic ' is lagging

    Hello

    I recently bought a Satellite C series. (C50-A-1 more specficly).
    Problem is when I downloaded star wars: the old Republic, the game lags badly.

    The graphics in the game are set in the lowest possible to minimize lags and yet I still get them. Here's some info of dxdiag, although they should be known for this type of laptop, I suppose that:

    OS: 64-bit windows 8.1
    Processor: 2.13 GHz (2 CPUs) (Intel, Celeron)
    memory: 4096 MB
    DirectX 11

    Please help with it as soon as possible thank you

    Have you already checked the hardware requirements to play this game smoothly?

    C50-A-1 satellite was equipped with an internal Intel HD graphics card.
    This GPU is part of the Intel CPU and to be honest, this isn t graphics card designed for purposes of games.

    To play games smoothly, you need a laptop nVIdia or ATI graphics cards.

  • Total war Shogun 2 - MV 2005 c ++ redistributable install error 1935.

    Hi, hope you're well :)

    yesterday I bought total war shogun 2, and then installed steam (installed by using steam game) began a 7 step installation.
    On stages was the installation of Microsoft visual c 2005 ++ Redistributable.
    The bar stops at about 70% full and then the error message "Error 1935.
    An error occurred during the installation of the assembly. ... "

    I read a lot of FAQ about how to resolve this situation, but nothing helped. I also tried to install manually, but it's the same problem.

    I got to the point where I wanted to reset the laptop to the factory setting but I got a problem with that too.

    Thx for the help.

    Post edited by: NunoAP

    > Got to the point where I wanted to reset the laptop to the factory setting but I got a problem with that too.

    I don t know your laptop, but especially you can retrieve the computer laptop initial configuration using disk HARD recovery.
    http://APS2.toshiba-tro.de/KB0/HTD1303440001R01.htm

    I don t think its problem of Toshiba so don t think Hat someone would be able to help you here.
    Maybe its Microsoft system problem I found this on the MS site:

    http://goo.GL/SQF9x

  • Special Edition of star wars: recovery failed

    Hello

    I have a laptop HP Star Wars Special Edition (15-an001na). After two days of its use for some reason windows stop responding and I coundt find a way to solve it so I tried a recovery of the plant. Manager of recovery is not so I can't do anyting with the laptop now. Any ideas how to solve this problem. Any help is appreciated. THX

    PS. So Exuse my English is bad

    Hi @Cornel_h,

    Welcome to the HP Forums!

    I read your post and wanted to help.

    I understand that the Recovery Manager doesn't have on your laptop. And your laptop crashes or hangs sometimes.

    You can start the laptop into Windows now? If the laptop is unable to start, try the last link on this document: HP - computers perform a recovery of the system (Windows 10) HP

    If you can start the computer normally, try the steps in this document: computers HP - computer crashes upward or freezes (Windows, 10, 8)

    If this post helps you to find a solution, please click on the button "Accept as Solution" down below in this message. If you want to say 'Thank you' to my effort to help, click on the "thumbs up" to give me congratulations.

    Kind regards

  • 15 - an051dx: special speaker and backlit keyboard questions about Star War Edition

    Hi guys, I just bought Star War Special Edition laptop with B & O speakers. Is there anyway can I change that in order to get better sound quality on my laptop? In addition, the laptop comes with backlit keyboard, therefore is anyway can I adjust the timing for her? Thank you and have a nice day.

    Hi @StevenChau,

    Please use the following link to create yourself a file number, then call and it can help to expedite the appeal process:

    Step 1. Open the link: www.hp.com/contacthp/
    Step 2. Enter the product number or select Auto detection
    Step 3. Scroll up to "still need help? Fill out the form to select your contact options.
    Step 4. Scroll down and click on: contact HP options - click Get phone number

    File number and phone number are displayed.

    They will be happy to help you immediately.

    You can say thanks for trying to help by clicking on the Thumbs Up below!

    Thank you.

  • I can play age of WAR of calculation on Qosmio X 300-12 H

    Hey people,

    I hope you can help answer some of my questions, I intend to buy this laptop but you should know a few things before hand.
    http://UK.computers.Toshiba-Europe.com/innovation/product/Qosmio-X300-12h/1058132/toshibaShop/true/#0

    Everyone how well it will run from WAR and manage the future releases like Dawn of War 2.

    What is a perfect notebook for games?

    Thank you

    Hello

    Why you n t check the hardware configuration of the game and compare it with the specifications of equipment of the Qosmio X 300-12 H.
    To be honest this game is not known to me, but I think that there should be no problem running this game.

    I mean that the laptop supports the processor T9400 processor Intel® Core 2 Duo, 4 GB of RAM and NVIDIA GeForce 9700 M GTS of graphics card.
    This should be pretty good to get this game working well.

    Welcome them

Maybe you are looking for