Photonic3D
Photonic3D copied to clipboard
Show gradient mask creator crosshairs
Now that you can create your own functions. We need to be able to graph those function with the touch of a button so users can see how their functions break down over variable ranges. This should operate at the touch of a button.
Fiixed in cwh-0.183.
These work pretty well, I haven't found any issues with the graphing, although it took me a little while to figure out that the layers chosen for the two lines are at the boundary before and after the initial layers.
I am in the process of writing a wiki page describing how to configure CWH for a new printer that describes the use of functions and the function simulation:
https://github.com/area515/Creation-Workshop-Host/wiki/Slicing-With-Creation-Workshop-Host
Whoa. Holy cow your getting serious now man...
You mentioned that the two lines were specified at the boundary, but the GUI can be expanded in a ton of ways by specifying different variables. In fact, it's nothing more than adding some text boxes and filling in the proper Angular expression.
You simply just need to call the js function "testScript". It takes three parameters:
- The name of chart window that pops up after the test is complete.
- The formula for the return values that get fed into the chart. The formula takes the form: returnType or returnType[$chartDomainVariableName(startingValue, stoppingValue, stepIncrement),$chartRangeVariableName(startingValue,stoppingValue,stepIncrement)]
- The actual script that you were just editing and would like to test.
In CWH, I've hardcoded the the Angular expression for the Z Lift Distance Calculator to look like: printersController.testScript('Z Lift Distance Calculator' , 'java.lang.Double[$CURSLICE({{printersController.currentPrinter.configuration.slicingProfile.InkConfig[printersController.currentPrinter.configuration.slicingProfile.selectedInkConfigIndex].NumberofBottomLayers}},{{printersController.currentPrinter.configuration.slicingProfile.InkConfig[printersController.currentPrinter.configuration.slicingProfile.selectedInkConfigIndex].NumberofBottomLayers+2}},1)$buildAreaMM(0.0,2000.0,75)]', printersController.currentPrinter.configuration.slicingProfile.ZLiftDistanceCalculator)
This works fine, only the gradient bulb thing shows a bunch of code and that it works... Maybe an image of the mask might be nicer?
Is there a way to use the bulb mask as image file? If so where will I put that file and how to define in CWH to use that image for bulb mask?
No there really isn't. Let me make you a deal. Take a look at the process that jmkao has put together here:#109 and 1 of 3 things will happen.
- You will hate it.
- You will think it's ok, but realize that it needs a graphical interface tied into CWH itself to eliminate the equation editing.
- You will love it, because you will realize that your projector already supports bulb hours querying and you could apply that coefficient directly to your equation and not have to worry about generating another png mask when you replace the bulb or find that your current mask isn't measuring up due to this: https://www.christiedigital.com/TechPapers/Christie-Lamp-Life-Explained.pdf
If 1 happens I'll add the png mask this weekend. If 2 happens I'll add prioritize integrating the bulb mask creator into the GUI.
Thanks Wes, how do you know that you design the perfect mask with projector mask creator? I am able to read the uv exposure in any place on the vat with my cheap uv sensor. Can we make this feature better by getting values with this sensor?
Yeah. With that it would be pretty easy. Essentially you need to take two measurements. Highest and lowest. Lowest measurement will be in some corner: L Highest measurement will be in the center of the bulb: H Lowest measurement will be based upon the your bulb hours coefficient: C Highest measurement will be: (L/H) * C
Sorry wrong again... Highest measurement will be: (H/L) * C
Great! The only thing I am not sure is how do you determine the exact position of the bulbCenter and bulbFocus. In projector mask creator we just click with our mouse.
Sorry one more; Where do we define the bulb hour coefficient Does CWH query the projector and got it automatically?
I only know the answer to your second question : Yes CWH gets the bulb hours automatically from the projector ;)!
You know the exact position of the bulbCenter because that will be the location that you find highest possible UV measurement. I'll make a quick image mask creator inside of Photonic3D where you'll be able to move an 'X' in the locations where you are taking measurements with your UV sensor.