Attaching object to camera frustrum

Become a member of the CGSociety

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

Thread Tools Display Modes
  04 April 2013
Attaching object to camera frustrum


I'm trying to attach a plane to the camera frustrum, but I don't see any option in Xpresso to extract the furstrum X and Y positions...
Is there any way to do this?

  04 April 2013
There was a script from "tcastudio" in the past (2011) called "camPLANEv2 R13",
which done this nicely. But is was Phyton based!
  04 April 2013

without having looked into tcastudios example the camera frustrum is a rather vague term
for me. what confuses me most is that you are referring to 2d coordinates, while both the
camera frustrum and the camera itself are actually 3d objects.

cameras are aligned along their z-axis. so if you want to place an object in the local camera
matrix and offset it along the z-axis by the focus distance f for example you have just to
multiply the camera matrix with the vector(0,0,f).


an quick example, i also added some nodes to scale fit the plane into the cameras fov.

Last edited by littledevil : 04 April 2013 at 02:46 PM.
  04 April 2013

here is my xpresso version of an image plane rig.
You can move the plane in z and the size fits accordingly.
To get the render size/ratio linked to the plane I grabbed a piece of coffee code from the german c4d forum (can`t remember where I got it from).

Attached Files
File Type: zip (66.8 KB, 21 views)
  04 April 2013
Both are nice and useful examples !

If I follow littledevils XP --> I get a different result with the same formula ?!

What´s wrong ?
Attached Images
File Type: jpg Bildschirmfoto 2013-04-29 um 17.34.58.jpg (63.0 KB, 21 views)
  04 April 2013

a little bigger image would have helped but i think you typed 0,5 instead of 0.5.
  04 April 2013
Thanks for the hint!
I typed in a comma (0,5) instead of a point (0.5).

What kind of impact !
  04 April 2013
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
Society of Digital Artists

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

All times are GMT. The time now is 10:29 PM.

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