Click here to Skip to main content
15,887,240 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralYouTube experiment fail Pin
Choroid9-Aug-23 7:09
Choroid9-Aug-23 7:09 
GeneralRe: YouTube experiment fail Pin
OriginalGriff9-Aug-23 9:47
mveOriginalGriff9-Aug-23 9:47 
GeneralRe: YouTube experiment fail Pin
Choroid9-Aug-23 11:37
Choroid9-Aug-23 11:37 
GeneralRe: YouTube experiment fail Pin
Shao Voon Wong9-Aug-23 20:51
mvaShao Voon Wong9-Aug-23 20:51 
GeneralRe: YouTube experiment fail Pin
Choroid10-Aug-23 5:26
Choroid10-Aug-23 5:26 
GeneralRe: YouTube experiment fail Pin
jschell11-Aug-23 10:57
jschell11-Aug-23 10:57 
GeneralRe: YouTube experiment fail Pin
Choroid12-Aug-23 6:28
Choroid12-Aug-23 6:28 
GeneralThe Fog of War Pin
Gerry Schmitz9-Aug-23 5:58
mveGerry Schmitz9-Aug-23 5:58 
Many games have a "fog of war" and thought mine should too. It seems so obvious: blacken the screen (somehow). While I came up with a plan I decided to let (Bing) AI have a go:

Quote:
Here are some ways to implement fog of war in a game:

Create a layer for the fog of war and cache a version of the world map (or sections) image(s) with a black+alpha rectangle applied to it. You can also apply a blur filter in this stage.

Use a tablet or laptop for each player, which tracks which parts of a common map the player uncovers.

Use a set of color-coded flip tokens with abstract symbols. Every area of the game board gets one token per player.

(That's what I thought.)

Instead, in the frame update cycle, when I look at each control, I vary their opacity based on the vicinity of foes and limits of sight (distance and contour) and which team is currently active (selected POV).

About 20 minutes to implement using my existing targeting routine, and looks amazingly well as troops "come into view".

You suddenly realize you have a functional framework.


"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

GeneralRe: The Fog of War Pin
raddevus9-Aug-23 9:31
mvaraddevus9-Aug-23 9:31 
GeneralRe: The Fog of War Pin
Gerry Schmitz10-Aug-23 4:42
mveGerry Schmitz10-Aug-23 4:42 
GeneralWindows 11 Corrupt System Files Pin
Cp-Coder9-Aug-23 3:27
Cp-Coder9-Aug-23 3:27 
GeneralRe: Windows 11 Corrupt System Files Pin
dandy729-Aug-23 6:08
dandy729-Aug-23 6:08 
GeneralRe: Windows 11 Corrupt System Files Pin
Cp-Coder9-Aug-23 6:16
Cp-Coder9-Aug-23 6:16 
GeneralRe: Windows 11 Corrupt System Files Pin
dandy729-Aug-23 8:02
dandy729-Aug-23 8:02 
GeneralRe: Windows 11 Corrupt System Files Pin
Michael B. Hansen9-Aug-23 22:57
Michael B. Hansen9-Aug-23 22:57 
GeneralRe: Windows 11 Corrupt System Files Pin
jochance10-Aug-23 4:19
jochance10-Aug-23 4:19 
GeneralRe: Windows 11 Corrupt System Files Pin
charlieg11-Aug-23 5:26
charlieg11-Aug-23 5:26 
GeneralBrittlestars don't have eyes: the are eyes Pin
BillWoodruff8-Aug-23 22:44
professionalBillWoodruff8-Aug-23 22:44 
GeneralCCC 8-8-2023 Pin
pkfox8-Aug-23 21:30
professionalpkfox8-Aug-23 21:30 
GeneralRe: CCC 8-8-2023 Pin
OriginalGriff8-Aug-23 21:38
mveOriginalGriff8-Aug-23 21:38 
GeneralRe: CCC 8-8-2023 Pin
Peter_in_27809-Aug-23 0:54
professionalPeter_in_27809-Aug-23 0:54 
GeneralRe: CCC 8-8-2023 Pin
OriginalGriff9-Aug-23 1:32
mveOriginalGriff9-Aug-23 1:32 
GeneralRe: CCC 8-8-2023 Pin
Peter_in_27809-Aug-23 1:34
professionalPeter_in_27809-Aug-23 1:34 
GeneralRe: CCC 8-8-2023 - winner Pin
pkfox9-Aug-23 3:12
professionalpkfox9-Aug-23 3:12 
GeneralRe: CCC 8-8-2023 Pin
Pete O'Hanlon9-Aug-23 0:57
mvePete O'Hanlon9-Aug-23 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.