fez effect

BlitzMax Forums/BlitzMax Programming/fez effect

cgrossi(Posted 2015) [#1]
hello. does anyone know how to make that FEZ effect??




cgrossi(Posted 2015) [#2]
https://drive.google.com/open?id=0B8T1s0TV53yeeUNZUjVDMS1oUE0&authuser=0


Matty(Posted 2015) [#3]
I still don't get it....

Is it the white and blue stripey background?

Is it the brighter centre (as if a radial gradient has been additive blended with the background)?

What is a "FEZ" effect?

The only "Fez" effect I know is

[a https://www.google.com.au/search?q=winged+fezzed+monkeys&espv=2&biw=1440&bih=799&tbm=isch&tbo=u&source=univ&sa=X&ei=OftGVZ_2J8LRmwXojYDAAw&ved=0CBwQsAQ&dpr=1]Fez Effect[/a]

edit - hmm..link doesn't embed into page...


Brucey(Posted 2015) [#4]
Presumably he's talking about the circle gradient lighting effect emanating from behind the Fez character?


cgrossi(Posted 2015) [#5]
Hey, Brucey.

Yes, I'm talking about that, indeed. Do you know how to do it?

Thanks
Cristiano


Matty(Posted 2015) [#6]
I would imagine the third sentence in my original comment gave a hint....

Is it the brighter centre (as if a radial gradient has been additive blended with the background)?


cgrossi(Posted 2015) [#7]
yes, it's. do you know the game FEZ? watch a gameplay video at youtube, so you can understand what i'm talk about....


xlsior(Posted 2015) [#8]
yes, it's. do you know the game FEZ? watch a gameplay video at youtube, so you can understand what i'm talk about....


Matty knows what you're talking about, and already gave you the answer: create a radial gradient (image), and do an additive blend of it after drawing the background, before drawing the foreground elements -- that will give you the effect.


cgrossi(Posted 2015) [#9]
ah, ok. I didn't realize that.. I though in doing an image, anyway.. :)

but what is an additive blend? how can i do it? i'm not using opengl...

and one more thing.. my background will be a black screen.

thanks.


Matty(Posted 2015) [#10]
Sorry I should have been a bit clearer... I was probably being a bit cheeky...


Matty(Posted 2015) [#11]
Additive blend = take two pixels rgb values and sum the r g b components of each (potentially clamping the values to prevent going outside allowed color range)

Radial gradient = a change in rgb proportional to the distance from a central point. Typically if it was a gradient from white to black it would look a bit like a diffusively lit sphere in greyscale.


cgrossi(Posted 2015) [#12]
no problem, matty. :-)

can you help me with some snippet? i'll be appreciate.


Pineapple(Posted 2015) [#13]
Check the documentation for SetBlend, that should get you where you need to go.