GIMP Chat
http://gimpchat.com/

My First Infinite Zoom In Gimp
http://gimpchat.com/viewtopic.php?f=25&t=18507
Page 1 of 2

Author:  Tas_mania [ Mon Jun 29, 2020 5:46 am ]
Post subject:  My First Infinite Zoom In Gimp

Image


I wanted to see if I could make an 'infinite zoom' in Gimp.
I figured out a method but haven't perfected it yet so sorry.

First I used Filters>Map>Recursive Transform - it's fun to learn to use.
Then I used G'MIC >Deformations>Zoom to zoom into the recursive transform by a set amount. What happens is the pixels get progressively bigger.
My solution is to paste and scale the original layer into each version of the on stage screen. There are less than 20 Gimp frames and this always makes a clear image. The paste and scale is not very scientific and there is human error because the frame can get vague.

Author:  Nidhogg [ Mon Jun 29, 2020 7:14 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

The rocking must be intentional because it looks like heavy metal concert :rocknod :gimp

Author:  racer-x [ Mon Jun 29, 2020 10:50 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Looks great Tas. I did something similar a few years ago. Mine had a picture frame. Yours would probably look better with a frame as well.

*edit, I was able to find a link to that zoom animation. I did mine in Aviutl though.

Image

Author:  Tas_mania [ Tue Jun 30, 2020 5:17 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Image


Hi Nidhogg and racer. You guys can understand these are not too easy to make.

I improved the technique. Still using Recursive Transform and G'MIC Zoom. Now I duplicated the bottom layer and added 0.05 zoom to each subsequent layer. There are 26 layers in this but I doubled them to get a better speed.

Author:  racer-x [ Tue Jun 30, 2020 6:40 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

That one looks better. I just found out you can do it all in G'mic using Droste and Zoom. Here is a quick 4-frame animation. I used reversed zoom, then reversed layer order. This reduces blur.

Attachment:
droste.gif
droste.gif [ 610.12 KiB | Viewed 8961 times ]

Author:  racer-x [ Tue Jun 30, 2020 9:44 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Here's another interesting one using the same procedures. It would look better with more frames, but you get the picture...

Attachment:
droste2.gif
droste2.gif [ 213.31 KiB | Viewed 8944 times ]

Author:  Steve [ Wed Jul 01, 2020 2:52 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

A neat effect Tas_mania

Perhaps the rocking motion adds to the effect. To me it gives a sense of hurtling through the scene, while a smoother scene would give a sense of the viewer being static as the scene passed around them

I was intrigued how these were made and had a try at scripting the effect, got a script up and running but still needs a couple of niggles ironing out

steve
Attachment:
downtown 16layers.gif
downtown 16layers.gif [ 2.16 MiB | Viewed 8901 times ]


Attachment:
1024sq 2pixels wide.png
1024sq 2pixels wide.png [ 4.54 KiB | Viewed 8748 times ]

Author:  Nidhogg [ Wed Jul 01, 2020 4:05 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Cool animations guys, infinite zoom suits well for space travel.
Excited about your script Steve, tried manually but it didn't work.

Author:  Tas_mania [ Wed Jul 01, 2020 5:02 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Quote:
so cool

Thanks Isabella.

Pretty sure racer-x is using Droste Frames rather than Continuous Droste. (Not sure what 'reverse zoom is' :)
It gives a very smooth zoom.

Hi Steve, I agree with Nidhogg, a script would be very nice.......but not easy.
The zoom center must be in the center of the canvas.
My zooms and Steve's produce a slight 'pulsing' effect. I don't think it's an optical illusion. I suspect it's mathematical. More frames = more loss of resolution. Needs investigating. :)

Author:  racer-x [ Wed Jul 01, 2020 5:36 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Tas_mania wrote:
Pretty sure racer-x is using Droste Frames rather than Continuous Droste. (Not sure what 'reverse zoom is' :)
It gives a very smooth zoom.

Yes, I used G'mic > Frames > Droste. Reverse Zoom is done entering negative numbers so you are zooming out. There is no blurring of quality this way because the image is downscaled vs upscaled.

Author:  Steve [ Wed Jul 01, 2020 7:17 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

That pulsing effect is the last niggle I can't remove, I think its something to do with a 2D screen trying to get a 3D effect, its more noticeable on some images than others

It seems I can't upload .py files to gimpchat and I've lost the ability to put files into a zipped folder so I've made a post on gimplearn, sorry about this

script on gimplean at
https://gimplearn.net/viewtopic.php?f=3&t=2738

Author:  Nidhogg [ Wed Jul 01, 2020 9:38 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Thank you for the plug-in Steve :bigthup
No errors for me on 2.10.20 MX Linux.
The pulse is still visible, but I tried to fix it by changing the duration of first few frames.

Attachment:
InfiniteCorridor.gif
InfiniteCorridor.gif [ 1.92 MiB | Viewed 5543 times ]

Author:  racer-x [ Wed Jul 01, 2020 10:10 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Thank's Steve, this makes it super easy. Tested with 16 frames set @ 60 ms. I'm running the same as Nidhogg.

Attachment:
zoom-test-16f.gif
zoom-test-16f.gif [ 1.34 MiB | Viewed 5537 times ]

Author:  racer-x [ Wed Jul 01, 2020 4:40 pm ]
Post subject:  Re: My First Infinite Zoom In Gimp

G'mic has a frame filter called "Cube" and I used it to make a tunnel out of a stone texture that I made. It looks cool in this animation and I even managed to make the wall reflection on the chrome text. :bigthup

Attachment:
zoom-tunnel.gif
zoom-tunnel.gif [ 2.39 MiB | Viewed 5512 times ]

Author:  Wallace [ Wed Jul 01, 2020 4:48 pm ]
Post subject:  Re: My First Infinite Zoom In Gimp

This is how I feel viewing these images.
:hehe

Image

Author:  FlutteringBy [ Wed Jul 01, 2020 4:56 pm ]
Post subject:  Re: My First Infinite Zoom In Gimp

Its a long paddle to the end of the lake..... :hehe ...

Many thanks Steve, you made life a lot easier....

Attachments:
Lake.gif
Lake.gif [ 428.11 KiB | Viewed 5507 times ]

Author:  Tas_mania [ Wed Jul 01, 2020 9:21 pm ]
Post subject:  Re: My First Infinite Zoom In Gimp

Quote:
This is how I feel viewing these images.
:hehe

Image


Thanks for uploading a script Steve.
I did this manually only 13 frames.

Hey racer, very nice brick animation. Where do you enter negative numbers? Can't do it in G'MIC Zoom or Droste Frames

Author:  Steve [ Thu Jul 02, 2020 12:38 am ]
Post subject:  Re: My First Infinite Zoom In Gimp

Thanks Nidhogg, happy to see there were no problems. Good call on changing the timings of the frames to lessen the pulse effect, will look into this today

Thanks for testing racer-x, kicking myself now, wishing like your image I'd added a starry background

Brilliant image Wallace, it makes me laugh

Cool image FlutteringBy, keep paddling

Thanks for an inspiring thread Tas_mania

Author:  racer-x [ Thu Jul 02, 2020 2:58 pm ]
Post subject:  Re: My First Infinite Zoom In Gimp

Tas_mania wrote:
Where do you enter negative numbers? Can't do it in G'MIC Zoom or Droste Frames

Negative meaning less than 1 on the zoom scale. 1=normal size, 0.95=5% zoom out and so on. I used guides to see where I needed to stop. I then cropped the image in the end.

Author:  Tas_mania [ Thu Jul 02, 2020 9:04 pm ]
Post subject:  Re: My First Infinite Zoom In Gimp

Quote:
Negative meaning less than 1 on the zoom scale

Thanks racer. You could get up to 20 frames before you hit zero and a blank screen :)

Hi Steve,
I think your Python scripting has come a long way.
Your solution to this problem is really competent.
Interesting we both got that 'pulsing effect' using different methods?
Anyway a solution will reveal itself one day I'm sure.
Keep-up the coding if you can because there are people out there who appreciate it. :bigthup

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/