Keeping clones same apparent size in Z-space.

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2012
Keeping clones same apparent size in Z-space.

I have clones of planes distributed in Z that are all pointing at the camera. I have a camera moving in Z-space through the field of planes. How do I keep all my clones the same apparent visual size? (So clones that are 1cm away from the camera look the same size as the ones 1000cm away?)

In After Effects, the expression goes something like this:

X/Y scale = (3D distance between camera & object position / camera zoom ) * 50
__________________
----end of line
 
  10 October 2012
Does it have to be in perspective view?
__________________
Do what you want to do, not what you think you want to do.
| ToothedWheel V2 plugin for C4D |UberTracer plugin for C4D |
 
  10 October 2012
Yes. The camera needs to fly through 3D space (there is 3D geometry in the scene). But these planes need to all maintain one size.
__________________
----end of line
 
  10 October 2012
It seems as if you ask that question every two years from 2008..

It's a linear scale seen from the Camera view.

Cheers
Lennart
__________________
MSA | OSX | xfiles ...Cinema4D Tools
 
  10 October 2012
Well, at least I'm consistent! While it sounded like a familiar question, I looked through all my old notes and couldn't find any answers.

So, linear scale from the camera view...? Like an xpresso range mapper??
__________________
----end of line
 
  10 October 2012
Originally Posted by Navstar: In After Effects, the expression goes something like this:
X/Y scale = (3D distance between camera & object position / camera zoom ) * 50

should be similar in XPresso.
distance from camera, rangemap scale, thats it.
__________________
insekt8.de

Last edited by fuat : 10 October 2012 at 07:56 AM.
 
  10 October 2012
What I am missing? Here's the After Effects expression in Xpresso format (I think).

I don't know how to apply scale to each clone separately.
Attached Images
File Type: png xpresso-clones-equal-size.png (12.2 KB, 33 views)
__________________
----end of line
 
  10 October 2012
Okay, I've linked it back through the Cloner>Object>Scale input.

But the clones aren't scaling correctly. Do I need to route this into an Effector node instead?
Attached Images
File Type: png Screen-Shot-2012-10-23-at-11.42.25-AM.png (20.3 KB, 10 views)
__________________
----end of line
 
  10 October 2012
I quickly made you a Scale-by-Distance Effector based on that simple Formula.

Does that do what you want ?
Shouldn't be too hard for you to edit to your liking.

Scale-by-Distance-Effector

cheers,
d
 
  10 October 2012
That's pretty great! Python (and douwe) is amazing!
__________________
----end of line
 
  10 October 2012
Okay, maybe I spoke too soon. It works fine in your test scene.

But in my scene, all the clones seem to be scaling in unison. The back most clones are still smaller than the ones closest to the camera. What am I doing wrong?

Check it out:
Attached Files
File Type: zip ScaleByDistanceEffectorProblem.c4d.zip (222.7 KB, 16 views)
__________________
----end of line

Last edited by Navstar : 10 October 2012 at 12:19 AM.
 
  10 October 2012
You somehow rescaled the Cloner itself from the Default Scale of 1 to 33.25
That probably happened when you took it out of a Hierarchy in which one of the Parents was scaled up.
Set it back to 1 and it's all fine.

cheers,
d
 
  10 October 2012
D'oh! Knew it had to be something simple.
__________________
----end of line
 
  10 October 2012
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:38 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.