GithubHelp home page GithubHelp logo

fogofwar's People

Contributors

phoenixzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fogofwar's Issues

What is / how to get Mask Data?

On this step:
Secondly, If the map with static mask map, you should call "fow.InitMap()" function to set right mask width, height and mask data as byte array. The size of the mask diagram is the same as the size of the Projector's cookie texture. If the map without static mask map, you should generate mask data run-time.

is Mask Data was the alphaMap of Terrain Data?:
Like: terrainData.GetAlphamapTexture(0).GetRawTextureData() ?

i've tried fow.InitMap(128,128, terrainData.GetAlphamapTexture(0).GetRawTextureData());
and i got error:

IndexOutOfRangeException: Index was outside the bounds of the array.
Game.Tools.FOV.map.blockLOS (System.Int32 x, System.Int32 y) (at Assets/FOW/script/map.cs:94)
Fow.opaque (Game.Tools.FOV.map _map, System.Int32 x, System.Int32 y) (at Assets/FOW/script/Fow.cs:245)
Game.Tools.FOV.fov.fov_octant (Game.Tools.FOV.fov+fov_private_data_type data, System.Int32 dx, System.Single start_slope, System.Single end_slope, System.Int32 signx, System.Int32 signy, System.Char rx, System.Char ry, System.Boolean apply_edge, System.Boolean apply_diag) (at Assets/FOW/script/fov.cs:716)
Game.Tools.FOV.fov._fov_circle (Game.Tools.FOV.fov+fov_private_data_type data) (at Assets/FOW/script/fov.cs:772)
Game.Tools.FOV.fov.fov_circle (Game.Tools.FOV.fov+fov_settings_type settings, Game.Tools.FOV.map _map, UnityEngine.Color source, System.Int32 source_x, System.Int32 source_y, System.UInt32 radius) (at Assets/FOW/script/fov.cs:303)
Fow.FixedUpdate () (at Assets/FOW/script/Fow.cs:176)

sorry i'm still noob :' D
thank you for helping!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.