Reptillian Posted October 1, 2017 Share Posted October 1, 2017 What this effect is mapping a spherical deformation onto a image, the percentage represent the height at the center of the sphere. In Photoshop, the effect can be in reverse direction. I have yet to found a free solution to this. Not found in GIMP, Krita, or G'MIC either. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
BoltBait Posted October 1, 2017 Share Posted October 1, 2017 https://forums.getpaint.net/topic/18968-shape3d-2007-08-24-updated-august-2017/ Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted October 1, 2017 Share Posted October 1, 2017 ^ Shape 3D certainly has the most advanced features. If you're looking for a lightweight alternative, try... Drumskin. Has no lighting/shadowing options - it just reformats the image: or even Planetoid. This has minimal lighting/shadowing options. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Reptillian Posted October 1, 2017 Author Share Posted October 1, 2017 27 minutes ago, BoltBait said: https://forums.getpaint.net/topic/18968-shape3d-2007-08-24-updated-august-2017/ I'm more interested in spherical len effect, not something that is usually done in 3d program. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted October 1, 2017 Share Posted October 1, 2017 Look in the Plugin Index (link in my signature) for plugins called Lens and Magnify Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Reptillian Posted October 1, 2017 Author Share Posted October 1, 2017 These I've tried, still not quite the same. My option seem to be using a 3D program as a work around to get the same effect. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
BoltBait Posted October 1, 2017 Share Posted October 1, 2017 35 minutes ago, BoltBait said: https://forums.getpaint.net/topic/18968-shape3d-2007-08-24-updated-august-2017/ Shape 3D is a plugin, not an external 3D program. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
MadJik Posted October 1, 2017 Share Posted October 1, 2017 Hi @Reptillian Your best choice for now is (imho): https://forums.getpaint.net/topic/7216-camera-lens-distortion-correction/?tab=comments#comment-105094 And if you have cold blood and coder fiber the source is available. -joking- Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Eli Posted October 1, 2017 Share Posted October 1, 2017 @MadJik Last night I was looking at that effect. But I did not download it because I saw RedOchre's error comment at the bottom. Did your updated.dll correct that error? Quote Link to comment Share on other sites More sharing options...
Reptillian Posted October 1, 2017 Author Share Posted October 1, 2017 I have attempted to replicate the effect on a 3D program, I think I am finding one thing. It appears the spherize works by not scaling the sphere, but rather lowering the elevation of a sphere, and lowering the y location of the sphere, and then scaling until it fits well, and finally apply reflection. That's probably how the the spherize effect in Photoshop works. For the reverse direction, it works in the reverse of this. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
MJW Posted October 1, 2017 Share Posted October 1, 2017 For the forward version, try TR's Fish Eye Plugin. For the reverse, TR's Reverse Fisheye. There's also my Texture Shader applied to a sphere with one of the Surface Offset mapping modes. For no lighting, use only Ambient lighting. (I'm not sure why Shap3d with lighting turned off doesn't do what you want.) Quote Link to comment Share on other sites More sharing options...
Reptillian Posted October 1, 2017 Author Share Posted October 1, 2017 The TR's Fish Eye was definitely the one I was looking for. Now, the reverse isn't what I'm looking for. But, I think TR"s Fish Eye can be manipulated to get the reverse direction as the source code is released there. In Photoshop, you have the option to do the reverse direction of spherize, not fixing it. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
MJW Posted October 1, 2017 Share Posted October 1, 2017 Here's some code I wrote a while ago (for some reason I can't recall) that may or may not help: Spoiler // Name: DeFisheye // Submenu: Distort // Author: MJW // Title: DeFisheye // Version: 1.0.* // Desc: Reverse fisheye distortion // Keywords: reverse fisheye distortion // URL: // Help: #region UICode PanSliderControl Amount1 = Pair.Create(0.000,0.000); // Center DoubleSliderControl Amount2 = 100; // [1,1000] Radius DoubleSliderControl Amount3 = 1; // [0,10] Distortion DoubleSliderControl Amount4 = 0; // [-1,1] Tweak #endregion Surface Src; double cX, cY; double r, r2; double k, k2; double tweak; void Render(Surface dst, Surface src, Rectangle rect) { Src = src; // Delete any of these lines you don't need Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int CenterX = ((selection.Right - selection.Left) / 2)+selection.Left; int CenterY = ((selection.Bottom - selection.Top) / 2)+selection.Top; ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth; double xScale = 0.5f * src.Width, yScale = 0.5f * src.Height; cX = xScale * ((float)Amount1.First + 1.0f); cY = yScale * ((float)Amount1.Second + 1.0f); r = Amount2; r2 = Sq(r); k = Amount3 / r; k2 = Sq(k); tweak = Amount4; for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { dst[x, y] = Transform(x, y); } } } // Not coded with an eye (or fisheye) toward efficiency. ColorBgra Transform(int x, int y) { double scale = 1.0; double fX = x, fY = y; double dX = fX - cX, dY = fY - cY; double inD2 = Sq(dX) + Sq(dY); if (inD2 != 0.0) { if (inD2 > r2) return ColorBgra.Transparent; double inD = Math.Sqrt(inD2); double kD = 1.0 + k2 * inD2; double kR = 1.0 - k2 * r2; double outD = inD * (1.0 + Math.Sqrt(1.0 - kD * kR)) / kD; // Scale to 0-1 for the tweak adjustment; outD /= r; outD *= tweak * (1.0 - outD) + 1.0; outD *= r; scale = outD / inD; } fX = scale * dX + cX; fY = scale * dY + cY; return Src.GetBilinearSample((float)fX, (float)fY); } double Sq(double x) { return x * x; } Quote Link to comment Share on other sites More sharing options...
Reptillian Posted October 1, 2017 Author Share Posted October 1, 2017 It works very well, I think this problem has been resolved. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
MJW Posted October 1, 2017 Share Posted October 1, 2017 Maybe I'll make an official release of that plugin. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.