A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Onscreen text to adjust scale based on camera distance.
Posted: 23 July 2018 10:20 PM   [ Ignore ]  
Total Posts:  30
Joined  2008-05-10

Hello:

I know I can do this manually but this is more of a dork out session on how to do this with xpresso or a rig that would save me time in the future.

That being said let’s say I have some text that I want to be the same size on screen in each one of the renders(camera angles).

The camera position changes but the text remains in a fixed point in the scene and also looks at the camera. Whats the best way to rig this up in xpresso.

I was thinking to create a bounding box around the text and compare that to the screen space to drive scale. Is there any other way to accomplish this?

Thanks for taking time out -

Profile
 
 
Posted: 23 July 2018 10:36 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi phloptik,

What I got is, that you have several cameras.
• Each has a different point of view and point of interest?
• The Text is on the same position but rotates always toward the camera and changes the scale?
• The viewing angle (frustum) is changing as well?
• It is not just a Foreground object text, it is inside the scene?

Why not use the text as camera target to begin with? Look at Camera Tag.

The scale is dependent on the field of view and the distance.: XPresso.

Let me know if I got all points and assumed the missing points correctly.

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 23 July 2018 11:06 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: perhaps a file helps more to clear the targets.

Click on the XPresso tag to adjust the relative size of the font. IF you like to have the text in the middle of the screen, use the “Show 3D Gui”. I left it out for now, to keep it simple. Perhaps you wanted something else anyway. The camera needs to be switched via the stage object, as there is not option AFAIK in XPresso to read out which one is the Render Camera.

Scene file
https://www.amazon.com/clouddrive/share/whkIqFqvfEKcEaXE3Rm3TNEgDpOpEtVl9Yyop2oXVgx

Screen capture
https://www.amazon.com/clouddrive/share/bQDtQgrNaTgiNjBfQncTATimpP7bJGPge2cW9aiOxzN


edited

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 24 July 2018 05:10 PM   [ Ignore ]   [ # 3 ]  
Total Posts:  30
Joined  2008-05-10

Sassi:

Ok great this is exactly what I had in mind. You even solved for FOV which I wasn’t thinking about at the time but definitely valid.

Thank you for clarifying this, I’ll dig through it further and run through the steps that you have taken.

Best,
-T

Profile
 
 
Posted: 24 July 2018 05:28 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

You’re very welcome, -T, thanks for taking the time.

BTW, pull that UP.Y null much higher, it will be more stable.

IF there are any questions, please let me know, I’m happy to look into it.

The post above was update, e.g., with a screen capture.

My best wishes for the project.

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile