Activity › Forums › Adobe After Effects Expressions › Change objects in a sphere to show the back face
-
Change objects in a sphere to show the back face
David Cabestany replied 10 years, 4 months ago 5 Members · 18 Replies
-
David Cabestany
April 30, 2016 at 10:31 pmHey, it’s me again. Sorry for all the extra posting. I just figured it out,
Change the + sign to – so instead of
v = fromWorldVec(toWorld(anchorPoint) – parent.toWorld(parent.anchorPoint));
lookAt(position,position+v)you have
v = fromWorldVec(toWorld(anchorPoint) – parent.toWorld(parent.anchorPoint));
lookAt(position,position-v)Why? No idea. I’m sure Dan can answer that.
Thanks everyone!
D. -
Dan Ebberts
April 30, 2016 at 10:35 pmI was going to suggest you swap the order of the parameters in the lookAt() to switch which side faces out, but it seems you’ve wrangled it a different way.
Dan
-
David Cabestany
April 30, 2016 at 10:40 pmNah, it didn’t work. Neither changing the sign nor swapping the parameters, as I zoom out (decreasing the radius of the sphere) they all flip sides at one frame.
Best,
D. -
David Cabestany
May 4, 2016 at 9:47 pmHey Dan,
Still tinkering with this sphere. I finally got the faces to look the way they are supposed to, but now some of the cards randomly flip depending on god knows what. It happens at the end, so my guess the unwanted flipping is related to the global position of each card, as the null controlling them is rotating, weirdest of all is is not all the cards that are on the “back of the sphere rotate, just a few, so I’m a bit perplexed.
Would you mind taking a look at the file and see if there is anything out of place?
D.
-
David Cabestany
May 4, 2016 at 9:59 pmWill do now. I didn’t want to post it without you agreeing first. There was an old version, but this is the latest one:
https://dl.dropboxusercontent.com/u/35786640/VIDS_esfera%20tarjetas.aep
https://dl.dropboxusercontent.com/u/35786640/footageSphere.zipIt’s a stripped down version which only includes the spheres comp, the second link is the linked footage.
Thanks a lot!.
D. -
Dan Ebberts
May 4, 2016 at 11:19 pmThere’s some strange stuff going on in there. I was watching one particular layer that was fipping, and I decided to watch what was happening to its z axis when translated to a vector in world coordinates. As soon as I added a 3D point effect with this expression:
toWorldVec([0,0,1])
it un-flipped. I don’t have a clue…
Dan
-
David Cabestany
May 4, 2016 at 11:26 pmIf you don’t know, then there’s no hope for the rest of mankind…
Thanks a lot anyway, I really appreciate that you took the time to look at this.
Best,
D.
Reply to this Discussion! Login or Sign Up