We are about to switch to a new forum software. Until then we have removed the registration on this forum.
code is simple I update blendMode(ADD ) in setup and draw sphere() I am going to use shader later but with out shader there is this problem.
void setup()
{
//....... other setup setup stuff
blendMode(ADD);
}
int y=0;
void draw()
{
// hint(ENABLE_DEPTH_TEST);
noStroke();
background(0);
sh.set("mainPower",2.7);
sh.set("eyePos",0.0, 0.0, 100.0);
//shader(sh);
translate(width/2,height/2+y,0);
fill(250,100,0);
sphere(90);
//box(30);
if(y>height/2)
y=-height/2;
else
y++;
}
Answers
@trailbalzer47
I think you are good with your own shape
also .disableStyle() processing.org/reference/PShape_disableStyle_.html
The man page says: additive blending with -> white clip.
Otherwise all devs are hiding here: github.com/processing/processing/issues
I also have to re read this: //processing.org/tutorials/color/
Limiting the Colorrage will do the trick for this scetch.
I think the range gets remapped form OpengGL 0.0-1.0 to Processing RGB 255
So what we are blending background(zero) against fill(orange), it seems we are more dealing with white
ok leave it .. I tried your sketch it still has that anomaly visible. also I think blending and having texture over sphere also makes it worst. I am abondaning blendMode(ADD) for this. I did not understand rest of your post. Thanks anyways. @nabr
@trailbalzer47 can't help you any further. Blend Modes is something on my to do list. I just try things out.
Here is a nice PostFx Lib
github.com/cansik/processing-postfx
Good Luck.