Jump to content

Ego Eram Reputo

Administrator
  • Posts

    14,567
  • Joined

  • Last visited

  • Days Won

    264

Posts posted by Ego Eram Reputo

  1. 6 hours ago, Red ochre said:

    Would a global 'File/export settings' and 'File/import settings' be possible? (to save all the tokens for effects/adjustments used in that session).

     

    FYI - It's relatively easy to save & load a set of tokens. This is what I used in Planetoid to save planets.

     

            private void ButtonSave_Click(object sender, EventArgs e)
            {
                TryPlaySound(@"C:\Windows\Media\Windows Battery Low.wav");
                using System.Windows.Forms.SaveFileDialog svfd = new();
                svfd.FileName = "Untitled"; // set default title 
                                            // get last used path
                svfd.InitialDirectory = GetLastFolder();
                // look for *.pln files
                svfd.Filter = "Planetoid Files (.pln)|*.pln|All Files (*.*)|*.*";
                svfd.FilterIndex = 1;
                svfd.OverwritePrompt = true;
                // Show the filename extension
                svfd.AddExtension = true;
    
                if (svfd.ShowDialog() == DialogResult.OK)
                {
                    using (FileStream stream = File.Open(svfd.FileName, FileMode.Create))
                    {
                        Token.SaveTo(stream);
                    }
                    // show Ok message
                    MessageBox.Show(this, "Dude, you saved an entire planet.", "What a hero!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    // store path in case it changed.
                    SaveLastFolder(svfd.FileName);
                    //
                    // ************** Cool little trick: put the saved filename into the plugin title! :)  *******************
                    //
                    Text = Path.GetFileName(svfd.FileName) + " - " + ActiveForm.Text;
                }
                else
                {
                    // Wasn't saved - informal message to say so.
                    MessageBox.Show(this, "You're probably like...'Whatever Man' but I should tell you that Planet wasn't saved!", "Whoa....Dude!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }

     

    Loading snippet....

     

    using (FileStream stream = File.OpenRead(ofd.FileName))
                            {
                                PlanetoidEffectConfigToken token = PlanetoidEffectConfigToken.LoadFrom(stream);
                                InitDialogFromToken(token);
                                FinishTokenUpdate();
                            }

     

    • Thanks 1
    • Upvote 1
  2. Another method:

    1. Create a 3 layer image
    2. Bottom layer = solid white.
    3. Sharp black drawing on transparent top layer. Make sure it has thick lines.
    4. On transparent middle layer, render lines with ReMake's Line/Grid plugin
    5. Distort lines layer with MadJik's Sin Waves plugin
    6. Select black image from top layer (shift click with magic wand)
    7. Actvate middle (wavy lines) layer
    8. Effects Distort > Morphology: Ht 2, Wd 2, Mode:Erode
    9. Your choice of Blur to even out the transition (I found Alpha Blur and Average Blur both did a nice job). AA's Assistant also gave a reasonable finish.

    wavylineface.jpg << Squint to see it!

    • Like 3
    • Upvote 1
  3. 15 hours ago, Aarilight said:

    the description there for Lanczos is not very helpful at the moment.

     

    I had a couple of goes at writing up these definitions. The first attempt got so tangled I threw it all out. When I restarted, I asked Rick for his help and we collaboratively came up with the current text.

     

    We agreed about this: most users don't need to know much about resampling modes. Those that do will already likely understand the different variants.  Hence the text is intentionally lightweight. It was, we felt, a good compromise.

     

    The documentation is always open to improvement. If you have a suggestion for rewording the Lanczos text I'd like to hear it.

     

    Edit: current thinking.....

    Quote

    A popular filter for "upscaling". Uses the Lanczos reconstruction kernel with three lobes (positive central and -1 alternating negative and positive lobes on each side).

     

    • Upvote 1
  4. December Update

     

    Five new plugins this month, including four from the prolific frio and one from first-time author PackJC :)

     

    Color Vector Rotations frio Interpret one image's pixels as 3-dimensional vectors and another image's as quaternions (via Euler angles - each color component determines amount of rotation around each of the 3D axes), then rotate the first images pixels.

     

    HSLuv Hue / Saturation frio  Provides access to Hue, Saturation & Lightness in HSLuv color space HSLuv (alternative to the classic HSV/HSL). Color saturation and brightness are more perceptully even in the CIELUV color space. HSLuv often preserves color details better. The plugin also implements the HPLuv and LCh(uv) color space modes: HPLuv is a more subtle and desaturated, but very perceptually even variant of HSLuv, and LCh(uv) is an intermediate between the other two and CIELUV.

     

    OpenPAA - (.PAA & .PAC) File Type Support PackJC Load & save support for image types *.paa and *.pac as used by video games ArmA & DayZ.

     

    Seamless Simplex Clouds frio Cloud type effect which adds the feature of seamless tiling.

     

    Seamless Voronoi Texture frio Seamless tiling effect which uses Voronoi tessellation.

    • Like 2
    • Hooray 2
×
×
  • Create New...