Basement is a drug dealing tycoon game. You take control of an enterprise, that main profile is drugs production. You're hunted by police and mafia, keep your enterprise growing, to achieve great goals.

Image RSS Feed Latest Screens
Screenshot3 Screenshot2 Screenshot
Blog RSS Feed Report abuse Latest News: Basement: Fog of war

0 comments by halfbus on Sep 13th, 2014

We have had a lot of thoughts on different graphics enhancements for Basement last times. And a few days ago, i've made one. It's like fog of war post effect, that hides out what is happening outside of explored areas. Here is how it looks in current build.

image

Technically it's easy effect, but i'd like to describe it in details below.[[MORE]]As you may already noticed, we're using Unity for our game. But it won't matter, cause it can be easily reproduced in any other framework with an access to framebuffer or more user-friendly render textures.This effect is based on a simple principle: we want to render highlights in already observed points and make everything else dimmed. If you'd draw such fx in photoshop, you'll just create a new layer with overlay blending and highlighted drown in white.

image image

To achieve similar effect we'll need to render that texture with highlights. In Unity i've added a new rendering Layer, called FogFX, and attached quad with simple texture to each view, that should be highlighted.

image

Those shadow circles are overlapping each other. In our case, to avoid clouds effect ( Multiply overlapped edges of circles would be more lightened ), so i've fixed blending in shader, that takes maximal value from alpha channel for current fragment. Here are sources:
All circles are rendered to separate camera. In Unity Pro you have an access to Render Textures, so you don't have to mungle with framebuffers, getting what was rendered that camera. This is what has been rendered to that cam:

image

The last step is to draw that texture again with proper blending to a usual camera. As we rendered highlights as shadows, i need to subtract color value from that texture. I've also added a float uniform to control fog density. Here is shader source for inverted fx used to render that fog.

Final view:

image

Post comment Comments
BionickArmy
BionickArmy Sep 8 2014, 5:27am says:

This looks really fantastic. Good work, guys.

+2 votes     reply to comment
halfbus
halfbus Sep 14 2014, 4:05am replied:

Thanks!

+1 vote     reply to comment
Guest
Guest Aug 26 2014, 2:06pm says:

This comment is currently awaiting admin approval, join now to view.

halfbus
halfbus Aug 27 2014, 12:19pm replied:

Thanks for your feedback! We're planning to release new demo in a weeks. Regarding early access, we are discussing it right now)

+2 votes     reply to comment
Ushiri
Ushiri Aug 18 2014, 8:18am says:

Really enjoyable! Loved it much, except that I can nowhere find information how to sell the different shops/labs that you installed when you do not longer need them ( if its possible). Or how to handle the police/fireman.
Also I dont know how to buy a new house like the ones I can see in the screenshots.

+2 votes     reply to comment
halfbus
halfbus Aug 20 2014, 2:44pm replied:

Wow, that's really awesome, that you like the game, demo is pretty outdated and all the features mentioned above, will be available in next update of a demo

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Basement
Platforms
Windows, Mac, Linux
Developer & Publisher
Halfbus
Engine
Unity
Contact
Send Message
Official Page
Halfbus.co
Release Date
TBD
Game Watch
Track this game
Share
Style
Genre
Real Time Strategy
Theme
Realism
Players
Single Player
Project
Indie
Twitter

Latest tweets from @halfbus_studio

This is how we're shooting basement gameplay video T.co

5hours 40mins ago

RT @Jupiter_Hadley: Part 24 of my #LD30 #LD48 #LD72 compilation video series! T.co @Jupitron @barryrowe @AdamHarte @samdw

Sep 14 2014, 4:07pm

RT @adegtyarev: Finally added custom sprites to font. It'd better be done much earlier. Now it's a lot more easier to work with text http:/…

Sep 14 2014, 8:35am

RT @adegtyarev: An article on Fog of War postfx, i've made for our #Basement game. #GameDev #IndieDev #Unity T.co

Sep 13 2014, 3:13pm

RT @cj_ball: @halfbus_studio cool demo guys! coming on nicely T.co #indiedev #gamedev

Sep 13 2014, 7:27am

Meet the Seed. First of our customers! #Basement #IndieDev T.co

Sep 13 2014, 4:45am

Wohooo! Basement in @indiegamemag Screenshot Weekly T.co #indie #gamedev

Sep 10 2014, 11:29am

RT @coeing: @halfbus_studio @dmitry_minsky @adegtyarev Great, will do!

Sep 6 2014, 11:31am

@coeing thanks!;) You can check our devblog at T.co Also feel free ask devs anything @dmitry_minsky and @adegtyarev

Sep 6 2014, 11:21am

Basement - drug-dealing strategy game Key Image for #screenshotsaturday T.co

Sep 6 2014, 10:49am

Embed Buttons

Promote Basement on your homepage or blog by selecting a button and using the HTML code provided (more).

Basement
Basement
Statistics
Rank
1,141 of 24,187
Last Update
1 week ago
Watchers
43 members
News
5