Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fog of war #18

Open
v4dkou opened this issue Sep 14, 2022 · 2 comments
Open

Fog of war #18

v4dkou opened this issue Sep 14, 2022 · 2 comments

Comments

@v4dkou
Copy link

v4dkou commented Sep 14, 2022

To replicate W3 gameplay, there should be a Fog of War mechanic

  1. Unit line of sight (probably some low-res ray-tracing on the tile grid)
  2. Visual effect
@Retera
Copy link
Owner

Retera commented Sep 15, 2022

Sidenote for whoever does this, there was a bug in Reforged when they rewrote the shaders for emulating the old classic graphics where unit portrait faces in 3D that emitted particles would use the X/Y of the particle in the portrait's coordinate space compared against the game world's fog of war coordinate space and then dim the portrait's particle based on the (0, 0) point essentially in the game world and whether that point had been explored. It was really funny once someone explained it to me -- you could see it with the Wisp portrait especially, which would be dark until you explored a particular region of the map.

It's actually really likely that whoever implements this stuff would make the same mistake in Warsmash given that the portrait coordinate space and the world view are two 3D scenes with a lot of code sharing. So, yeah, don't do that :)

@Retera
Copy link
Owner

Retera commented Feb 18, 2023

https://www.youtube.com/watch?v=FEYrvLCeyrQ

Some progress has been made on this, but although the terrain shader is mostly working it does not hide units outside the explored area yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants