Jump to content

Sebastian17

Newbies
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Sebastian17

  1. I implemented my Code in analogy to the project FurBlur from Red ochre (John Robbins) helped by Null54. I had to fix references and outdated code but it worked 🙂. Unfortunately I couldn't use the other examples and templates I found because the didn't work together with VS 2015 (I can't change...😢) My code works well so far, I couldn't find a problem yet. But I am sure that the prcedures are not optimal for my problem (they were optimized for FurBlur). For example the render() procedure is called twice after pressing OK. Could you give me a hint how to change the details concerning the token handling and the workflow? The C# part for using the dialog looks like: And the corresponding render procedures are: I have also created a token class and so on as in FlurBlur. Here some questions: 1) Is the code still using parallel rendering? The pure Codelab version is ways faster... 2) Can I optimize the sequence? I like a instant preview (with helping center line) while using the UI and a fast rendering if the dialog is finished by pressing OK. 3) Is there a simpler approach for the tokens? 4) Is the cancelation of rendering: better placed in the beginning of the render procedure or due to parallel processing in the loop? 5) Is "using" necessary in the context: or is it overdone? I would really appreciate a little help. Greetings, Sebastian
  2. Hi, I understand that OnDispose() is a system routine and OnRender is part of PDN, ok. I will avoid OnDispose(). Now I would create own control dialogs. How do I call OnRender() and Render() from my own control event procedure? To be more precise, how do I obtain (get) the variables (Rectangle[] rois, int startIndex, int length) and (Surface dst, Surface src, Rectangle rect) witin my control procedures? (As I have to pass them in order to invoke rendering.) Greetings, Sebastian
  3. If I transfer the code to Visual c#, is there a specific event procedure that is called after pressing "OK"? Within that procedure can I set a global variable like "IsReturnPressed = true;" and is the render procedure called a final time afterwards? Or could I trigger it once more (and check the global variable within to determine what to do)? As I have no idea of the event chain I need some help with it. Greetings, Sebastian
  4. Hello, inspired by two other plugins (Equirectangular Viewer Plugin / Paneling Effect Plugin) I like to use Codelab for horizontal picture shifting (adjusting the forward view of a 360°-panorama). So far I have done the GUI and the Shift operation: How do I create a vertical line (aiming help) in the middle of the picture that is only shown during the use of the GUI and disappears on pressing "OK" or "CANCEL"? If I understand it correctly, there is a way to check wheter "CANCEL" is pressed: Is there a similar way to check if "OK" is pressed? Greetings, Sebastian
×
×
  • Create New...