プレイ日記
Mike Bluerobin2
color transitions, yo!
4そうだね
プレイ済み
返信[1]
親投稿
toxi toxibunny
Nice, but would be better with PHONG.
0そうだね
未プレイ
返信[2]
親投稿
Mike Bluerobin2
Aye, getting advanced, are we? :D The blocks of color are smilebasic limitations, as rgb doesn't support floats (I'm pretty sure).
0そうだね
プレイ済み
返信[3]
親投稿
toxi toxibunny
Yeah... I saw years ago someone using what they called 'phong shading' to smoothly dither along a gradient of only a few colours. It was very impressive. All I can find on google nowadays regarding PHONG is to do with shiny 3D stuff. bah. I guess all I meant was it would be better with dithering :)
1そうだね
未プレイ
返信[4]
親投稿
toxi toxibunny
I think RGB internally in smileBASIC is something like 5 bits per R,G,B , and then 1 extra bit for transparency. I read that somewhere, I think..
1そうだね
未プレイ
返信[5]
親投稿
ĦHarry Ramstrong
phong is overly complicated if what you want is dithering. Floyd-Steinberg is a better deal. SmileBasic has 32 bit RGBA (or ARGB) so that's the full spectrum.
0そうだね
プレイ済み
返信[6]
親投稿
Mike Bluerobin2
This function wont be used to make full screen gradients, that was just a demo output. For my purposes this will suffice.
0そうだね
プレイ済み
返信[7]
親投稿
toxi toxibunny
It looks good, Mike. But where's the banding coming from if it's full 32-bit rgba?
0そうだね
未プレイ
返信[8]
親投稿
ĦHarry Ramstrong
The banding is always present, even with full 24 bit colors. That's just how sensitive our eyes are. I have yet to see a gradient demo without color banding.
0そうだね
プレイ済み