[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
...Should alpha channel ever be non 1? Say I hand paint a texture
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /3/ - 3DCG

Thread replies: 8
Thread images: 4
File: IMG_0463.png (13 KB, 499x600) Image search: [Google]
IMG_0463.png
13 KB, 499x600
...Should alpha channel ever be non 1? Say I hand paint a texture of a blade of grass that fades out from white to black. I have to make an alpha channel, but does it fade out as well or is it always white?

If its always white, why is it this why? Why can't the alpha fade?

I'm really struggling here, pls help :)
>>
File: transparency.png (821 KB, 1423x900) Image search: [Google]
transparency.png
821 KB, 1423x900
>>504837
Just export to png, it has alpha values for every pixel.
>>
>>504837
>Why can't the alpha fade?

But it can, you idiot
Did you even try to apply the alpha channel or even SLIGHTLY experiment, or did you decide that it's better to post a question on a really slow board and wait 3 hours for the first reply
White = 1
Black = 0
50% Grey = 0.5
And everything in between
>>
>>504864
but is it supposed to fade out in this situation? I have tried and my results were "unpredictable"
>>
>>504883
How about posting the map to clarify what you mean
It's very simple, if you used your OP image as the alpha, the whites are opaque, the black are transparent, so you'd get anything but the outline drawing for it
There will be no fading since there's on black (0) and white (1)
>>
File: capture2.png (235 KB, 1042x590) Image search: [Google]
capture2.png
235 KB, 1042x590
>>504884
Let's say I have a texture of a floating orb going from (.5f, .5f, .5f, 1.f) to (0.f, 0.f, 0.f, 1.f) and it looks like this. It was made with photoshops radial gradient tool with the settings in pic related.

I meed to cut out the black BG so the gradient in the middle appears to "float"

Since my engine prefers TGAs over PNGs I need to make an alpha channel manually. Is my alpha 100% white or does it fade out as well?
>>
>>504889
you make only your alpha have the gradient and make your color solid white or whatever. You don't put any impression of transparency into your color and try to fight it.
>>
File: 1438515316473.jpg (93 KB, 806x813) Image search: [Google]
1438515316473.jpg
93 KB, 806x813
>>504912
This is wrong. OP has a trick question. What he wants is a falloff LIGHTING effect like NdotL but instead he did it in 2D in photoshop with a texture. This will never translate into 3d, not easily at least. OP is confusing partial transparency aka translucency with a NdotL effect on a vec4(1.f) sphere in 3d for his floating sphere (again in 2d).
Thread replies: 8
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.