area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
132 stars 115 forks source link

Disable gradient bulb center #165

Closed kloknibor closed 8 years ago

kloknibor commented 8 years ago

Hi,

I'm trying to disable the gradient transparancy thing... It's unneeded for LCD and makes my print fails... I use CWS files but can't get this off... Tried to set the transparancy to 0.0 instead of 0.2 under gradient but didn't work.

Robin

kloknibor commented 8 years ago

image1

this is how it looks... See the circles)

kloknibor commented 8 years ago

I guess I need to change something here :

var bulbCenter = new Packages.java.awt.geom.Point2D.Double($buildPlatformXPixels / 2, $buildPlatformYPixels / 2); var bulbFocus = new Packages.java.awt.geom.Point2D.Double($buildPlatformXPixels / 2, $buildPlatformYPixels / 2); var totalSizeOfGradient = $buildPlatformXPixels > $buildPlatformYPixels?$buildPlatformXPixels:$buildPlatformYPixels; var fractions = [0.0, 1.0]; //Let's start with 20% opaque in the center of the projector bulb var colors = [new Packages.java.awt.Color(0.0, 0.0, 0.0, 0.2), new Packages.java.awt.Color(0.0, 0.0, 0.0, 0.0)]; new Packages.java.awt.RadialGradientPaint( bulbCenter, totalSizeOfGradient, bulbFocus, fractions, colors, java.awt.MultipleGradientPaint.CycleMethod.NO_CYCLE)

I already tried to change the 0.2 to 0.0 doesn't work for me so far :(

kloknibor commented 8 years ago

fixed it... Had to press save when printer is disabled... Sorry for bothering!

WesGilster commented 8 years ago

No problem. I believe I've tested this with no formula at all. That's most likely what you want. If that doesn't work it's a bug.