MadJik Posted January 4, 2018 Share Posted January 4, 2018 Searching help for debug this / or improve the code. This effect is drawing 14 forms (circle/hexagone/rays). It should look like a lens flare effect. It needs a layer filled with black color. You could set the origin of the light by plotting a single white pixel on the canvas. The center of the canvas is the second point used to draw a virtual straight line. Each centers of the 14 forms are placed over this line. Settings allow to choose each type of form, distance, radius etc. 14 forms x 7 parameters, this is a number of 98 datas to define/handle. Plus some other (7) common parameters. The problems are: -(ok)changes on the 98 settings run the rendering. -(ko)changes on the 7 common parameters have not effect. -(ko)first cycle of the effect doesn't work (linked?). -(ko)tried to have sliders for the 7 common parameters (failed so I delete these sliders). Instead of checking each change of parameters, I use a single counter++ to check for any change. To make it works, I use the button reset of a common parameter or make a change on one of the 98 settings. Other points to solve: -dark theme for Windows form effects? -XML save and load works fine. Any idea to set a saved file as default setting to load when the effect is openning? -Tab (tabulation sequence) is set to go column by column. Any idea to have a checkbox to change it to go row by row? DLL: http://jcljay.free.fr/pdn/LensFlare.zip Visual Studio Sources http://jcljay.free.fr/pdn/LensFlareSRC.zip Thanks. Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.