Welcome to Black Liquid Software

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

ShockPuppet

Ambient Occlusion (AO)

52 posts in this topic

Maybe one of you could open the AO of the apiary example and check for any clues? i'd do it myself right now but im not at home... :(

Share this post


Link to post
Share on other sites

I don't have photoshop, I'm a poor scamp who is using Gimp, which I hate :( . I just can't figure out the UI of Gimp, or how to do things like that. One day!

Share this post


Link to post
Share on other sites

I did it myself: installed steam, downloaded Banished, installed the modkit aaaaand:

the apiary AO looks pretty normal. It does have an alpha channel. nothing spectacular. except it's only 256x256 an thus pretty low quality...

Share this post


Link to post
Share on other sites

I think there is no error in our AO files except of that they are too dark@jesta. AO affects snow in Banished because Luke added the AO value to his snow rendering functions to have an elegant solution to remove snow from parts of his buildings. It's intended and creates nice effects at some roofs or under overhangs. It's also logical in a way to have less snow on parts which are surrounded by walls and so on.

So if we have too less snow on our models then because of too much AO. We can brighten it until the roofs are close to full white and it will have full snow. Or if we have a model which should have full snow without any effect by AO then we can use another material where we remove the multiplication by the AO value from this function in line 229... But I think we should not use it as workaround for too dark AO's... That's right. I use this material in the nordic mod where I want more snow here and there but I also rework the AO files from Blender. :)

2 people like this

Share this post


Link to post
Share on other sites

Posted (edited)

yeah i threw up a test mod and played around with the AO last night but even a purely white AO area for the roof wouldnt give me thick snow, still just a faded texture... so i guess thats working as intended. but some of the vanilla buildings have really thick snow in areas. for example the barn has on the top of the roof, where the two halves meet.

also necora said his road texture disappeared under snow when using a fully white AO file and he got an error. do roads maybe use a different material?

i had another look at the barn ingame: the roof has the same texture and lighting all over, but the ridge where the two halves of the roof meet has opaque snow in winter and we need to figure out why. :)

Edited by jesta

Share this post


Link to post
Share on other sites

Snow relies on the angle of the surface. I scaled a house down so its roof is nearly horizontal and voila, its nearly white.

Unbenannt.png.72f5b39c6ab8017b0ed4a6cd40dba1f0.png

so horizontal areas get full snow, vertical areas get no snow and skewed areas get angle based amounts of snow.

Now if only @ShockPuppetwould show up and elaborate on this:

On 15.1.2017 at 8:04 PM, ShockPuppet said:

I'm using AO for a variety of visual tricks, other than light/dark it's snow manipulation.

Share this post


Link to post
Share on other sites

For a second there i thought i had it. But it stays white in summer aswell. :(

Original post below:

 

Unbenannt.png.44a342540871d353e36b97478c4231f8.png

And @TomSawyeralready knew how to do it: http://worldofbanished.com/index.php?topic=1259.msg24251#msg24251

 

Steps to do this:

  • copy "ModelAlphaTexture.rsc" into your "Textures" directory
  • change line 1 of "Models/MaterialInstance/*Texture.rsc" (in my case "TestTexture.rsc") from "ImageBuffer resource : "Texture/ModelTexture.rsc"" to "ImageBuffer resource : "Texture/ModelAlphaTexture.rsc""
  • open the texture map in GIMP/Photoshop
  • make new transparent layer
  • move below texture layer
  • go to texture layer
  • select all areas that should have thick snow on them
  • use eraser at 99% opacity on selected areas
  • WITH SELECTION STILL ACTIVE change to transparent layer
  • fill selection with black
  • result:

    Texture Layer:
    Unbenannt2.png.35a23e97d33183874f9d265ecb5cf58d.png

    Transparent Layer
    Unbenannt3.png.d203ffab6e5f2f77c71786ba3d308d11.png

Share this post


Link to post
Share on other sites

Luke is talking about paintng an alpha channel to occlude snow: http://www.shiningrocksoftware.com/2012-08-27-creating-artwork/ seems like its possible to remove snow, but not add more... :(

steeper roofs on the vanilla models (tower of town hall and church) have no snow in winter aswell, so i give in: there doesnt seem to be a built in way to add more snow, just go ahead with your hacks. :)

thought i could add snowbanks to the corners of my houses... :(

Share this post


Link to post
Share on other sites

i saw someone once ..... she was able and getting snow on walls and none on the roof ^^

 

it was pretty EPIC lol

Share this post


Link to post
Share on other sites
5 hours ago, Ketchup said:

i saw someone once ..... she was able and getting snow on walls and none on the roof ^^

 

it was pretty EPIC lol

Slink, because the next model was too close when baking AO. I read everything when looking for a clue..

Share this post


Link to post
Share on other sites

Wait, what are you guys trying to do?

Snow and no snow.... 

Confused o.O:)

Share this post


Link to post
Share on other sites

Oh @ShockPuppet we have been trying to, and doing, a lot since you've been away sir. You have a lot to catch up on indeed ;) some really awesome advancements have been made.

2 people like this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now