Keeping cloned cards squared with camera.


#1

I have a series of cards (2D planes) in a cloner. I want the clones to always be square to the camera. That is, not just facing the camera, but also completely horizontal.

I’ve tried both the Target tag and the Target Effector. But neither seem to keep the cards squared perfectly flat perpendicular to the camera and completely level with the X axis.

Any idears?


#2

Parent a cloner or matrix object to the camera/ a Null that you also use for the camera, align it with the camera, make it invisible and using an inheritance effector transpose the rotation of the placards to whatever other cloner. The cloner in the camera group naturalyl need not do anything and can be invisible, it really merely serves to provide the rotation data for the effector to keep things aligned.

Mylenium


#3

That works great! Thank you!

I notice I have to click anywhere in the Object Manager in order to get the viewport to update the clones after I move the camera. How can I get them to update as I move the cam?


#4

Also, would there be an easy way to keep them all the same size no matter the clone distance to the cam?


#5

Howdy,

You may be interested in my free plugin called “CD Align to Camera”:
http://www.cactus3d.com/CDAlignToCamera.html

Here’s a video showing the results:
http://www.cactus3d.com/TextAlignedToCam.mov

Adios,
Cactus Dan


#6

The update issue only occurs, if you use the camera directly, parenting the cam and the setup to the Null behaves more interactive. Something to do with how C4D evaluates the transformation matrices.

Mylenium


#7

Might be a bit tricky to get that working, since you would have to use a COFFEE/ Python effector to calculate the distance for each clone and the performnce would go down the drain. I think douwe’s PolySize effector used some of that. Otherwise you can try to create a plain or step effector, parent it to the camera, set the transform space to effector and use a falloff. By tweaking the ranges and falloff curve it would be possible to keep the scale visualyl consistent…

Mylenium


#8

Do you mean you want them to appear to be the same size in terms of screen real estate, such that the cards further from the camera are actually bigger than those close?
If so, let us know and I can put together a file that can do that… I think :blush:


#9

You keep asking that, don’t you? :slight_smile:

A plain effector at cam position takes care of that.
Linear falloff, scale -1, no clamp.

Cheers
Lennart


#10

Haha, yeah, I was having the same déjà vu.
Last time I remember is: http://forums.cgsociety.org/showthread.php?t=1075553

d


#11

nice one, thanks Dan!


#12

Howdy,

Ooooops, a buddy of mine pointed out that CD Align To Camera doesn’t work on a Cloner object, so today I added support for Array and Cloner objects:
http://www.cactus3d.com/CDAlignToCam_Cloner.mov

You can re-download it from the link in the previous post of mine.

Adios,
Cactus Dan


#13

Thanks for updating your plugin Dan!


#14

Yessir! :slight_smile:


#15

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.