Author Topic: How the sun's direct lighting affects textures  (Read 600 times)

Some of you may already know, but for those who don't, the sun's direct lighting affects certain parts of textures, how is this done you may ask? According to my research, it depends on the brightness of the texture, even if those parts are transparent, it's still gonna affect how the direct lighting affects it

Let's look at an example, Jirue's archer decal


"Oh god why does it look so hideous?"

This is why


Anything that isn't completely black is gonna have some sort of shine to it, and with wacky colored transparency like that, there's bound to be some odd issues with the direct lighting

"But what can i do about this?"

A free program like Paint.NET can easily remedy this, open up your face or decal or print, make sure you have the Layers window open by clicking on 'Window' on the top of the Paint.NET window and click the Layers option

Create a new layer by clicking on the Layers window and move it below the original layer by clicking the , while on this new layer, click the 'More >>' button on your Colors window, set your color to pure black and the 'Transparency - Alpha' to 0, then use the Paint Bucket to fill the whole layer

Then click on the original layer above your transparent black layer and click the to merge the top layer down over your layer, then all the transparent parts should turn transparent black

I've done this with Jirue's archer decal, and now here's what it looks like with visible alpha/transparency


Much better?



Much better!

Masterlegodude, we're done here! *outro music*


Won't the changes be overwritten though when you start the launcher?

Now I know why this looks familiar. I had to do something similar in Blender so the decals wouldn't be messed up. It's called Premultiply. It converts the RGB from key alpha to premultiplied alpha.
« Last Edit: August 12, 2012, 01:16:37 PM by Awdax »

Or better yet, add this instead of plain black so you can get highlights on the edges kind of like bricks:
Quote
(set the whites transparency to 1, and have the black fully transparent)


Won't the changes be overwritten though when you start the launcher?
The idea is to do this with user made stuff and not the default stuff

All i did was rename Jirue's decal and put it in a differently named archive so i could compare the two together without having to mark the file as read-only or restarting Blockland

Or better yet, add this instead of plain black so you can get highlights on the edges kind of like bricks:(set the whites transparency to 1, and have the black fully transparent)


I'm working on fixing the brick side texture to the torso, so far it's looking alright but it's partially shiny and partially dull, so it looks weird, but once it's fit to the torso, i'm gonna fix that
« Last Edit: August 12, 2012, 01:50:07 PM by Masterlegodude »

These fixes should be applied by default.