YOUR ACCOUNT

Login or Register to post new topics or replies
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Can someone tell me how to make a 'mirror' snippet? I need to make components which mirror one half of the image to the other half. That is, to make it symmetrical across one axis, but not both.

I understand there is some way to do this using the offset component ... but I can't seem to figure it out. Kaleidoscope doesn't work, because it mirrors in both the X and the Y direction.

Thanks!

Also, is there some way to do an arbitrary rotation? ie take my image and rotate it with an angle control?
  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
Uberzev has " Any Angle Rotate v1.1 " smile;) smile:) I think there is a mirror snippet but I can't recall what it was called, maybe if you did a search for "mirror" smile:)
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
CorvusCroax wrote:
Can someone tell me how to make a 'mirror' snippet? I need to make components which mirror one half of the image to the other half. That is, to make it symmetrical across one axis, but not both.


----You havta mask off half the image, then flip the half ya didn't mask off and then blend them together. I thought it could be done in 30 seconds with the *kaleidescope*, but yer right that it always seems to want to do both X and Y.

jffe
Filter Forger
  Details E-Mail
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Voldemort has a great filter called "Split Mirrir". Attached is an image of the 'business end' of the mirroring. The trick is to use offset, with half of the image being 50% gray, and the other half being white.

Honestly, I have no idea why this works... I guess I don't understand the fundamentals of the offset node. Why would offsetting something by 50% have the result of mirroring it? (Shrug)

  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
Actually I wipped up a simple mirror effect for you when I couldn't find one - same principle but simpler - the invert gives you mirror left or right side smile:)

  Details E-Mail
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Thanks Carl,

So, why do you need the Profile Gradient step? Why not just use offset?

BTW: can you explian why the offset works to mirror ?
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Wouldn't this be easier?

mirror.ffxml
  Details E-Mail
KGtheway2B
KGtheway2B

Posts: 660
Filters: 34
How the heck do you figure that stuff out?
  Details E-Mail
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Hey, thanks Sjeiti:

Interesting. Is using a 3 color gradient is easier than a 2 color gradient with a step profile?

Honestly, I think I understand the offset node your method even less: why would offset only use the gray half of the gradient, and ignore the fading black half? The black half doesn't seem to have any effect at all.

  Details E-Mail
jffe
Posts: 2869
Filters: 90
I actually masked 1/2 the screen first, then used a method quite similar to Carl's. "Why" it works ? No idea, I just kept looking at it and thinking what am I working with, o.k., half the original image, so I started off masking half the image then it just clicked literally in like a minute from there. Weird how solving graphics problems can be like that, you really just havta get into a headspace to figure out, what am I working with and what part of that is the goal. I enjoyed this challenge, it took me like 45 minutes of really using my brain (unlike the usual 2-3 hours and only getting halfway there trying to cop some Sjeiti licks ha-ha) and really odd that there does not appear to be a simple mirror-this-image snippet or filter in the whole library ?

jffe
Filter Forger
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Well I do lots of trial and error with Offset component too. But I can explain most stuff beforehand. In this case my reasoning was simple:
I know using an entire gradient will simply flip the image.
I know 50 percent gray will not offset anything (more black offsets one way, more white offsets the other way).
So for flipping an image I just need half the normal b/w gradient, and the other half must stay the same: so must be 50 percent gray.
  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
Quote
Sjeiti wrote:
Wouldn't this be easier?

LOL yours use more components smile:-p smile;)
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
More?... I count one less.
  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
to be able to select either mirror left or right side you would need two more components in your filter, unless you open - unplug - plugin - close each time as one of your branches is not plugged in....... hmmmm smile;)
  Details E-Mail
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Ah, but it isn't the black fading part... it's the other part which seems to flip it. Check out this filter:
(btw, it flips just using the checkbox)

  Details E-Mail
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Here's the filter:

Mirror f1g.ffxml
  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
yep it's an interesting one - where are all the techno heads when we need them smile;) smile:)
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Quote
Carl wrote:
to be able to select either mirror left or right side you would need two more components in your filter


Well in what I posted yes, but I just put the other one in there to show how it works. If I'd add controls for flipping and rotating it would look like this.

mirror.ffxml
  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
It is interesting Sjeiti the different ways to arrive at the same result, you probly understand it better than me smile:)
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Well... sometimes... but in this case, I don't understand in your posted filter, how that profile gradient (with two even colors) can offset the image the way it does. I see it, but I ... oh wait... I think I get it... yours has seamless tiling turned off. So with seamless tiling turned off, the offset image is flipped. But with seamless tiling turned on, the offset image is the same. That's weird... I wonder why that is.
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
Sjeiti wrote:
But with seamless tiling turned on, the offset image is the same. That's weird... I wonder why that is.


----Cause like Kraellin thinks, seamless tiling is the devil ha-ha smile:p

jffe
Filter Forger
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
smile:D
You mean the Kraellin who claims to be god, right?
  Details E-Mail
CorvusCroax
CorvusCroax

Posts: 1227
Filters: 18
Quote
Well in what I posted yes, but I just put the other one in there to show how it works. If I'd add controls for flipping and rotating it would look like this.


Ah, that's clever with the remapping of the check box inputs.

I think I'm starting to understand this: the impulse method I posted above works because it's offsetting the entire image, which FF wraps around and tiles. Actually it works ONLY with seamless tiling turned OFF, which now makes sense. If you turn on seamless tiling, you get the flipped half of the flipped (seamless) image. Sjeiti's method works because the pixels are offset in order, placed like cards in a stack.
  Details E-Mail
Carl
c r v a

Posts: 7289
Filters: 82
Quote
Sjeiti wrote:
You mean the Kraellin who claims to be god, right?

LMDO smile:D


I hadn't even thought of the tiling changing it smile:)
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,712 Registered Users
+19 new in 30 days!

153,534 Posts
+31 new in 30 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last 5 minutes:

26 unregistered users.